Changeset 1940

Show
Ignore:
Timestamp:
10/30/08 17:21:01
Author:
johnsa
Message:

bedework build file for windows

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/bw.bat

    r1908 r1940  
    1 ::  This file is included by the quickstart script file "..\..\bw.bat" so that  
     1::  This file is included by the quickstart script file "..\..\bw.bat" so that 
    22::  we may keep this script under version control in the svn repository. 
    33 
     
    3131  SET quickstart="yes" 
    3232  SHIFT 
    33   IF "%1noarg" == "noarg" GOTO doneWithArgs 
    3433  GOTO branch 
    35    
    36 :bwchome          
     34 
     35:bwchome 
    3736  :: Define location of configs 
    3837  SHIFT 
    3938  SET BWCONFIGS=%1 
    4039  SHIFT 
    41   IF "%1noarg" == "noarg" GOTO doneWithArgs 
    4240  GOTO branch 
    4341 
     
    4644  SET bwc=%1 
    4745  SHIFT 
    48   IF "%1noarg" == "noarg" GOTO doneWithArgs 
    4946  GOTO branch 
    50    
     47 
    5148:offline 
    5249  ECHO     Setting to offline mode; libraries will not be downloaded ... 
    5350  SET offline="-Dorg.bedework.offline.build=yes" 
    5451  SHIFT 
    55   IF "%1noarg" == "noarg" GOTO doneWithArgs 
    5652  GOTO branch 
    5753 
    5854:doneWithArgs 
    59    
     55 
    6056IF NOT "%quickstart%empty" == "empty" GOTO checkBwConfig 
    6157IF NOT "%BWCONFIGS%empty" == "empty" GOTO DoneQB 
     
    9288:runBedework 
    9389  :: Make available for ant 
    94   SET BWCONFIG=-Dorg.bedework.user.build.properties=%BEDEWORK_CONFIG%\build.properties" 
    95    
     90  SET BWCONFIG=-Dorg.bedework.user.build.properties=%BEDEWORK_CONFIG%\build.properties 
     91 
    9692  ECHO. 
    9793  ECHO     BWCONFIGS = %BWCONFIGS% 
    9894  ECHO     BWCONFIG = %BWCONFIG% 
    99   ECHO.  
    100    
     95  ECHO. 
     96 
    10197  SET ANT_HOME=%QUICKSTART_HOME%\apache-ant-1.7.0 
    102    
     98 
    10399  SET CLASSPATH="%ANT_HOME%\lib\ant-launcher.jar" 
    104    
    105   "%JAVA_HOME%\bin\java.exe" -classpath %CLASSPATH% %offline% -Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %BWCONFIG% %*% 
    106    
     100 
     101  "%JAVA_HOME%\bin\java.exe" -classpath %CLASSPATH% %offline% -Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %BWCONFIG% %1 
     102 
    107103  GOTO:EOF 
    108104 
    109    
     105 
    110106:: Iterate over the command line arguments; 
    111107:: DOS Batch labels can't contain hyphens, so convert them 
     
    116112IF "%1" == "-bwc" GOTO bwc 
    117113IF "%1" == "-offline" GOTO offline 
    118    
     114GOTO doneWithArgs 
     115 
    119116:usage 
    120117  ECHO    Usage: 
     
    122119  ECHO    %0 [ -quickstart OR -bwchome path ] [ -bwc configname ] [ -offline ] [ target ] 
    123120  ECHO. 
    124   ECHO      -quickstart  Use the current quickstart configurations.   
     121  ECHO      -quickstart  Use the current quickstart configurations. 
    125122  ECHO      -bwchome     Specify path to configurations 
    126123  ECHO      -bwc         Specify configuration name 
     
    131128  ECHO    directory which contains one directory per configuration. 
    132129  ECHO. 
    133   ECHO    Within each configuration directory we expect a file called  
    134   ECHO    build.properties which should point to the property and options file  
     130  ECHO    Within each configuration directory we expect a file called 
     131  ECHO    build.properties which should point to the property and options file 
    135132  ECHO    needed for the deploy process. 
    136133  ECHO.