Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-739

Configure source locations for Grails installs

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.1.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      Currently, the only way to parse the standard Grails taglibs is if there is the grails jars have the correct source attachment (specifically grails-web-1.2.jar). Is there any way to have this configured automatically?

      I could imagine that have the grails source attachments properly configured would have other benefits for debugging

        Activity

        Hide
        cdupuis Christian Dupuis added a comment -

        Right now a user can configure the source attachements on the Grails Classpath Container.

        I'm not aware of any source jars that ship with the Grails distribution. There is a src folder, but I can't figure out the mapping from the source folders to the jars.

        Christian

        Show
        cdupuis Christian Dupuis added a comment - Right now a user can configure the source attachements on the Grails Classpath Container. I'm not aware of any source jars that ship with the Grails distribution. There is a src folder, but I can't figure out the mapping from the source folders to the jars. Christian
        Hide
        aeisenberg Andrew Eisenberg added a comment -

        The code that I need is in the src/java source folder. And the jar that needs this is grails-web-1.2.jar. I'll see if it is possible to automatically configure this, rather than force the user to perform an extra step.

        Show
        aeisenberg Andrew Eisenberg added a comment - The code that I need is in the src/java source folder. And the jar that needs this is grails-web-1.2.jar. I'll see if it is possible to automatically configure this, rather than force the user to perform an extra step.
        Hide
        aeisenberg Andrew Eisenberg added a comment -

        OK. I have something that is working for me (on mac), but have not been able to test on windows or unix.

        This change will add a default source location for any grails jars that doesn't already have an explicitly configured source location. This default location is the grails/src/java directory.

        Do you want me to commit this?

        Show
        aeisenberg Andrew Eisenberg added a comment - OK. I have something that is working for me (on mac), but have not been able to test on windows or unix. This change will add a default source location for any grails jars that doesn't already have an explicitly configured source location. This default location is the grails/src/java directory. Do you want me to commit this?
        Hide
        cdupuis Christian Dupuis added a comment -

        Yes, please commit this. I will merge this change with my work on

        STS-716: As a Grails STS user, I want that .project (and .classpath) files could be shared with other team members via version control (so that they don't include user specific directory paths)
        https://issuetracker.springsource.com/browse/STS-716

        Christian

        Show
        cdupuis Christian Dupuis added a comment - Yes, please commit this. I will merge this change with my work on STS-716 : As a Grails STS user, I want that .project (and .classpath) files could be shared with other team members via version control (so that they don't include user specific directory paths) https://issuetracker.springsource.com/browse/STS-716 Christian
        Hide
        aeisenberg Andrew Eisenberg added a comment -

        This has been committed. No more work here, so closing this bug.

        Show
        aeisenberg Andrew Eisenberg added a comment - This has been committed. No more work here, so closing this bug.

          People

          • Assignee:
            Unassigned
            Reporter:
            aeisenberg Andrew Eisenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: