ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashutosh Sharma <ashutosh.sha...@oracle.com>
Subject Re: can i pass some other parameters while executing any ant targ ets
Date Tue, 04 Nov 2003 12:34:45 GMT
Thanks Jan.Materne,
Infact i have the properties file also. But i just want to do it for 
some targets only.
In this case tell me how to do this when i want to append some classpath 
of my own for executing a target.


Jan.Materne@rzf.fin-nrw.de wrote:

>You can pass property values while invocation with
>   ant -Dpropname=propvalue
>or you can ask the user for a value with <input> task.
>
>If you want to have multiple configurations (config as a collection
>of several properties) use property files. 
>    <property file="${config}.properties"/>
>    <property file="default.properties"/>
>Then you can use -Dconfig=test for reading the values for test
>environment...
>
>
>
>Jan
>
>
>  
>
>>-----Original Message-----
>>From: Ashutosh Sharma [mailto:ashutosh.sharma@oracle.com]
>>Sent: Tuesday, November 04, 2003 12:11 PM
>>To: user@ant.apache.org
>>Subject: can i pass some other parameters while executing any ant
>>targets
>>
>>
>>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=${SystemTestEncounterDepend
>>encies}"/>
>>      <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
>>
>>    
>>
>
>  
>

-- 
===================
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message