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

Web template projects should change the context root and resource ids

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.3.0.RELEASE
    • Fix Version/s: Sprint 9, 2.3.1.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      Web template projects should change the context root and resource ids in the .settings/org.eclipse.wst.component.core to match the project name

        Activity

        Hide
        cdupuis Christian Dupuis added a comment -

        Dave, in my tests both - the MVC and Web Flow - templates correctly update the org.eclipse.wst.common.component file as shown in the following example (project name is 'testproject2'):

        <?xml version="1.0" encoding="UTF-8"?>
        <project-modules id="moduleCoreId" project-version="1.5.0">
        	<wb-module deploy-name="testproject2">
        		<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
        		<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
        		<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
        		<property name="java-output-path" value="target/classes"/>
        		<property name="context-root" value="testproject2"/>
        	</wb-module>
        </project-modules>

        BTW. I don't have a org.eclipse.wst.common.component.core in my .settings directory.

        What template have you tried?

        Show
        cdupuis Christian Dupuis added a comment - Dave, in my tests both - the MVC and Web Flow - templates correctly update the org.eclipse.wst.common.component file as shown in the following example (project name is 'testproject2'): <?xml version="1.0" encoding="UTF-8"?> <project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="testproject2"> <wb-resource deploy-path="/" source-path="/src/main/webapp"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/> <property name="java-output-path" value="target/classes"/> <property name="context-root" value="testproject2"/> </wb-module> </project-modules> BTW. I don't have a org.eclipse.wst.common.component.core in my .settings directory. What template have you tried?

          People

          • Assignee:
            Unassigned
            Reporter:
            dsyer David Syer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: