Converting to a grails project after SVN import with STS 2.5.2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Converting to a grails project after SVN import with STS 2.5.2

Srdan Dukic
Hi,

I have created a grails project in STS and have committed (uploaded) it to subversion, including the eclipse specific files ('.classpath', '.project', 'application.properties) and ignoring the 'WEB-INF' directory, as described at: http://grails.org/Checking+Projects+into+SVN

I then try to import the same project back into STS (using the Subversive STS extension) by going 'File'->'Import'->'Project from SVN'. I then enter the repository information and finally select the 'Check out as a project with the name specified' option on the 'Check Out As' screen.

The project is imported, but is not recognised as a grails project. I understand that this is a bug in this particular version of STS: https://issuetracker.springsource.com/browse/STS-1444

However, when I try to do the workaround (Right clicking on the project, selecting 'Configure'->'Convert to Grails Project' I get an error:

'Configuring Grails Dependency Management' has encountered a problem.'

Command failed, see details for output:

------System.out:-----------
 Welcome to Grails 1.3.6 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /home/srdan/springsource/grails-1.3.6/

Base Directory: /home/srdan/Documents/workspace-sts-2.5.1.RELEASE/BookStore
Resolving dependencies...
Dependencies resolved in 1421ms.
/home/srdan/Documents/workspace-sts-2.5.1.RELEASE/BookStore does not appear to be part of a Grails application.
The following commands are supported outside of a project:
    add-proxy
    clear-proxy
    create-app
    create-plugin
    help
    list-plugins
    package-plugin
    plugin-info    
    remove-proxy
    set-proxy
Run 'grails help' for a complete list of available scripts.

------System.err:-----------


What could be causing this error? The error message seems a little vague to me, as I can't figure out which command failed. Has anyone else encountered this problem?

Thank you
--
Srđan Đukić
Reply | Threaded
Open this post in threaded view
|

Re: Converting to a grails project after SVN import with STS 2.5.2

Andrew Eisenberg
Hi  Srđan,

In general, the best place to get answers for STS related issues is on
the STS forum.  We monitor that quite closely.

http://forum.springsource.org/forumdisplay.php?f=32

I've spoken with the person who is in charge of this area of STS and
he mentioned that your problem might be happening because your project
has no grails-app folder or some other required folder.  Did you check
in all the empty folders into SVN?

What happens if you run 'grails compile' from the command line on this project?



On Mon, Jan 31, 2011 at 2:01 AM, Srdan Dukic <[hidden email]> wrote:

> Hi,
>
> I have created a grails project in STS and have committed (uploaded) it to
> subversion, including the eclipse specific files ('.classpath', '.project',
> 'application.properties) and ignoring the 'WEB-INF' directory, as described
> at: http://grails.org/Checking+Projects+into+SVN
>
> I then try to import the same project back into STS (using the Subversive
> STS extension) by going 'File'->'Import'->'Project from SVN'. I then enter
> the repository information and finally select the 'Check out as a project
> with the name specified' option on the 'Check Out As' screen.
>
> The project is imported, but is not recognised as a grails project. I
> understand that this is a bug in this particular version of STS:
> https://issuetracker.springsource.com/browse/STS-1444
>
> However, when I try to do the workaround (Right clicking on the project,
> selecting 'Configure'->'Convert to Grails Project' I get an error:
>
> 'Configuring Grails Dependency Management' has encountered a problem.'
>
> Command failed, see details for output:
>
> ------System.out:-----------
>  Welcome to Grails 1.3.6 - http://grails.org/
> Licensed under Apache Standard License 2.0
> Grails home is set to: /home/srdan/springsource/grails-1.3.6/
>
> Base Directory: /home/srdan/Documents/workspace-sts-2.5.1.RELEASE/BookStore
> Resolving dependencies...
> Dependencies resolved in 1421ms.
> /home/srdan/Documents/workspace-sts-2.5.1.RELEASE/BookStore does not appear
> to be part of a Grails application.
> The following commands are supported outside of a project:
>     add-proxy
>     clear-proxy
>     create-app
>     create-plugin
>     help
>     list-plugins
>     package-plugin
>     plugin-info
>     remove-proxy
>     set-proxy
> Run 'grails help' for a complete list of available scripts.
>
> ------System.err:-----------
>
>
> What could be causing this error? The error message seems a little vague to
> me, as I can't figure out which command failed. Has anyone else encountered
> this problem?
>
> Thank you
> --
> Srđan Đukić
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Converting to a grails project after SVN import with STS 2.5.2

Srdan Dukic
Hi,

Thank you for that. I will be sure to ask the question on the STS forums as well.

The project definitely has a 'grails-app' folder. I've run the 'grails compile' command and it is as below:

~/work_bookstore/BookStore/trunk$ grails compile
Welcome to Grails 1.3.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /home/srdan/grails

Base Directory: /home/srdan/work_bookstore/BookStore/trunk
Resolving dependencies...
Dependencies resolved in 1297ms.
Running script /home/srdan/grails/scripts/Compile.groovy
Environment set to development

I've also managed to run the 'grails run-app' command from the command line and get the project to start after checking it out of subversion.

As another workaround, I will try checking it out of subversion using the command line and then importing it into STS. Although I'm not sure if I will be able to commit my changes through STS doing it this way, might have to commit any changes from the command line.

Thank you
--
Srđan Đukić


On 1 February 2011 17:02, Andrew Eisenberg <[hidden email]> wrote:
Hi  Srđan,

In general, the best place to get answers for STS related issues is on
the STS forum.  We monitor that quite closely.

http://forum.springsource.org/forumdisplay.php?f=32

I've spoken with the person who is in charge of this area of STS and
he mentioned that your problem might be happening because your project
has no grails-app folder or some other required folder.  Did you check
in all the empty folders into SVN?

What happens if you run 'grails compile' from the command line on this project?



On Mon, Jan 31, 2011 at 2:01 AM, Srdan Dukic <[hidden email]> wrote:
> Hi,
>
> I have created a grails project in STS and have committed (uploaded) it to
> subversion, including the eclipse specific files ('.classpath', '.project',
> 'application.properties) and ignoring the 'WEB-INF' directory, as described
> at: http://grails.org/Checking+Projects+into+SVN
>
> I then try to import the same project back into STS (using the Subversive
> STS extension) by going 'File'->'Import'->'Project from SVN'. I then enter
> the repository information and finally select the 'Check out as a project
> with the name specified' option on the 'Check Out As' screen.
>
> The project is imported, but is not recognised as a grails project. I
> understand that this is a bug in this particular version of STS:
> https://issuetracker.springsource.com/browse/STS-1444
>
> However, when I try to do the workaround (Right clicking on the project,
> selecting 'Configure'->'Convert to Grails Project' I get an error:
>
> 'Configuring Grails Dependency Management' has encountered a problem.'
>
> Command failed, see details for output:
>
> ------System.out:-----------
>  Welcome to Grails 1.3.6 - http://grails.org/
> Licensed under Apache Standard License 2.0
> Grails home is set to: /home/srdan/springsource/grails-1.3.6/
>
> Base Directory: /home/srdan/Documents/workspace-sts-2.5.1.RELEASE/BookStore
> Resolving dependencies...
> Dependencies resolved in 1421ms.
> /home/srdan/Documents/workspace-sts-2.5.1.RELEASE/BookStore does not appear
> to be part of a Grails application.
> The following commands are supported outside of a project:
>     add-proxy
>     clear-proxy
>     create-app
>     create-plugin
>     help
>     list-plugins
>     package-plugin
>     plugin-info
>     remove-proxy
>     set-proxy
> Run 'grails help' for a complete list of available scripts.
>
> ------System.err:-----------
>
>
> What could be causing this error? The error message seems a little vague to
> me, as I can't figure out which command failed. Has anyone else encountered
> this problem?
>
> Thank you
> --
> Srđan Đukić
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email