|
Hi,
I am new to Grails, STS and not very familiar with Eclipse in general. I have a GRAILS project that I am working on, that is controlled via SVN. 1) First, is there a way in STS to import/start a grails project from a repository? 2) Secondly, one way I am working around this right now is by checking out the project manually somewhere, then in STS I do New > Grails Project > "Create Project from existing source" Then I find my svn directory. The problem is that all my repository as like that: projectname > trunk (or branch, etc ...). That is, the actual code is in "trunk", not "projectname". When I browse for my project in STS it asks me for a project name, and a directory. The only I managed to make it work was by choosing the project name "trunk", and selecting the directory above it. Which of course very inconvenient because now my project is called "trunk" (and I might have many projects all called "trunk"). I'm obviously doing all of this the wrong way ... 3) (I found this after writing step 1) I found "subclipse" for Eclipse and tried to install it on SpringSource Tool Suite. I managed to checkout my project (although I still have the trunk/branch problem). Now I don't know how to make it into a Grails project. I tried right-click Configure > Convert to Grails Project But it didn't do anything, no errors, no message, etc ... Windows 7 x64 (but using STS 32-bit, with JDK 32-bit) SpringSource Tool Suite Version: 2.3.0.RELEASE Build Id: 200912171331 |
|
Hi Nathan,
Subclipse works very well. When browsing your repository in the SVN Repository perspective, simply right click on your project folder (e.g. trunk) and choose "Checkout...", than in the "Checkout from SVN" dialog "Check out as a project in the workspace" and set your desired name. Note: this works only if the grails project is already a valid Eclipse project, i.e. it has the .project and .classpath files in the root folder (in your case within 'trunk'). If this is not the case, you can use the following workaround: checkout your project as above but choose "Checkout out as a project using the New Project Wizard" and select "Java Project". If finished, you can convert it to a Groovy project (right-click on the project, Choose "Configure -> Convert to Groovy" or similar) and then again convert it to a Grails project (right-click on the project, Choose "Configure -> Convert to Grails project" or similar). Don't forget to store the .project and .classpath files in your SVN repo! HTH, Wolfgang |
|
BTW, if you're working somewhere using Collabnet Teamforge, their
plugin works fine in STS too (but overwrites the Splash Screen for STS). nic --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Wolfgang Schell
Thanks,
I did it, and it all seemed to work fine, until STS just froze ("Not Responding"). When trying to quit, I get "Java(TM) Platform SE binary is not responding". I force-quit several times, and even restarted the computer, I can't start STS anymore, it just freezes as soon as it loads up. Any idea? Maybe the last project I checked out got linked to a wrong java install ... |
|
Hm, I always change Subclipse settings to use the pure Java SVN implementation (SVNKit). I think the default is JavaHL, which is a thin layer over the native subversion library. Maybe this is the problem?
You might try to open a new, empty workspace and change the setting there. If you have disable asking for the workspace path during startup, you could temporarily rename the workspace folder prior to starting STS. HTH, Wolfgang |
|
I prefer install Subversive, in STS works very well in SnowLeopard & Ubuntu, don't tested in Windows
Cheers -- domix On Thu, Feb 4, 2010 at 4:19 PM, Wolfgang Schell <[hidden email]> wrote:
|
| Powered by Nabble | Edit this page |
