ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashutosh Sharma <ashutosh.sha...@oracle.com>
Subject can i pass some other parameters while executing any ant targets
Date Tue, 04 Nov 2003 11:10:51 GMT
Hi,
I am quite new to ant.
While executing some of the target-i want to specify some other 
parameters like classpath becoz some of the java source code files uses 
old-deprecated APIs.
How can i do it?
Here is the portion of my build.xml-which i want to run
!-- Compiles and runs the system tests remotely using oracle.AllTest -->
  <target name="runSystemTests" depends="build-stutils, run-condition" 
unless="cond-is-true">
   <mkdir dir="${build.test.systemTest}"/>
    <javac srcdir="${systemTest}"
           destdir="${build.test.systemTest}"
           fork="true"
           excludes="${excludedSystemTest}"
           debug="true"
           
classpath="${build};${build.test.systemTest};${libraries_systemTest}"
                     deprecation="off" >
           <include name="oracle/AllTest.java"/>
           <include name="oracle/AllTestSecurity.java"/>
           <include name="oracle/apps/ctb/**/**"/>
   </javac>
    <copy todir="${build.test.systemTest}" >
      <fileset dir="props" >
        <include name="jndi.properties"/>
      </fileset>
    </copy>
    <copy todir="${build.test.systemTest}" overwrite="yes">
      <fileset dir="${systemTest}" >
        <include name="**/*.properties"/>
      </fileset>
    </copy>
    <java classname="oracle.AllTest" 
classpath="${build.test.systemTest};${libraries_systemTest.runtime}" 
fork="yes">
      <arg value="${moduleName}"/>
      <jvmarg value="-DScriptDir=${test}/scripts/"/>
      <jvmarg value="-DClientMode=remote"/>
      <jvmarg value="-DDataDir=${systemTest}/data/"/>
      <jvmarg value="-Djbo.323.compatible=true"/>
      <jvmarg value="-Djbo.debugoutput=silent"/>
      <jvmarg value="-DDBCFile=${DBCSystemTestFile}"/>      <!-- this is 
used to run scripts to the DB from the client side (load/unload data)-->
      <jvmarg value="-DTimingFileText=${SystemTestTimingFileText}"/>
      <jvmarg value="-DTimingFileHtml=${SystemTestTimingFileHtml}"/>
      <jvmarg 
value="-DTimingFileAppendFlag=${SystemTestTimingFileAppendFlag}"/>
      <jvmarg 
value="-DENCOUNTER_DEPENDENCIES_ON=${SystemTestEncounterDependencies}"/>
      <jvmarg value="-DETSConfig=${SystemTestETSConfig}"/>
      <jvmarg 
value="-DETS_CLIENT_LOG_LEVEL=${SystemTestETSClientLogLevel}"/>
    </java>
  </target>

I want to include some more classpath also?

-- 
===================
With best regards :

Ashutosh Sharma
Oracle India Development Center,
Prestige Blue Chip, #9, Hosur Road,
Bangalore 560029
Email: ashutosh.sharma@oracle.com
AOL IM :AshutoshOracle
Phone: 080-51083937
Locaton : 4A 181



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message