.
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
>
; ---
> 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
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
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
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 :
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
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
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
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
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
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
]]>
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:
: 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
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
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
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
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
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
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
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
20 matches
Mail list logo