Re: Custom task to force build success

2011-05-18 Thread Vimil Saju
. Using System.exit(0) will terminate both the nested build and the outer build. --- On Wed, 5/18/11, Carlton Brown wrote: > From: Carlton Brown > Subject: Re: Custom task to force build success > To: "Ant Users List" > Date: Wednesday, May 18, 2011, 9:19 AM >

Re: Custom task to force build success

2011-05-18 Thread Carlton Brown
; --- > Shawn Castrianni > > -Original Message- > From: Matt Benson [mailto:gudnabr...@gmail.com] > Sent: Wednesday, May 18, 2011 10:27 AM > To: Ant Users List > Subject: Re: Custom task to force build success > > On Wed, May 18, 2011 at 10:07 AM, Carlton Brown > wrot

RE: Custom task to force build success

2011-05-18 Thread Shawn Castrianni
att Benson [mailto:gudnabr...@gmail.com] Sent: Wednesday, May 18, 2011 10:27 AM To: Ant Users List Subject: Re: Custom task to force build success On Wed, May 18, 2011 at 10:07 AM, Carlton Brown wrote: > I'm struggling to write a custom task that is essentially the opposite > of &qu

Re: Custom task to force build success

2011-05-18 Thread Matt Benson
On Wed, May 18, 2011 at 10:07 AM, Carlton Brown wrote: > I'm struggling to write a custom task that is essentially the opposite of > "fail".   I've seen it mentioned on this list before, but never found a > conclusive answer. > > To be successful, a task expressed like this: > >   > > > The task

Re: Custom task with classpath and exclusion

2010-04-22 Thread Stefan Bodewig
On 2010-04-22, Blaise Gervais wrote: > exclusions.createExcludesFile().setName(entry.path.getPath()+File.separatorChar+exclusion); In a fileset an excludesfile is a text file that contains an exclusion pattern per line. I don't think you really want this but createExclude(), > And the output :

RE: Custom Task using Groovy

2009-12-08 Thread Murray, Mike
Mike -Original Message- From: Antoine Levy Lambert [mailto:anto...@gmx.de] Sent: Tuesday, December 08, 2009 7:47 AM To: Ant Users List Subject: Re: Custom Task using Groovy Hello Mike, you could define your task using scriptdef. See http://ant.apache.org/manual/OptionalTasks/scriptdef.html Then

Re: Custom Task using Groovy

2009-12-08 Thread Antoine Levy Lambert
Hello Mike, you could define your task using scriptdef. See http://ant.apache.org/manual/OptionalTasks/scriptdef.html Then your groovy class does not need to extend Task. Regards, Antoine Murray, Mike wrote: I've created a groovy class that (indirectly) extends Task, and I'm calling it fro

RE: Custom Task using Groovy

2009-12-03 Thread Murray, Mike
Resolved. It works fine to code a custom task with Groovy and no setter methods need to be coded. The "trick" is to not have a macrodef with the same name as your task. When I meant to call my macrodef, it was calling my task directly. So the arguments that are passed to my task by my macrode

RE: Custom task invoking other tasks

2006-08-10 Thread Tzabari, Gili
Many thanks! Gili -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 6:28 PM To: Ant Users List Subject: Re: Custom task invoking other tasks Hello Gili, you can construct your Java task instance in two ways : a) for Ant

Re: Custom task invoking other tasks

2006-08-09 Thread Antoine Levy-Lambert
Hello Gili, you can construct your Java task instance in two ways : a) for Ant 1.6 code Java myjava = (Java) getProject().createTask("java"); or b) for Ant 1.7 code Java myjava = new Java(); myjava.bindToOwner(this); myjava.init(); in both cases you need to set afterwards all the attributes

RE: Custom Task that exports a property

2006-08-09 Thread Tzabari, Gili
EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 2:32 AM To: Ant Users List Subject: RE: Custom Task that exports a property Hi, beside = project.setNewProperty() for a really new property there's also = project.setProperty() - with that method you can reset/overwrite an existing property if y

RE: Custom Task that exports a property

2006-08-08 Thread Rebhan, Gilbert
]]> Reset $${FOO} Nr.2 via JavaScript >>> ${FOO} $${MyNewProperty} >>> ${MyNewProperty} Regards, Gilbert -Original Message- From: Tzabari, Gili [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 9:13 PM To: Ant Users List Subject: RE:

RE: Custom Task that exports a property

2006-08-08 Thread Tzabari, Gili
: Custom Task that exports a property google "antcallback" -cji -Original Message- From: Tzabari, Gili [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 11:56 AM To: Ant Users List Subject: Custom Task that exports a property Importance: Low Hi, I read the t

RE: Custom Task that exports a property

2006-08-08 Thread Chun Ji
google "antcallback" -cji -Original Message- From: Tzabari, Gili [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 11:56 AM To: Ant Users List Subject: Custom Task that exports a property Importance: Low Hi, I read the tutorial on how to create new Tasks but I am unsure

Re: custom task question

2005-04-08 Thread Greg Gimler
Thanks for your help. I figured it was much too complicated for what I wanted to do. The shell script is for a deployment of my software to various linux pcs. The software is 24x7 server software for a grid computing project. The sysadmins for those pcs are intimately familiar with unix system

Re: custom task question

2005-04-08 Thread Matt Benson
I would probably do this a different way. What is the shell script for? What about the particular java task in your build file are you trying to preserve? If you really need to do this you'd probably have an easier time extending the Java task and grabbing its command line to write your shell sc

Re: custom task question

2005-04-08 Thread Greg Gimler
I'm probably doing things incorrectly. The code snippet is... Target target = (Target)getProject().getTargets().get(fromTarget); Task[] tasks = target.getTasks(); Then I just search through the array for the one labeled "java" and that turns out to be an UnknownElement. Basically, all I want to

Re: custom task question

2005-04-08 Thread Matt Benson
What code are you executing to return an UnknownElement? -Matt --- Greg Gimler <[EMAIL PROTECTED]> wrote: > Sorry, sent that one too soon. > > Continuing... from there I'm trying to get access to > the java runtime > inside of the task specified to my custom task, > unixscriptgen. > Instead I g

Re: custom task question

2005-04-08 Thread Greg Gimler
Sorry, sent that one too soon. Continuing... from there I'm trying to get access to the java runtime inside of the task specified to my custom task, unixscriptgen. Instead I get access to an UnknownElement which I can then try and call the getTask() method on. It returns null unless I first call

RE: custom task

2005-01-11 Thread Rajiv Jaitly
addFileset(FileSet), as more than likely you would like to operate on Fileset straightway in the method. I my example i was just adding it to a list. Thanks Raj -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: 11 January 2005 15:52 To: Ant Users List Subject: Re: custom