Author: thomas.diesler(a)jboss.com
Date: 2008-05-08 09:09:39 -0400 (Thu, 08 May 2008)
New Revision: 6970
Modified:
stack/metro/trunk/build.xml
Log:
Add -Dmaven.opts=-U
Modified: stack/metro/trunk/build.xml
===================================================================
--- stack/metro/trunk/build.xml 2008-05-08 13:09:31 UTC (rev 6969)
+++ stack/metro/trunk/build.xml 2008-05-08 13:09:39 UTC (rev 6970)
@@ -95,24 +95,28 @@
<target name="prepare-deploy" depends="prepare">
+ <!-- Use a system property to overwrite the empty default value -->
+ <property name="maven.opts" value=""/>
+
+ <echo/>
+ <echo message="mvn ${maven.opts} package assembly:directory"/>
+ <echo/>
+
<delete dir="${deploy.artifacts.dir}"/>
<exec dir="${basedir}" executable="mvn"
failonerror="true">
- <arg value="package"/>
- <arg value="assembly:directory"/>
+ <arg line="${maven.opts} package assembly:directory"/>
</exec>
</target>
<target name="build-bin-dist" depends="prepare-deploy"
description="Build the binary distribution">
- <echo message="********************************************"/>
- <echo message="* mvn -Pbindist package assembly:directory *"/>
- <echo message="********************************************"/>
+ <echo/>
+ <echo message="mvn ${maven.opts} -Pbindist package
assembly:directory"/>
+ <echo/>
- <delete dir="${stack.output.dir}/jbossws-metro-dist"/>
+ <delete dir="${stack.output.dir}/jbossws-native-dist"/>
<exec dir="${basedir}" executable="mvn"
failonerror="true">
- <arg value="-Pbindist"/>
- <arg value="package"/>
- <arg value="assembly:directory"/>
+ <arg line="${maven.opts} -Pbindist package assembly:directory"/>
</exec>
</target>
Show replies by date