sebb        2003/11/29 19:28:47

  Modified:    .        build.xml
  Log:
  Detect if running under Gump and if so run tests in headless mode
  
  Revision  Changes    Path
  1.137     +14 -2     jakarta-jmeter/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/build.xml,v
  retrieving revision 1.136
  retrieving revision 1.137
  diff -u -r1.136 -r1.137
  --- build.xml 27 Nov 2003 12:06:20 -0000      1.136
  +++ build.xml 30 Nov 2003 03:28:47 -0000      1.137
  @@ -48,6 +48,9 @@
   
     -->
     
  +  <!-- Are we running under Gump? -->
  +  <property name="gump.run" value="false"/>
  +  
     <!-- Renamed targets -->
     <target name="all-docs">
       <echo message="Target has been renamed to docs-all"/>
  @@ -616,6 +619,13 @@
       <!-- Test: while Gump builds are being sorted out
       <property name="beanshell.present" value="assume"/>
       -->
  +    <!-- Check for Gump option depends -->
  +    <available classname="bsh.Interpreter" property="beanshell.present">
  +      <classpath refid="classpath"/>
  +    </available>
  +    <available classname="org.apache.bsf.BSFManager" property="bsf.present">
  +      <classpath refid="classpath"/>
  +    </available>
     </target>
   
     <!-- list of files needed for a binary distribution -->
  @@ -821,11 +831,13 @@
     <target name="docs-all" depends="docs-site,docs-printable,docs-api" 
description="Generate documentation."/>
   
     <target name="test" depends="install" description="Run tests">
  -    <java classname="org.apache.jorphan.test.AllTests" fork="yes" 
dir="${basedir}/bin">
  +   <echo >gump.run = ${gump.run}</echo>
  +   <java classname="org.apache.jorphan.test.AllTests" fork="yes" 
dir="${basedir}/bin">
         <classpath>
        <path refid="classpath"/>
        <fileset dir="${dest.jar}" includes="*.jar"/>
         </classpath>
  +      <sysproperty key="java.awt.headless" value="${gump.run}"/>
   
         <arg value="../lib/ext"/>
         <arg value="./jmetertest.properties"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to