RE: Has anyone written an ant task by extending Task

2003-09-23 Thread Roman Rytov
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

RE: Has anyone written an ant task by extending Task

2003-09-23 Thread Roman Rytov
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.

RE: How to iterate in Ant?

2003-07-29 Thread Roman Rytov
> Btw, ant-contrib works Ok for such a simple task and I'm fine > with it (unless there is no 'standard' solution). > But I met another problem. There is no kind of substring funtion so I can't take off just a file name out of the full path, can I?