fileset and directory to get for loop to work - How ?

2008-02-04 Thread Z W
Hi In a target, I have Test case @{files} But I keep getting this error C:\A.xml:9: C:\Documents\${test_dir} not found. Warmup.jmx and CI.jmx files are stored on a network folder in \\foo\testdirectory. How can I change this ${test_dir} to point to \\foo\test to

Re: Use of the "If else" condition in ANT

2008-02-04 Thread Olivier Gies
Hi Uday, Here are 2 solutions for an if-else in Ant: 1) Using you just use plain Ant 1.7, you can use the task, combining 'if' and 'unless' target attributes with target dependencies, as follows: ... ... 2) The

Use of the "If else" condition in ANT

2008-02-04 Thread Uday K. Sodhi
Hi, I am trying to use the if else condition in ANT, can someone gimme an example as to how this can be used. Here's what I am trying to do --> Search for a String in a text file --> If found --do target A --> Else -- do target B Thanks, Uday -

Use of the "If else" condition in ANT

2008-02-04 Thread Uday K. Sodhi
Hi, I am trying to use the if else condition in ANT, can someone gimme an example as to how this can be used. Here's what I am trying to do --> Search for a String in a text file --> If found --do target A --> Else -- do target B Thanks, Uday

Re: Problems with ANT in WINDOWS :(

2008-02-04 Thread Armin Garcia
Thanks i can resolve this problem thanks On Feb 4, 2008 2:56 PM, David Weintraub <[EMAIL PROTECTED]> wrote: > Looks like you have spaces in your -lib: > > -C:\Archivos de programa\Java\jre1.6.0_02\lib\ext > > Ant sees the -lib ending at "C:\Archivos" and "de" as your target. > > Your best be

Property selection

2008-02-04 Thread Z W
Hi I have a properties file with property values set to different files. Eg: A.properties - File_Orange=Orange.jmx File_Cherry=Cherry.jmx In the buildfile, could someone give examples on 1- how the build.xml could select a file to run with, ie build.xml picks Orange.jmx or Cherr

useexternalfile change between 1.6.5 and 1.7.0?

2008-02-04 Thread Dave Blaschke
Greetings - I am using Eclipse for a Java development project and Ant to build it. The javadoc command for the project is rather lengthy so useexternalfile is used.With Eclipse 3.2.2 and Ant 1.6.5 javadoc runs successfully, but with Eclipse 3.3.1.1 and Ant 1.7.0 javadoc fails with the followi

Re: Using -buildfile without setting the basedir?

2008-02-04 Thread Martin Ficker
You could set the basedir property: ant -f a/b/thebuild.xml -Dbasedir= On a unix shell you could use: ant -f a/b/thebuild.xml -Dbasedir=$(pwd) The system indipendent way would of course be placing an antfile in the top dir that calls a/b/thebuild.xml using the ant task. This is what David Bro

Re: Generating a CSV file

2008-02-04 Thread Martin Ficker
Hello Sam, have you thought of using the sql task(http://ant.apache.org/manual/CoreTasks/sql.html) to write to the database directly? That would avoid generating the csv. Best regards, Martin Sam Hamilton schrieb: > Hi All, > > I would like to generate a CSV file from my Ant script which will th

failing when used with ANT version 1.6.2 ( error : org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found: junit/framework/Test )

2008-02-04 Thread srinivasan krishnan
Hello, I am trying to use target from ANT v 1.6.2 and am getting this error. taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found: junit/framework/Test I have read the solution on the ant website under faq and tried to taskdef my junit and incl

Re: Using -buildfile without setting the basedir?

2008-02-04 Thread David Weintraub
basedir is set in the attribute in the build.xml file. Try setting it on the command line: $ ant -Dbasedir=$PWD -f /a/b/build.xml That *should* override the setting. On Feb 3, 2008 6:14 PM, Francisco Tolmasky <[EMAIL PROTECTED]> wrote: > I'm trying to use a build file that is located in a d

Re: Problems with ANT in WINDOWS :(

2008-02-04 Thread David Weintraub
Looks like you have spaces in your -lib: -C:\Archivos de programa\Java\jre1.6.0_02\lib\ext Ant sees the -lib ending at "C:\Archivos" and "de" as your target. Your best bet is to install Java in a directory with no spaces in it. Something like "C:\Java". On Feb 4, 2008 1:38 AM, Armin Garcia <[EM

Re: Managing folders

2008-02-04 Thread David Weintraub
Combine the date selector with the task. In , you can specify the offset and a property. For example: This will set the ${delete.date} to ten days before today in the format the date selector likes. Then, using the selector: And, all files in ${some.dir} older th

Re: how to record javac task?

2008-02-04 Thread glenn opdycke-hansen
Please try this javac src="${src}" destdir="${dest}" On Feb 4, 2008 7:30 AM, san84 <[EMAIL PROTECTED]> wrote: > > hi all, > am beginner to ant tool. > am trying to record the compile task using ant as follows > > > > > but nothing is getting recorded > plz help me out

Re: Generating a CSV file

2008-02-04 Thread Robin Chaddock
You looking for something more complex than :- ${user.name},${the.date},${revision.no} - Original Message - From: Sam Hamilton To: user@ant.apache.org Sent: Monday, February 04, 2008 5:31 PM Subject: Generating a CSV file Hi All, I would like to generate a CSV file fr

Generating a CSV file

2008-02-04 Thread Sam Hamilton
Hi All, I would like to generate a CSV file from my Ant script which will then be entered into a database to I can keep tabs on when the script was run and who it was run by. I have read the manuals and I can see that you can create a properties file in Ant but what I am looking for is a file whi

NullPointer with ssh/sftp

2008-02-04 Thread Neil Lott
I keep getting the following error when I try to resolve my dependencies. Does anyone have any suggestions? Thanks, Neil [ivy:retrieve] == resolving dependencies for atgw#mas-btm;[EMAIL PROTECTED] [interface] [ivy:retrieve] == resolving dependencies atgw#mas-btm;[EMAIL PROTECTED]>log4j#log4j;1.2

missing branch attribute in resolved ivy file

2008-02-04 Thread Shawn Castrianni
I have several different modules each with their own independent branching schemes. I have setup module specific settings in my settings file to specify which branch of which module to use. The problem is in the published modules ivy files. These resolved ivy files do not specify which branch

Re: Managing folders

2008-02-04 Thread Ramu Sethu
Thanks CHarbel But it looks we need to keep the date static ..My script runs daily... And i wanted to delete folders older than the specific date which varies daily ( eg.current date). Only the reports for the last 10 days should be in my m/c On Feb 4, 2008 5:14 AM, Charbel BITAR <[EMAIL PROTECTE

how to record javac task?

2008-02-04 Thread san84
hi all, am beginner to ant tool. am trying to record the compile task using ant as follows but nothing is getting recorded plz help me out. -- View this message in context: http://www.nabble.com/how-to-record-javac-task--tp15268113p15268113.html Sent from the Ant - Users mailing

Re: Problems with ANT in WINDOWS :(

2008-02-04 Thread Steve Loughran
Armin Garcia wrote: hi there i have problems with ANT on windows... take a look at http://wiki.apache.org/ant/InstallTroubleshooting i download and try to use the apache-ant-1.7.0 and apache-ant-1.6.5 I configured the system variables set ANT_HOME=c:\ant set JAVA_HOME=c:\jdk-1.5.0.05 set PAT