Announcement Announcement Module
Collapse
No announcement yet.
GGTS - project fails after pull to local git Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • GGTS - project fails after pull to local git

    Hi,

    anyone an explanation why GGTS fails on a project pulled to a local git repository?
    run-app allways end with "| Loading Grails 2.2.3
    | Configuring classpath
    | Error [OLDPATH] does not appear to be part of a Grails application.
    | Error The following commands are supported outside of a project:
    add-proxy
    clear-proxy
    create-app
    create-multi-project-build
    create-plugin
    help
    list-plugins
    package-plugin
    plugin-info
    remove-proxy
    set-proxy
    | Run 'grails help' for a complete list of available scripts."

    My process:
    1. generate project
    2. code a little
    3. run-app - successfull
    4. pull to a new created local git repo
    5. integrate-with --git
    6. run-app - fails with message above

    No idea where the old path is still configured.

    Any hints appreciated.


    Btw. a "grails run-app" in the Terminal at the new path works perfect.

  • #2
    What do you mean by "pull to a newly created git repo"? Does this mean that you are running your app from a different location? Also, you are saying that you can run the project on the command line from the new location, but not from inside GGTS? How are you importing the project into GGTS? Is it the same workspace as the original project?

    Comment


    • #3
      Thanks for asking.

      Sorry, it must be "push".
      I create a new git repository with egit.
      This relocates the whole project from ~/workspace/project to ~/workspace/git-local/project.
      I delete the project from the perspective and checked the file system ~/workspace/project is gone - no hidden files left.
      No matter if I import the project with the "Import ... from git" or "Import ... Grails project" wizard. Error message stays the same.
      Even running "grails integrate-with --git" in the new path doesn't help.

      Is there any command to relocate projects?

      Comment


      • #4
        Some things to check
        - maybe you have some eclipse settings files inside your project that may contain the old location. Look in files like .project and some files in .settings folder. If in doubt delete them all before importing and they should be recreated when you import.

        - old launch configurations in your workspace may also contain stale data. Use menu "Run >> Run Configurations". Find 'Grails' category. Right click configurations to delete them.

        Kris

        Comment


        • #5
          "Run Configurations" did the trick!
          Thank you so much Kris!!!

          For the records:
          This is how to put a project under local (git) version control.
          1. Run the Grails command "integrate-with -git" in the project
          2. Right click on the project, select "Team ..." - "Share project ..." follow the assistant
          3.
          Use menu "Run >> Run Configurations". Find 'Grails' category. Right click configurations to delete them.
          Run app and have fun.

          Again many thanks to Kris!

          Comment

          Working...
          X