[weld-commits] Weld SVN: r6597 - archetypes/trunk/javaee6-webapp-src.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Fri Jul 9 01:23:09 EDT 2010
Author: dan.j.allen
Date: 2010-07-09 01:23:09 -0400 (Fri, 09 Jul 2010)
New Revision: 6597
Modified:
archetypes/trunk/javaee6-webapp-src/build.sh
Log:
option to disable svn commands
Modified: archetypes/trunk/javaee6-webapp-src/build.sh
===================================================================
--- archetypes/trunk/javaee6-webapp-src/build.sh 2010-07-09 05:22:44 UTC (rev 6596)
+++ archetypes/trunk/javaee6-webapp-src/build.sh 2010-07-09 05:23:09 UTC (rev 6597)
@@ -3,15 +3,20 @@
ARCHETYPE_BUILD_DIR=target/generated-sources/archetype
ARCHETYPE_DIR=target/archetype
ARCHETYPE_RESOURCES_DIR=$ARCHETYPE_DIR/src/main/resources/archetype-resources
+UPDATE_SVN=0
echo Generating archetype from project into $ARCHETYPE_BUILD_DIR...
rm -Rf $ARCHETYPE_DIR/target
-svn rm --force $ARCHETYPE_DIR/*
+if [ $UPDATE_SVN -eq 1 ];then
+ svn rm --force $ARCHETYPE_DIR/*
+fi
rm -Rf target/generated-*
mvn archetype:create-from-project -Darchetype.properties=archetype.properties
echo Relocating generated archetype project to $ARCHETYPE_DIR...
rsync -az --exclude `basename $0` --exclude archetype-pom.xml $ARCHETYPE_BUILD_DIR/src $ARCHETYPE_DIR/
-svn revert -R $ARCHETYPE_DIR
+if [ $UPDATE_SVN -eq 1 ];then
+ svn revert -R $ARCHETYPE_DIR
+fi
cp -f archetype-pom.xml $ARCHETYPE_DIR/pom.xml
mvn -f $ARCHETYPE_DIR/pom.xml clean
echo Patching generated archetype...
More information about the weld-commits
mailing list