Re: I can't use the task

2008-08-14 Thread Steven Guitar
a property is set. Therefore the is what he probably ought to use :) On Thu, 14 Aug 2008, Steven Guitar wrote: you should try this... ${myprop} this is a silly example, but the idea is that if and only if the property exists, the given target will run. unless is used in the

Re: I can't use the task

2008-08-14 Thread Steven Guitar
you should try this... ${myprop} this is a silly example, but the idea is that if and only if the property exists, the given target will run. unless is used in the opposite manner. you could also do straight if conditional checking with: do stu

Re: how can tell if a property is set?

2008-08-14 Thread Steven Guitar
Guy, something else i have started using is if i plan to call a target if a property is set, i put the if/unless attributes on that target like so: ${myprop} this is a silly example, but the idea is that if and only if the property exists, the given target will run. unless is use

Re: How to read an XML file and extract values for the attributes using ANT script

2008-07-25 Thread Steven Guitar
FYI. You could read the file into a property and use regular expressions. Since it's XML the patterns would not be too difficult Sent from my iPhone On Jul 25, 2008, at 4:36 AM, Alpesh Vesuwala <[EMAIL PROTECTED]> wrote: Hello Friends, I have an XML file to read from it and extract valu

Re: Checking existence of a set of files

2008-07-21 Thread Steven Guitar
I'll also add that foreach takes a list of things seperated by commas ( or any delimmiter) Sent from my iPhone On Jul 21, 2008, at 6:45 AM, André Pilz <[EMAIL PROTECTED]> wrote: Hello, in old days I wrote a target which checks for the file, and then call this target with antcall for singl

Re: How do I call antcall once per line of file using line value as parameter?

2008-07-02 Thread Steven Guitar
i have used regular expressions to either take multilines and format them to one line with comma delimited entries for the ant contrib foreach On Jul 2, 2008, at 12:54 AM, Roman Kennke wrote: Hi, The foreach task from ant-contrib could help: http://ant-contrib.sourceforge.net/tasks/tasks

Re: sourcepath files get implicitly compiled and end up in archive

2008-06-27 Thread Steven Guitar
from my iPhone On Jun 27, 2008, at 12:11 PM, Dominique Devienne <[EMAIL PROTECTED]> wrote: On Fri, Jun 27, 2008 at 11:11 AM, Steven Guitar <[EMAIL PROTECTED]> wrote: I am working on some build scripts for projects that have a dynamic listing of dependancies. when i try to

sourcepath files get implicitly compiled and end up in archive

2008-06-27 Thread Steven Guitar
I am working on some build scripts for projects that have a dynamic listing of dependancies. when i try to compile project A that depends on project B, there is not a way for me to know which project to compile first (short of having the developer keep track of it in a properties file) - so

Reading XML

2008-06-02 Thread Steven Guitar
Is it possible for ant to read an XML file and package binaries according to what the XML file dictates at run time? Or would i have to create a custom task for that? Sent from my iPhone - To unsubscribe, e-mail: [EMAIL PROT

ant reading deployment descriptor

2008-05-30 Thread Steven Guitar
i have a web app that is contained in a .war that is packaged under an EAR module. i would like to read the EARs deployment descriptor to build the war and all the project utility jars contained in the EAR as well... is this possible? can i read and interpret the application.xml file at t

Re: headless build vs. eclipse build

2008-02-07 Thread Steven Guitar
ld.xml and then use that build.xml at command line and keep the JRE_HOME and JAVA_HOME and ANT_HOME in synch between the IDE and command line as even point release deltas can cause these sorts of discrepancies Martin-- - Original Message - From: "Steven Guitar" <[EMAIL PRO

Re: headless build vs. eclipse build

2008-02-07 Thread Steven Guitar
synch between the IDE and command line as even point release deltas can cause these sorts of discrepancies Martin-- - Original Message - From: "Steven Guitar" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday, February 06, 2008 2:57 PM Subject: Re: head

Re: headless build vs. eclipse build

2008-02-06 Thread Steven Guitar
- Original Message - From: "Steven Guitar" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday, February 06, 2008 2:57 PM Subject: Re: headless build vs. eclipse build Martin, actually in eclipse(WSAD actually) its pointing to the bundled jre's that c

Re: headless build vs. eclipse build

2008-02-06 Thread Steven Guitar
e In Eclipse goto Window Preferences Java Installed JREs Execution Environment are you perhaps using a JRE different than the one ANT uses from command line (check env var JRE_HOME for ANTs default JRE) ? Martin- - Original Message - From: "Steven Guitar" <[EMAIL PRO

headless build vs. eclipse build

2008-02-06 Thread Steven Guitar
Hey guys, i have written a headless build for a jar file that we use for our framework to distribute to other developers. the jar file is given to web developers who deploy their web apps to websphere app server, and the jar file created from ant works fine. when you start the server up w