[prev in list] [next in list] [prev in thread] [next in thread] 

List:       alexandria-dev
Subject:    cvs commit: jakarta-alexandria/proposal/gump build.xml
From:       conor () apache ! org
Date:       2002-12-12 3:31:29
[Download RAW message or body]

conor       2002/12/11 19:31:29

  Modified:    proposal/gump build.xml
  Log:
  Allow build file to be run out of the box without needing to use
  gen.sh and gen.bat.
  
  Revision  Changes    Path
  1.13      +36 -3     jakarta-alexandria/proposal/gump/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/build.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -w -u -r1.12 -r1.13
  --- build.xml	11 Dec 2002 23:31:47 -0000	1.12
  +++ build.xml	12 Dec 2002 03:31:29 -0000	1.13
  @@ -15,10 +15,41 @@
   
     <!-- Default properties. Define them before to override them.-->
     <property name="workspace" value="rubypad.xml"/>
  -  <property name="webstyle" value="jakarta.xsl"/>
  +  <property name="webstyle" value="stylesheet/jakarta.xsl"/>
  +
  +  <target name="offline">
  +    <property name="onlineflag" value="-offline"/>
  +  </target>
  +
  +  
  +  <target name="platform_props">
  +    <condition property="target" value="bash">
  +        <os family="unix"/>
  +    </condition>
  +    <condition property="target" value="win2k">
  +      <and>
  +        <os family="windows"/>
  +        <not>
  +          <os family="win9x"/>
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="extension" value="sh">
  +        <os family="unix"/>
  +    </condition>
  +    <condition property="extension" value="bat">
  +      <and>
  +        <os family="windows"/>
  +        <not>
  +          <os family="win9x"/>
  +        </not>
  +      </and>
  +    </condition>
  +  </target>
         
     <!-- Build the code used to generate the merged xml scripts -->
  -  <target name="compile">
  +  <target name="compile" depends="platform_props">
       <mkdir dir="classes"/>
       <mkdir dir="work"/>
       <javac srcdir="java" destdir="classes"/>
  @@ -41,10 +72,12 @@
   
     <!-- Merge the xml sources, resolving references -->
     <target name="gen" depends="compile" unless="uptodate">
  +    <property name="onlineflag" value="-online"/>
       <java classname="Jenny" fork="yes" failonerror="true" classpath="jenny.jar">
         <jvmarg value="-Dhttp.proxyHost=${http.proxyHost}"/>
         <jvmarg value="-Dhttp.proxyPort=${http.proxyPort}"/>
         <arg value="${workspace}"/>
  +      <arg value="${onlineflag}"/>
       </java>
     </target>
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:alexandria-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:alexandria-dev-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic