Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1399

Incorrect contents generated for org.eclipse.wst.common.component file in Eclipse WTP Utility Module projects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.0-milestone-1
    • Fix Version/s: 1.0-milestone-1

      Description

      Background: Issue introduced by fix for http://jira.codehaus.org/browse/GRADLE-1275.

      When Eclipse plugin is applied to a WAR project the contents of the org.eclipse.wst.common.component file for each Eclipse project the WAR file depends on is incorrect. The result is that the contents of the JAR file which is deployed within the WAR is incorrect.

      Steps to reproduce:
      1. Unzip the attached test.zip project structure.
      2. Run the following command in the root directory of the project: gradle eclipse

      Expected contents of TestModuleA/.settings/org.eclipse.wst.common.component file:

      <?xml version="1.0" encoding="UTF-8"?>
      <project-modules id="moduleCoreId" project-version="2.0">
      	<wb-module deploy-name="TestModuleA">
      		<wb-resource deploy-path="/" source-path="src/main/resources"/>
      		<wb-resource deploy-path="/" source-path="src/main/java"/>
      	</wb-module>
      </project-modules>
      

      Actual contents of TestModuleA/.settings/org.eclipse.wst.common.component file:

      <?xml version="1.0" encoding="UTF-8"?>
      <project-modules id="moduleCoreId" project-version="2.0">
      	<wb-module deploy-name="TestModuleA">
      		<property name="java-output-path" value="build/classes/main"/>
      		<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
      		<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
      		<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/TestModuleB/TestModuleB">
      			<dependency-type>uses</dependency-type>
      		</dependent-module>
      		<dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/lib//home/mraccola/.gradle/cache/commons-lang/commons-lang/jars/commons-lang-2.5.jar">
      			<dependency-type>uses</dependency-type>
      		</dependent-module>
      	</wb-module>
      </project-modules>
      

      Expected contents of TestModuleB/.settings/org.eclipse.wst.common.component file:

      <?xml version="1.0" encoding="UTF-8"?>
      <project-modules id="moduleCoreId" project-version="2.0">
      	<wb-module deploy-name="TestModuleB">
      		<wb-resource deploy-path="/" source-path="src/main/resources"/>
      		<wb-resource deploy-path="/" source-path="src/main/java"/>
      	</wb-module>
      </project-modules>
      

      Actual contents of TestModuleB/.settings/org.eclipse.wst.common.component file:

      <?xml version="1.0" encoding="UTF-8"?>
      <project-modules id="moduleCoreId" project-version="2.0">
      	<wb-module deploy-name="TestModuleB">
      		<property name="java-output-path" value="build/classes/main"/>
      		<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
      		<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
      		<dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/lib//home/mraccola/.gradle/cache/commons-collections/commons-collections/jars/commons-collections-3.2.jar">
      			<dependency-type>uses</dependency-type>
      		</dependent-module>
      	</wb-module>
      </project-modules>
      

        Attachments

          Activity

            People

            Assignee:
            pniederw Peter Niederwieser
            Reporter:
            mraccola Matt Accola
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: