Re: help with ant - copy and filesets

2008-12-12 Thread manku
Hi Prasanth, Thanks for the reply. I have tried mapper. It appears to change the file to new file name format. But i want to create a file with the new name . so using a above the fileset and mapper is not working. Thanks, Murali Prashant Reddy-2 wrote: > > Take a look at "mapper" > > ht

Re: help with ant - copy and filesets

2008-12-12 Thread Prashant Reddy
Take a look at "mapper" http://ant.apache.org/manual/CoreTypes/mapper.html manku wrote: Hi , I am new to ant to script. I am looking for some help for the below task Suppose the directory "/d1/user1/abc/" has 50 subdirectories. and these sub directories in turn have some other directories an

help with ant - copy and filesets

2008-12-12 Thread manku
Hi , I am new to ant to script. I am looking for some help for the below task Suppose the directory "/d1/user1/abc/" has 50 subdirectories. and these sub directories in turn have some other directories and some java files. a) Create a temp directory (/d1/temp) a) I need to create a directory und

RE: Passing multi-byte strings from ANT using task

2008-12-12 Thread Rez
Not sure if your problem with the exec task was resolved or not but from your earlier example I see that the syntax of your exec command is wrong as you cannot directly invoke a batch file directly within Ant and have to pass it to the system command first, see the exec's examples:

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Mark Salter
Phani Kumar wrote: > report: > > BUILD FAILED > java.lang.NoSuchMethodError: > org.apache.tools.ant.taskdefs.TempFile.bindToOwner(Lorg/apache/tools/ant/Task;)V > Ok, you seem to have moved on? Can you please check you are using ant 1.7 (ant -verbose) please? This method is commented as added in

RE: is there a Task to comapre two numbers?

2008-12-12 Thread Alec Fernandez
my mistake. I remembered the "greater" comparator but it only applies to the length condition. I don't see an easy way other than adding a custom condition (which is fairly easy using groovy or bsh) >> -Original Message- >> From: Ghadi Mahmoudi [mailto:ghadi.mahmo...@cosens.de] >> Sent

RE: is there a Task to comapre two numbers?

2008-12-12 Thread Rebhan, Gilbert
-Original Message- From: Ghadi Mahmoudi [mailto:ghadi.mahmo...@cosens.de] Sent: Friday, December 12, 2008 3:10 PM To: 'Ant Users List' Subject: AW: is there a Task to comapre two numbers? /* Thanks, But could find only "equlas"! What about < and > comparisons? */ the Antelope tasksuite

Re: AW: is there a Task to comapre two numbers?

2008-12-12 Thread Scot P. Floess
I had a need for this some time ago. I used AntContrib's "math" and "if" tasks. What I did was subtract numbers and if I saw the presence of a minus, less than, "0" equals otherwise greater than... I do have some examples if you are interested...macro defs I mean... On Fri, 12 Dec 2008, Gh

AW: is there a Task to comapre two numbers?

2008-12-12 Thread Ghadi Mahmoudi
Thanks, But could find only "equlas"! What about < and > comparisons? M.Sc. Ghadi Mahmoudi System Engineer COSENS GmbH Lerchenkamp 11 31137 Hildesheim Tel.: +49 5121 17750-43 Fax: +49 5121 17750-49 E-Mail: ghadi.mahmo...@cosens.de www.cosens.de Sitz der Gesellschaft: Hildesheim Handelsregiste

RE: is there a Task to comapre two numbers?

2008-12-12 Thread Alec Fernandez
look in the manual at the condition task (specifically click on "supported conditions") >> -Original Message- >> From: Ghadi Mahmoudi [mailto:ghadi.mahmo...@cosens.de] >> Sent: Friday, December 12, 2008 2:57 PM >> To: user@ant.apache.org >> Subject: is there a Task to comapre two numbers?

is there a Task to comapre two numbers?

2008-12-12 Thread Ghadi Mahmoudi
Hello, Is there alread a Task, which is able to compare two (integer) numbers (>, < or ==). thanks, Ghadi M.Sc. Ghadi Mahmoudi System Engineer COSENS GmbH Lerchenkamp 11 31137 Hildesheim Tel.: +49 5121 17750-43 Fax: +49 5121 17750-49 E-Mail: ghadi.ma

Re: Ant Task to read directly from a JAR Manifest file

2008-12-12 Thread Francis Galiegue
Le vendredi 12 décembre 2008, Ghadi Mahmoudi a écrit : > Hello, > > Is there alread a Task, which is able to read values from manifest file > (in a JAR)? > > I prefer to avoid the long way of 1. unzip the JAR and 2. read the > value. > > thanks, > Not directly, but why not just make a macro? L

Ant Task to read directly from a JAR Manifest file

2008-12-12 Thread Ghadi Mahmoudi
Hello, Is there alread a Task, which is able to read values from manifest file (in a JAR)? I prefer to avoid the long way of 1. unzip the JAR and 2. read the value. thanks, Ghadi M.Sc. Ghadi Mahmoudi System Engineer COSENS GmbH Lerchenkamp 11 31137 Hildesheim Tel.: +49 5121 17750-43 Fax: +

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Prashant Reddy
Phani Kumar wrote: I removed from target and test runs fine, i got result.xml file .. but could not able to get the reports.. is there anything wrong in this report Target code? i have put the jar file outside of Ant\lib still getting same result i am using jdk 15 and Ant 1.7, installed xalan a

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Phani Kumar
I removed from target and test runs fine, i got result.xml file .. but could not able to get the reports.. is there anything wrong in this report Target code? i have put the jar file outside of Ant\lib still getting same result i am using jdk 15 and Ant 1.7, installed xalan also below is the res

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Mark Salter
Phani Kumar wrote: > I am trying to generate html report through ant build.xml file, in that > process i am able to run my test successfully but it fails to generate html > report and it giving me error "java.lang.NoSuchMe > thodError:org.apache.tools. ant.types. resources. Resources. > dieOnCircu

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Prashant Reddy
How about : 1. Rename xalan.jar from ANT/lib (Rename to something like xalan.jar1) 2. Run ANT with JDK 1.6 set in the path. My guess is that the Xalan that ANT ships is giving you problem, and by following the above steps Xalan shipped with Sun JDK will be picked up. But obviously this soluti

JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Phani Kumar
Hi, I am trying to generate html report through ant build.xml file, in that process i am able to run my test successfully but it fails to generate html report and it giving me error "java.lang.NoSuchMe thodError:org.apache.tools. ant.types. resources. Resources. dieOnCircularRef erence()V" i am g