Problems with ANT in WINDOWS :(

2008-02-03 Thread Armin Garcia
hi there i have problems with ANT on windows... 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 PATH=%PATH%;%ANT_HOME%\bin the problem is when i try tu run ant by this way ant -version or

Re: Using -buildfile without setting the basedir?

2008-02-03 Thread David Brown
Take a look at the following link. This link has examples. HTH. http://ant.apache.org/manual/CoreTasks/ant.html Francisco Tolmasky wrote .. > I'm trying to use a build file that is located in a different > directory by doing the following: > > ant -f a/b/thebuild.xml > > However, this has th

Re: Broken ant installation

2008-02-03 Thread Marcus Habermehl
supareno schrieb: Hello Hi. I have installed apache-ant 1.7.0 with jdk 1.6.0_04 and junit 4.4 on Linux. If I want to use ant I get this errors. $ ant -h /opt/apache/bin/ant [script options] [options] [target [target2 [target3] ..]] Script Options: --help, --hprint this messa

Re: Managing folders

2008-02-03 Thread Charbel BITAR
Hi Ramu, Check http://ant.apache.org/manual/CoreTypes/selectors.html#dateselect HTH -- Charbel On Feb 3, 2008 4:52 PM, Ramu Sethu <[EMAIL PROTECTED]> wrote: > Hi All > > I actually wanted to manage a set of folders. We create junit reports > daily > with the folder name Report. I want ant to

Managing folders

2008-02-03 Thread Ramu Sethu
Hi All I actually wanted to manage a set of folders. We create junit reports daily with the folder name Report. I want ant to delete the report folders which are older than 10 days. Is it possible to do with ant built in tasks or Should i go for custom tasks?. I tried with the nested fileset of

Using -buildfile without setting the basedir?

2008-02-03 Thread Francisco Tolmasky
I'm trying to use a build file that is located in a different directory by doing the following: ant -f a/b/thebuild.xml However, this has the side effect of changing my basedir to a/b/ as well, which I don't want, I just want to run ant in my current directory with the build file of a diff

No class Def Error

2008-02-03 Thread Ramu Sethu
Hi all I will summarize my problem. We have a class path ref which refers to jboss-all-client jar and other dependent jars. I am using this class path ref in two places In junit task and in my custom task definition The process(lookup) what i do with the classes in jboss-all-client.jar is same in b

Re: Setting a Property if it exists.

2008-02-03 Thread David Weintraub
Use a condition task: The above should work. If ENV.BUILD isn't set, Build will be set. If it is set, then the property "Build" won't be set. The task below the task won't change the value of the property "Build" if "Build" already has a value. On Feb 3, 2008 4:48 PM, Fran

Setting a Property if it exists.

2008-02-03 Thread Francisco Tolmasky
I'd like to use an environment variable for my build directory if it exists, basically: However, I also want a default Build directory "Build", if ENV.BUILD doesn't exist, how do I do this given that setting the property cannot be undone? Thank you, Francisco --

Re: XMLtask trouble with

2008-02-03 Thread Brian Agnew
Hi Zakir, Probably best to mail the XMLTask mailing list with XMLTask-specific questions. [EMAIL PROTECTED] I suspect you need to specify an XPath with the appropriate namespace info. e.g. in the below use: path="/*[local-name()='bean']" or path="/:bean" Brian

Re: Broken ant installation

2008-02-03 Thread supareno
Hello Hi. I have installed apache-ant 1.7.0 with jdk 1.6.0_04 and junit 4.4 on Linux. If I want to use ant I get this errors. $ ant -h /opt/apache/bin/ant [script options] [options] [target [target2 [target3] ..]] Script Options: --help, --hprint this message and ant help -