You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by tw...@apache.org on 2007/01/17 15:09:54 UTC

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

Author: twgoetz
Date: Wed Jan 17 06:09:53 2007
New Revision: 497025

URL: http://svn.apache.org/viewvc?view=rev&rev=497025
Log:
No Jira: extractAndBuild scripts now run tests by default.  Tests can be
skipped with -notest argument.

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=497025&r1=497024&r2=497025
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.bat (original)
+++ incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.bat Wed Jan 17 06:09:53 2007
@@ -17,11 +17,32 @@
 REM   specific language governing permissions and limitations
 REM   under the License.
 
+REM Run with -notest to skip the unit tests
+
+@echo on
+
+@set jvmarg=""
+@if "%~1"=="" goto execute
+@if "%~1"=="-notest" goto notest
+@goto usage
+
+@:usage
+@echo off
+echo Usage: extractAndBuild.bat [-notest]
 @echo on
+@goto exit
 
+@:notest
+@set jvmarg="-Dmaven.test.skip=true"
+@goto execute
+
+
+@:execute
 svn checkout http://svn.apache.org/repos/asf/incubator/uima/uimaj/trunk
 cd trunk\uimaj
-call mvn -Dmaven.test.skip=true  -Duima.build.date="%date% %time%" install
+call mvn %jvmarg%  -Duima.build.date="%date% %time%" install
 cd ..
 cd uimaj-distr
 call mvn assembly:assembly
+
+@:exit

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=497025&r1=497024&r2=497025
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.sh (original)
+++ incubator/uima/uimaj/trunk/uimaj-distr/src/main/build/extractAndBuild.sh Wed Jan 17 06:09:53 2007
@@ -17,9 +17,29 @@
 #   specific language governing permissions and limitations
 #   under the License.
 
+# Bourne shell syntax, this should hopefully run on pretty much anything.
+
+usage() {
+  echo "Usage: extractAndBuild.sh [-notest]"
+}
+
+vmargs=""
+# 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"
+  else
+    usage
+    exit 1
+  fi
+fi
+
 svn checkout http://svn.apache.org/repos/asf/incubator/uima/uimaj/trunk
 cd trunk/uimaj
-mvn -Dmaven.test.skip=true  -Duima.build.date="`date`" install
+mvn ${vmargs} -Duima.build.date="`date`" install
 cd ..
 cd uimaj-distr
 mvn assembly:assembly
+