Author: veithen Date: Sat Aug 28 18:38:22 2010 New Revision: 990404 URL: http://svn.apache.org/viewvc?rev=990404&view=rev Log: Add the webapp files by extracting them from the war dependency instead of copying them from the target folder of the webapp module. This gives more predictable results.
Modified: axis/axis2/java/core/trunk/modules/distribution/src/main/assembly/bin-assembly.xml Modified: axis/axis2/java/core/trunk/modules/distribution/src/main/assembly/bin-assembly.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/distribution/src/main/assembly/bin-assembly.xml?rev=990404&r1=990403&r2=990404&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/distribution/src/main/assembly/bin-assembly.xml (original) +++ axis/axis2/java/core/trunk/modules/distribution/src/main/assembly/bin-assembly.xml Sat Aug 28 18:38:22 2010 @@ -70,17 +70,6 @@ </fileSet> <!--********************** creating the webappp ********************** --> - <!-- copy the web.xml into webapp/WEB-INF directory --> - - <fileSet> - <directory>../../modules/webapp/conf</directory> - <outputDirectory>webapp/WEB-INF</outputDirectory> - <includes> - <include>web.xml</include> - </includes> - </fileSet> - - <!-- copy the build.xml into webapp directory --> <fileSet> <directory>../../modules/webapp/scripts</directory> @@ -90,40 +79,6 @@ </includes> </fileSet> - <!-- copy class files to webapp/WEB-INF/classes directory --> - <fileSet> - <directory>../../modules/webapp/target/classes</directory> - <outputDirectory>webapp/WEB-INF/classes</outputDirectory> - <includes> - <include>**/*</include> - </includes> - </fileSet> - - - <!-- copy *.properties to webapp/WEB-INF/classes directory --> - <fileSet> - <directory>../../modules/kernel/conf</directory> - <outputDirectory>webapp/WEB-INF/classes</outputDirectory> - <includes> - <include>*.properties</include> - </includes> - </fileSet> - - - <!-- copy contents of the webapp module --> - - <fileSet> - <directory>../../modules/webapp/src/main/webapp</directory> - <outputDirectory>webapp</outputDirectory> - <excludes> - <exclude>project.xml</exclude> - <exclude>**/*.iml</exclude> - <exclude>**/.*</exclude> - <exclude>**/conf/**</exclude> - <exclude>**/scripts/**</exclude> - </excludes> - </fileSet> - <fileSet> <directory>../../legal</directory> <outputDirectory>lib</outputDirectory> @@ -224,5 +179,20 @@ <exclude>javax.servlet:servlet-api</exclude> </excludes> </dependencySet> + <dependencySet> + <useProjectArtifact>false</useProjectArtifact> + <includes> + <include>org.apache.axis2:axis2-webapp</include> + </includes> + <unpack>true</unpack> + <outputDirectory>webapp</outputDirectory> + <unpackOptions> + <includes> + <include>WEB-INF/classes/**/*</include> + <include>WEB-INF/web.xml</include> + <include>axis2-web/**/*</include> + </includes> + </unpackOptions> + </dependencySet> </dependencySets> </assembly>