Try "getProject().setNewProperty(THEPROPERTY,THEVALUE);"
where THEPROPERTY is the property's name and THEVALUE
is the property's value. This sets a write-once, read-many
project property (which is what you usually want).
- The Wabbit
- Original Message -
From: "Malik, Yousuff M" <[EMAIL P
Sorry for the previous post. I touch an Enter by mistake:-)
So the line I meant is
getProject().setNewProperty("ABC")
And from then you may access ABC property as it would have been created
from a script
RomanR
> -Original Message-
> From: Malik, Yousuff M [mailto:[EMAIL PROT
If you wanna create a property ABC you may do it as follows:
public void setValue(String value){
> //Strip out the build number from the ant label
> BUILD_LABEL
> String temp2 = value.substring(value.indexOf("_")+1);
> //Convert it into the format x.x.
I am trying to write a custom ant task by extending Task.
My task needs to read a string, parse it and save the value in a property.
I have completed the reading string and the parsing part. I don't know how to set the
value in a property. Can anyone please help me with this
This is my Class
I haven't attempted to call junit directly from a build.xml file in quite
some time because of classpath issues, but decided to try it again, since I
got someonelse's build file with junit tasks in it.
I've dutifully read the documentation on the junit task and see that I need
to make sure that an
Hi there, I was looking at the task and noticed that it does not
support the "listener" attribute at this time... has anyone expended or
written a custom task and is willing to share?
thanks in advance,
cheers, rk~
+++
Robert Earl-Kolev
CM Engineer
Adaptis Inc.
(206) 9
Thanks for the suggestion... I used the replace task to remove the DTD
declaration as it does not need to be used when generating these reports.
Thanks everyone for your suggestions and help
-matt
[EMAIL PROTECTED] wrote:
Mmm, seems you´re right.
Then the only way I can see is editing the xml
Matt MacDonald wrote:
Notice the URI: 'jar://resources/psdp.dtd'
When I try to use the ant:xslt task to apply a stylesheet to this XML
document I get the following error:
Fatal Error! java.net.MalformedURLException: no !/ in spec Cause:
java.net.MalformedURLException: no !/ in spec
I know the