ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pritesh saharey <prit...@sqatester.com>
Subject Re: How to write properties.xml file
Date Fri, 07 Mar 2003 12:34:10 GMT

no no the following portion is not common

<java append="true" fork="true" failonerror="true" 
classpathref="classpath"
	classname="com.ora.ITS.SDK.Tools.ConsoleParcelBuilder">
	<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.parceldef -o 
SRC/org/net/carmel/services/ptts/PTTService.parcel"/>
</java>	

<java append="true" fork="true" failonerror="true" 
classpathref="classpath"
	classname="com.ora.ITS.SDK.Tools.ConsoleDistribBuilder">
	<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.distribdef 
-o SRC/org/net/carmel/services/ptts/PTTService.distrib"/>
</java>

this will get change like this insted of PTTService.parceldef UTTService.parceldef,MUUService.parceldef
and so on
and also insted of PTTService.distribdef ,UTTService.distribdef,MUUService.distribdef  and
so on in a single project so i think the first solution will be benificial for me ie.,

<target name="parcel">
<property file="build.properties"/>


<java append="true" fork="true" failonerror="true" 
classpathref="classpath"
	classname="${distrib.builder}">
<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.parceldef -o 
SRC/org/net/carmel/services/ptts/PTTService.parcel"/>
</java>

<java append="true" fork="true" failonerror="true" 
classpathref="classpath"
	classname="${distrib.builder}">
<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.distribdef -o 
SRC/org/net/carmel/services/ptts/PTTService.distrib"/>
</java>

:
:
:
ans so on ......

</target>

but can this parcel target be written in single xml file and can be called in build.xml.

can i hope u understood my problem

thanx pritesh
--- Jesse Stockall <jesse@cryptocard.com> wrote:
>On Friday, March 7, 2003, at 05:41  AM, Pritesh saharey wrote:
>> In this code i have to use
>> "com.ora.ITS.SDK.Tools.ConsoleParcelBuilder" and 
>> "com.ora.ITS.SDK.Tools.ConsoleDistribBuilder" for each and every 
>> project so iwant to keep it seprately in properties.xml from where i 
>> can use these commands for my all projects .And how can i give ars 
>> inmy build.xml file for these commands .
>> thanx for your support
>> pritesh
>
>If you want to define the class names as properties you can use a 
>standard properties file.
>
>build.properties
>
>parcel.builder=com.ora.ITS.SDK.Tools.ConsoleParcelBuilder
>distrib.builder=com.ora.ITS.SDK.Tools.ConsoleDistribBuilder
>
>
>And in your build files
>
><property file="build.properties"/>
>
><java append="true" fork="true" failonerror="true" 
>classpathref="classpath"
>	classname="${distrib.builder}">
><arg line="-f SRC/org/net/carmel/services/ptts/PTTService.distribdef -o 
>SRC/org/net/carmel/services/ptts/PTTService.distrib"/>
></java>
>
>If you want to re-use the exact same target in multiple build files you 
>can use xml-includes
>
>In common targets.xml
>
><java append="true" fork="true" failonerror="true" 
>classpathref="classpath"
>	classname="com.ora.ITS.SDK.Tools.ConsoleParcelBuilder">
>	<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.parceldef -o 
>SRC/org/net/carmel/services/ptts/PTTService.parcel"/>
></java>	
>
><java append="true" fork="true" failonerror="true" 
>classpathref="classpath"
>	classname="com.ora.ITS.SDK.Tools.ConsoleDistribBuilder">
>	<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.distribdef 
>-o SRC/org/net/carmel/services/ptts/PTTService.distrib"/>
></java>
>
>In your build files
>
>(before the <project> tag)
>
><!-- Define a reference to the common targets -->
><!DOCTYPE project [
>     <!ENTITY build-include SYSTEM "common.targets.xml">
>]>
>
>(inside the <projet> tags)
>
><!-- Include the common targets -->
>&build-include;
>
>Hope this helps.
>
>Jesse Stockall - jesse@cryptocard.com
>CRYPTOCard Corp.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org

_____________________________________________________________
Join SQAtester.com Community  ---> http://www.sqatester.com/testersarea/joinus.htm

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP &
more! http://www.everyone.net/selectmail?campaign=tag

Mime
View raw message