[Yanel-commits] rev 42501 - public/yanel/trunk

guillaume at wyona.com guillaume at wyona.com
Wed Apr 22 21:17:01 CEST 2009


Author: guillaume
Date: 2009-04-22 21:17:01 +0200 (Wed, 22 Apr 2009)
New Revision: 42501

Modified:
   public/yanel/trunk/yanel.bat
Log:
Added long missing `build -f` support for Windows! :)

Modified: public/yanel/trunk/yanel.bat
===================================================================
--- public/yanel/trunk/yanel.bat	2009-04-22 16:52:32 UTC (rev 42500)
+++ public/yanel/trunk/yanel.bat	2009-04-22 19:17:01 UTC (rev 42501)
@@ -45,9 +45,25 @@
   call %OUR_ANT% config
   goto restoreAntHome
 :build
+  shift
+  echo %1
+
+:: One might want to use the option "-f" for building resources, e.g. "./yanel.bat build -f src\resources\xml\build.xml" instead of having to build everything
+if not "%1" == "-f"; goto buildYanel
+  echo INFO: Building using -f...
+  set _ANT_BUILD_SCRIPT=%2
+  rem echo %_ANT_BUILD_SCRIPT%
+  shift
+  shift
+  rem echo %CD%
+  call %OUR_ANT% -f %_ANT_BUILD_SCRIPT% %1 %2 %3 %4 %5 %6 %7 %8 %9 -Dyanel.source.home=%CD%
+  if errorlevel 1 goto minusFbuildFailed
+  goto restoreAntHome
+:buildYanel
+  :: Build everything by default
   echo "INFO: Building Yanel..."
   rem call %OUR_ANT%
-  call %OUR_ANT% -Djava.endorsed.dirs=lib\endorsed -logger org.apache.tools.ant.NoBannerLogger -emacs %2 %3 %4 %5 %6 %7 %8 %9
+  call %OUR_ANT% -Djava.endorsed.dirs=lib\endorsed -logger org.apache.tools.ant.NoBannerLogger -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9
   goto restoreAntHome
 :cmdl
   call %OUR_ANT% run-yanel-cmdl -Dyanel.path=""
@@ -61,6 +77,10 @@
 echo        or install Maven 2.0.4 from http://maven.apache.org
 
 
+:minusFbuildFailed
+set _ANT_BUILD_SCRIPT=
+echo WARNING: Some resource-types may not yet support the '-f' option, please refer to bug 6898 for how to implement it.
+
 :restoreAntHome
 rem ----- Restore ANT_HOME
 set ANT_HOME=%ORIGINAL_ANT_HOME%



More information about the Yanel-commits mailing list