Re: How to pass a property to Ant Plugin?
"Mark Thias" <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <5200028806A14FA2B212054B9A9A5AA3@dorothy> |
Are you trying to pass properties from CC's config.xml to your ant file. If
so something like the below should work when embedded in CC's "schedule"
task.
<schedule interval="60">
<ant anthome="/usr/share/ant"
buildfile="build_cc.xml"
target="build">
<property name="mytestproperty" value="bogusvalue" />
</ant>
</schedule>
You should be able to reference the property in your ant file using
${mytestproperty}
If you are trying pass properties from one ant file another ant file,
something like the below is an example
<ant antfile="build.xml" dir="file_path_to_target_ant_file" target="build">
<property name="mytestproperty" value="bogusvalue" />
</ant>
Once again reference using the ${mytestproperty} script.
Hope that helps,
Mark
-----Original Message-----
From: Tawfik, Sameh E [mailto:[email protected]]
Sent: Wednesday, April 15, 2009 5:20 PM
To: [email protected]
Subject: [Cruisecontrol-user] How to pass a property to Ant Plugin?
Hi,
I've been trying to pass a property value to Ant build but so far nothing
worked!
I tried the following:
<ant buildfile="C:\CBuilds\projectA\build.xml">
antscript="C:\Ant\apache-ant-1.6.2\bin\ant_mb_3.6.2.bat"
antworkingdir="C:\CBuilds\projectA"
target="Test_BuildNumber"
uselogger="true"
usequiet="true"
usedebug="false"
<property name="buildnumber" value="${label}"/>
</ant>
Does anyone know how to do that? Is there is anything wrong with the above
syntax?
Thanks,
Sameh
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.
----------------------------------------------------------------------------
--
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
Internal Virus Database is out of date.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.9/1989 - Release Date: 03/07/09
18:43:00
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p