Author: richard.opalka(a)jboss.com
Date: 2008-09-19 06:38:02 -0400 (Fri, 19 Sep 2008)
New Revision: 8192
Added:
stack/native/trunk/src/main/scripts/assembly-src-dist.xml
Modified:
stack/native/trunk/build.xml
stack/native/trunk/pom.xml
Log:
[JBWS-2286] provide source distribution for native
Modified: stack/native/trunk/build.xml
===================================================================
--- stack/native/trunk/build.xml 2008-09-19 10:31:21 UTC (rev 8191)
+++ stack/native/trunk/build.xml 2008-09-19 10:38:02 UTC (rev 8192)
@@ -105,22 +105,39 @@
</target>
<target name="build-bin-dist" depends="prepare-deploy"
description="Build the binary distribution">
-
<echo/>
<echo message="mvn ${maven.opts} -Pbindist package
assembly:directory"/>
<echo/>
- <delete dir="${stack.output.dir}/jbossws-native-dist"/>
+ <delete dir="${stack.output.dir}/jbossws-native-bin-dist"/>
<exec dir="${basedir}" executable="mvn"
failonerror="true">
<arg line="${maven.opts} -Pbindist package assembly:directory"/>
</exec>
- <zip destfile="${stack.output.dir}/jbossws-native-dist.zip">
+ <zip destfile="${stack.output.dir}/jbossws-native-bin-dist.zip">
<zipfileset
- dir="${stack.output.dir}/jbossws-native-dist"
+ dir="${stack.output.dir}/jbossws-native-bin-dist"
includes="build/ deploy/ docs/ tests/ build.xml ant.properties"
- prefix="jbossws-native-dist"/>
+ prefix="jbossws-native-bin-dist"/>
</zip>
</target>
+ <target name="build-src-dist" depends="prepare-deploy"
description="Build the source distribution">
+ <echo/>
+ <echo message="mvn ${maven.opts} -Psrcdist package
assembly:directory"/>
+ <echo/>
+
+ <delete dir="${stack.output.dir}/jbossws-native-src-dist"/>
+ <exec dir="${basedir}" executable="mvn"
failonerror="true">
+ <arg line="${maven.opts} -Psrcdist package assembly:directory"/>
+ </exec>
+
+ <zip destfile="${stack.output.dir}/jbossws-native-src-dist.zip">
+ <zipfileset
+ dir="${stack.output.dir}/jbossws-native-src-dist"
+ includes="modules/ src/ build.xml pom.xml profiles.xml.example"
+ prefix="jbossws-native-src-dist"/>
+ </zip>
+ </target>
+
</project>
Modified: stack/native/trunk/pom.xml
===================================================================
--- stack/native/trunk/pom.xml 2008-09-19 10:31:21 UTC (rev 8191)
+++ stack/native/trunk/pom.xml 2008-09-19 10:38:02 UTC (rev 8192)
@@ -424,7 +424,7 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
- <finalName>jbossws-native-dist</finalName>
+ <finalName>jbossws-native-bin-dist</finalName>
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
@@ -435,6 +435,29 @@
</plugins>
</build>
</profile>
+
+ <!--
+ Name: srcdist
+ Descr: Build the source distribution
+ -->
+ <profile>
+ <id>srcdist</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <finalName>jbossws-native-src-dist</finalName>
+ <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+
<descriptor>src/main/scripts/assembly-src-dist.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<!--
Name: jboss422
Added: stack/native/trunk/src/main/scripts/assembly-src-dist.xml
===================================================================
--- stack/native/trunk/src/main/scripts/assembly-src-dist.xml (rev
0)
+++ stack/native/trunk/src/main/scripts/assembly-src-dist.xml 2008-09-19 10:38:02 UTC (rev
8192)
@@ -0,0 +1,70 @@
+<assembly
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+
+ <id>source-distribution</id>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>src/</directory>
+ <outputDirectory>src/</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>modules/</directory>
+ <outputDirectory>modules/</outputDirectory>
+ <excludes>
+ <exclude>**/target/**</exclude>
+ <exclude>**/framework-tests/**</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>modules/testsuite/framework-tests</directory>
+ <outputDirectory>modules/testsuite/framework-tests</outputDirectory>
+ <includes>
+ <include>src/test/etc/</include>
+ <include>scripts/</include>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory></directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>build.xml</include>
+ <include>pom.xml</include>
+ <include>profiles.xml.example</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+ <!-- framework tests -->
+ <moduleSets>
+ <moduleSet>
+ <includes>
+ <include>org.jboss.ws.native:jbossws-native-management</include>
+ </includes>
+ <binaries>
+ <dependencySets>
+ <dependencySet>
+
<outputDirectory>modules/testsuite/framework-tests/src/test</outputDirectory>
+ <useStrictFiltering>true</useStrictFiltering>
+ <scope>runtime</scope>
+ <unpack>true</unpack>
+ <includes>
+ <include>*:jbossws-framework:zip:testsuite</include>
+ </includes>
+ <unpackOptions>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </unpackOptions>
+ </dependencySet>
+ </dependencySets>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
+
+</assembly>