FW: How to pass a property to Ant Plugin?
"Tawfik, Sameh E" <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <59EC7B15C4C7514384BE062A81AA51EE02C9B0D44B@MSPMSGCCR000.corp.fairisaac.com> |
Thanks Rajib,
This method worked fine.
Sameh
-------------------------
Re: [Cruisecontrol-user] How to pass a property to Ant Plugin?
From: Rajib Basu <Rajib.Basu@wd...> - 2009-04-15 22:42
Nothing wrong with the Ant Plugin but your logic is wrong.
Do not pass label through the properties. It will be passed automatically.
Remove the line <property name="buildnumber" value="${label}"/>
Add an echo in Test_BuildNumber target
<echo> LABEL : ${label} </echo>. You can see the label getting displayed
without any effort :)
-----Original Message-----
From: Tawfik, Sameh E
Sent: Wednesday, April 15, 2009 3:20 PM
To: '[email protected]'
Subject: 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