ject: RE : Has anyone written an ant task by extending Task
>
>
> Hello,
>
> You have to override the execute() method.
>
> Hope it helps,
> Emmanuel
>
> >-Message d'origine-
> >De : Malik, Yousuff M [mailto:[EMAIL PROTECTED]
> >Env
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.