Re: Checking if a Target Exists

2011-11-03 Thread Rob Seegel
____ From: Rob Seegel To: Ant Users List Sent: Thursday, November 3, 2011 6:40 PM Subject: Re: Checking if a Target Exists Steve, For my project I created a custom task that was basically an extension of runtarget (from ant-contrib), which worked *almost* the way I wa

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
Ant 1.8 has extension-points which provides something  similar to your use-case http://ant.apache.org/manual/targets.html From: Rob Seegel To: Ant Users List Sent: Thursday, November 3, 2011 6:40 PM Subject: Re: Checking if a Target Exists Steve,   For my

Re: Checking if a Target Exists

2011-11-03 Thread Rob Seegel
Steve, For my project I created a custom task that was basically an extension of runtarget (from ant-contrib), which worked *almost* the way I wanted. I wanted the following specific case: - core skeleton build process in one script, that contained hooks I could use to "extend" with one

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
You are right Steve, that was an error on my part.  From: Steve Amerige To: user@ant.apache.org Sent: Thursday, November 3, 2011 12:05 PM Subject: Re: Checking if a Target Exists Hi Vimil, Thanks for the code!  I'm pretty sure the fifth line of the s

Re: Checking if a Target Exists

2011-11-03 Thread Steve Amerige
t to true if the target 'mytarget' is present in the project. Otherwise it will not be set. From: Steve Amerige To: Ant Users List; Vimil Saju Sent: Thursday, November 3, 2011 7:27 AM Subject: Re: Checking if a Target Exists Hi Vimil, Thanks for the fe

RE: Checking if a Target Exists

2011-11-03 Thread Holman, Chris
Users List Subject: Re: Checking if a Target Exists Here is an example, I havent tested it though                               the scriptdef can be then invoked as folows the property 'targetExists' will be set to true if the target 'mytarget' is present in the project.

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
___ From: Steve Amerige To: Ant Users List ; Vimil Saju Sent: Thursday, November 3, 2011 7:27 AM Subject: Re: Checking if a Target Exists Hi Vimil, Thanks for the feedback.  Any specifics on just how to do what you mention (even if untested)? Thanks again, Steve Amerige SAS I

Re: Checking if a Target Exists

2011-11-03 Thread Parag Doke
t; Btw antcall does not launch a new jvm, it only reloads the build.xml. >> >> >> __**__ >> From: Steve Amerige >> To: Ant Users List >> Sent: Thursday, November 3, 2011 4:52 AM >> Subject: Checking if a Target Exists >> >> Hi all, >> &

Re: Checking if a Target Exists

2011-11-03 Thread Steve Amerige
. From: Steve Amerige To: Ant Users List Sent: Thursday, November 3, 2011 4:52 AM Subject: Checking if a Target Exists Hi all, I want to be able to check if a target exists and hope you can help. I'm looking for a generic solution that doesn't rely any knowledge of the targe

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
not launch a new jvm, it only reloads the build.xml. From: Steve Amerige To: Ant Users List Sent: Thursday, November 3, 2011 4:52 AM Subject: Checking if a Target Exists Hi all, I want to be able to check if a target exists and hope you can help.  I'm lo

Checking if a Target Exists

2011-11-03 Thread Steve Amerige
Hi all, I want to be able to check if a target exists and hope you can help. I'm looking for a generic solution that doesn't rely any knowledge of the target name to be checked. It is not possible to modify the target code. And, I'd like to avoid any solutions that cause the entire JVM to be