incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r537348 - /incubator/nmaven/branches/SI_XPT/bootstrap-build.bat
Date Sat, 12 May 2007 06:52:33 GMT
Author: sisbell
Date: Fri May 11 23:52:32 2007
New Revision: 537348

URL: http://svn.apache.org/viewvc?view=rev&rev=537348
Log:
Improved the bootstrap build script for windows.

Modified:
    incubator/nmaven/branches/SI_XPT/bootstrap-build.bat

Modified: incubator/nmaven/branches/SI_XPT/bootstrap-build.bat
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/bootstrap-build.bat?view=diff&rev=537348&r1=537347&r2=537348
==============================================================================
--- incubator/nmaven/branches/SI_XPT/bootstrap-build.bat (original)
+++ incubator/nmaven/branches/SI_XPT/bootstrap-build.bat Fri May 11 23:52:32 2007
@@ -1,18 +1,52 @@
 @echo off
-call mvn install
-call mvn -f ./plugins/NMaven.Plugin.Addin/pom-java.xml install
-call mvn -f ./plugins/NMaven.Plugin.Devenv/pom-java.xml install
-call mvn -f ./plugins/NMaven.Plugin.Settings/pom-java.xml install
-call mvn -f ./plugins/NMaven.Plugin.Solution/pom-java.xml install
+IF %phase%=="" SET phase=install
+ECHO Executing Phase: %phase%
+
+call mvn %phase%
+IF errorlevel 1 GOTO END
+
+ECHO Building JavaBindings for the .NET Plugins
+call mvn -f ./plugins/NMaven.Plugin.Addin/pom-java.xml %phase%
+IF errorlevel 1 GOTO END
+
+call mvn -f ./plugins/NMaven.Plugin.Devenv/pom-java.xml %phase%
+IF errorlevel 1 GOTO END
+
+call mvn -f ./plugins/NMaven.Plugin.Settings/pom-java.xml %phase%
+IF errorlevel 1 GOTO END
+
+call mvn -f ./plugins/NMaven.Plugin.Solution/pom-java.xml %phase%
+IF errorlevel 1 GOTO END
+
+ECHO Installing 3rd Party Assemblies in the Local Repo
 call mvn org.apache.maven.dotnet.plugins:maven-install-plugin:install-file -Dfile=./thirdparty/NUnit/NUnit.Framework.dll
-DgroupId=NUnit -DartifactId=NUnit.Framework -Dpackaging=dll -Dversion=2.2.8.0
+IF errorlevel 1 GOTO END
+
 if "%1" == "-DMicrosoft" (
-    call mvn -f ./assemblies/pom.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MICROSOFT
-DframeworkVersion=2.0.50727 install %*
-    call mvn -f ./plugins/pom-netplugins.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MICROSOFT
-DframeworkVersion=2.0.50727 install %*
+    ECHO Compiling Assemblies with Microsoft
+    call mvn -f ./assemblies/pom.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MICROSOFT
-DframeworkVersion=2.0.50727 %phase% %*
+    IF errorlevel 1 GOTO END
+
+    call mvn -f ./plugins/pom-netplugins.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MICROSOFT
-DframeworkVersion=2.0.50727 %phase% %*
+    IF errorlevel 1 GOTO END
+
  ) else  if "%1" == "-DMono" (
-    call mvn -f ./assemblies/pom.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MONO -DframeworkVersion=2.0.50727
install %*
-    call mvn -f ./plugins/pom-netplugins.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MONO
-DframeworkVersion=2.0.50727 install %*
+    ECHO Compiling Assemblies with Mono
+    call mvn -f ./assemblies/pom.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MONO -DframeworkVersion=2.0.50727
%phase% %*
+    IF errorlevel 1 GOTO END
+
+    call mvn -f ./plugins/pom-netplugins.xml -Dmaven.test.skip=true -Dbootstrap -Dvendor=MONO
-DframeworkVersion=2.0.50727 %phase% %*
+    IF errorlevel 1 GOTO END
+
  ) else (
-    call mvn -f ./assemblies/pom.xml -Dmaven.test.skip=true -Dbootstrap install %*
-    call mvn -f ./plugins/pom-netplugins.xml -Dmaven.test.skip=true -Dbootstrap -DframeworkVersion=2.0.50727
install %*
+    ECHO Compiling Assemblies with Unknown Vendor
+    call mvn -f ./assemblies/pom.xml -Dmaven.test.skip=true -Dbootstrap %phase% %*
+    IF errorlevel 1 GOTO END
+
+    call mvn -f ./plugins/pom-netplugins.xml -Dmaven.test.skip=true -Dbootstrap -DframeworkVersion=2.0.50727
%phase% %*
+    IF errorlevel 1 GOTO END
  )
+
+:END
+
 rem call mvn org.apache.maven.dotnet.plugins:maven-solution-plugin:solution



Mime
View raw message