User: user57  
  Date: 01/08/27 02:09:15

  Modified:    jboss    build.xml
  Log:
   o using condition task to determin if we are win32 or unix for the run target
  
  Revision  Changes    Path
  1.8       +26 -11    build/jboss/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/build/jboss/build.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.xml 2001/08/27 08:47:15     1.7
  +++ build.xml 2001/08/27 09:09:14     1.8
  @@ -10,7 +10,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.7 2001/08/27 08:47:15 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.8 2001/08/27 09:09:14 user57 Exp $ -->
   
   <project default="main">
   
  @@ -481,21 +481,36 @@
   
     <!-- Run the JBoss server. -->
     <property name="run.flags" value=""/>
  -  <target name="run" depends="init"
  -          description="Runs the JBoss server.">
  -    <echo>Operating System: ${os.name}</echo>
  -    <record name="${control.root}/run.log" append="no" loglevel="info"/>
  +
  +  <target name="run" depends="run-check-os, run-unix, run-win32"
  +          description="Runs the JBoss server."/>
  +
  +  <target name="run-check-os">
  +    <condition property="run.unix">
  +      <os family="unix"/>
  +    </condition>
  +    <condition property="run.win32">
  +      <or>
  +        <os family="windows"/>
  +        <os family="dos"/>
  +      </or>
  +    </condition>
  +  </target>
   
  -    <exec os="Linux"
  -       dir="${project.release}/${release.id}"
  -       executable="${project.release}/${release.id}/bin/run.sh">
  +  <target name="run-unix" depends="init" if="run.unix">
  +    <record name="${control.root}/run.log" append="no" loglevel="info"/>
  +    <exec executable="${project.release}/${release.id}/bin/run.sh"
  +       dir="${project.release}/${release.id}">
         <arg line="${run.flags}"/>
       </exec>
  +  </target>
   
  -    <exec os="Windows 2000"
  -       dir="${project.release}/${release.id}"
  -       executable="${project.release}/${release.id}/bin/run.bat">
  +  <target name="run-win32" depends="init" if="run.win32">
  +    <record name="${control.root}/run.log" append="no" loglevel="info"/>
  +    <exec executable="${project.release}/${release.id}/bin/run.bat"
  +       dir="${project.release}/${release.id}">
         <arg line="${run.flags}"/>
       </exec>
     </target>
  +
   </project>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to