You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/08/08 18:50:20 UTC

svn commit: r563939 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/build: extractAndBuild.bat extractAndBuild.sh

Author: alally
Date: Wed Aug  8 09:50:14 2007
New Revision: 563939

URL: http://svn.apache.org/viewvc?view=rev&rev=563939
Log:
UIMA-524: http://issues.apache.org/jira/browse/UIMA-524
add -deploy option to extractAndBuild scripts

Modified:
    incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.bat
    incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.sh

Modified: incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.bat
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.bat?view=diff&rev=563939&r1=563938&r2=563939
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.bat (original)
+++ incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.bat Wed Aug  8 09:50:14 2007
@@ -30,17 +30,21 @@
 @:trunk
 @set level=trunk
 @set leveldir=trunk
-@goto checktest
+@goto checkargs
 
-@:checktest
+@:checkargs
 @set jvmarg=
+@set mvnCommand=install
+@if not "%3"=="" goto usage
 @if "%~2"=="" goto execute
 @if "%~2"=="-notest" goto notest
+@if "%~2"=="-deploy" goto deploy
 @goto usage
 
 @:usage
 @echo off
-echo Usage: extractAndBuild.bat <level> [-notest]
+echo Usage: extractAndBuild.bat level [-notest] [-deploy]
+echo            (-notest and -deploy cannot be used together)
 @echo on
 @goto exit
 
@@ -48,11 +52,15 @@
 @set jvmarg="-Dmaven.test.skip=true"
 @goto execute
 
+@:deploy
+@set mvnCommand="source:jar deploy"
+@goto execute
+
 @:execute
 svn checkout -r HEAD http://svn.apache.org/repos/asf/incubator/uima/uimaj/%level%
 cd %leveldir%
 cd uimaj
-call mvn %jvmarg%  -Duima.build.date="%date% %time%" install
+call mvn %jvmarg%  -Duima.build.date="%date% %time%" %mvnCommand%
 cd ..
 cd uimaj-distr
 call mvn assembly:assembly

Modified: incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.sh
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.sh?view=diff&rev=563939&r1=563938&r2=563939
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.sh (original)
+++ incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.sh Wed Aug  8 09:50:14 2007
@@ -20,16 +20,21 @@
 # Bourne shell syntax, this should hopefully run on pretty much anything.
 
 usage() {
-  echo "Usage: extractAndBuild.sh [-notest]"
+  echo "Usage: extractAndBuild.sh [-notest] [-deploy]"
+  echo "           (-notest and -deploy cannot be used together)"
 }
 
 vmargs=""
+mvnCommand=install
 # Check for -notest switch.  If present, add the no-test define to the mvn command line.
 if [ -n $1 ]
   then
   if [ $1 = "-notest" ]
   then
     vmargs="-Dmaven.test.skip=true"
+  elif [ $1 = "-deploy" ]
+  then
+    mvnCommand="source:jar deploy"
   else
     usage
     exit 1
@@ -38,7 +43,7 @@
 
 svn checkout http://svn.apache.org/repos/asf/incubator/uima/uimaj/trunk
 cd trunk/uimaj
-mvn ${vmargs} -Duima.build.date="`date`" install
+mvn ${vmargs} -Duima.build.date="`date`" $mvnCommand
 cd ..
 cd uimaj-distr
 mvn assembly:assembly