PS. Since the custom task is in the same JAR as the main class, I could
just call the 'main' method from the task's 'execute' method. I'd still
prefer to do it via the Java task to be able to fork etc.
Am 08.12.2018 um 21:57 schrieb Al Le:
Hello,
I have crea
a(this);
javaTask.init();
javaTask.setClassname(MyProgram.class.getName());
// Set the program parameters
CommandlineJava cmdLine = javaTask.getCommandLine();
// programArgumentsList is an instance variable in my custom
// task; it gets filled when addConfiguredXyz
he property file is being
read using Ant's built-in property task. What I meant to say was that
the java custom task class field corresponding to ${APPLICATION_GUID}
property had junk/incorrect chars for its value.
Does Ant's built-in property task (maybe using a prefix) work?
Something
ier. The task program refers to
> the java class used as the custom ant task. The property file is being
> read using Ant's built-in property task. What I meant to say was that
> the java custom task class field corresponding to ${APPLICATION_GUID}
> property had junk/incorrect ch
nt's built-in property task. What I meant to say was that the
java custom task class field corresponding to ${APPLICATION_GUID}
property had junk/incorrect chars for its value.
Does Ant's built-in property task (maybe using a prefix) work?
Something like
${foo.APPLICATION_GUID}
I
On 2012-04-21, Lokesh Jain wrote:
> But on a CentOS box, the same property is read by the task program
> along with some junk unicode chars. Consequently, the strings do not
> match which affects some of the internal logic of the ant task.
What is "the task programm"? And how does it read the pr
I doubly checked, the build.properties file is encoded in ISO 8859-1 for
both Windows and Linux installations. For a consistent check, I used
Mozilla Firefox -> View Page Info option.
-Lokesh
On 4/22/2012 10:26 PM, Stefan Bodewig wrote:
On 2012-04-21, Lokesh Jain wrote:
Thank you for your s
On 2012-04-21, Lokesh Jain wrote:
> Thank you for your suggestion, but I think the sample chars I used -
> "ÀÁÂ", can be directly represented in ISO 8859-1, so it should not be
> this problem.
The question is not whether the characters can be represented in
ISO-8859-1 but rather whether they are.
Thank you for your suggestion, but I think the sample chars I used -
"ÀÁÂ", can be directly represented in ISO 8859-1, so it should not be
this problem.
As such, I am on JAVA 1.6_30 and ANT 1.7.0, however the problem is
coming with ANT 1.8.3 also.
-Lokesh
On 4/21/2012 1:47 PM, Jarek Czekals
Lokesh,
Maybe you don't comply with the rules java has for property files. These
can be found in java language specifictaion, but also in Properties
class javadoc:
http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html
QUOTE
the input/output stream is encoded in ISO 8859-1 charact
Forgot to mention...
If instead of using build.properties file, I directly add the property
like -DAPPLICATION_GUID=HELLOÀÁÂ, it works even in the CentOS box.
However, I would still like to be able to do this with the properties
file for obvious reasons.
-Lokesh
On 4/21/2012 1:31 PM, Lokesh
Hi,
I have a custom ant task which reads certain properties from
build.properties and exports applications based on that.
name="exportApplication" classpathref="proj.lib"/>
applicationVersion="${APPLICATION_VERSION}"
exportLocation="${APPLICATION_EXPORT_DIR}"/>
Th
.
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 exp
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 would halt the build, and I would see the follo
Peter,
Thanks for the clarification, I appreciate it!
Sincerely,
Jon
From: Peter Reilly
To: Ant Users List
Sent: Mon, March 14, 2011 12:27:25 PM
Subject: Re: How to reference elements in custom task
There is nothing in ant that would do that (it was
; Does that give you more insight into my problem? It's entirely possible that
> what I want to do isn't feasible but that is what I am basically asking: can I
> do this as I've described or is there another, more preferable way to
> accomplish
> this?
>
&g
er
To: Ant Users List
Sent: Mon, March 14, 2011 11:21:57 AM
Subject: Re: How to reference elements in custom task
Jon,
>
This attribute of yours, "classpathref" is not a standard attribute:
http://ant.apache.org/manual/Tasks/common.html
> I've been searching for exampl
Jon,
>
This attribute of yours, "classpathref" is not a standard attribute:
http://ant.apache.org/manual/Tasks/common.html
> I've been searching for examples or forum posts related to this but everything
> I've found isn't working.
How about sharing what you've found and what exactly is no
Hi,
I have a set of custom tasks that need to be able to load dependencies from
element. In my case my tasks may be defined in declarations
or
via adding the jar file to the $ANT_HOME/lib dir.
This is what I want to have in the build.xml file:
In this example the task s
On Sat, Feb 19, 2011 at 9:17 AM, Allan Lewis wrote:
> I'm working on a custom ant task, and want to create a class based on
> classname provided to the task. I've made a path available to the task,
> but
> can't quite figure out how to make those classes available to the task, so
> I
> wind up ge
I'm working on a custom ant task, and want to create a class based on
classname provided to the task. I've made a path available to the task, but
can't quite figure out how to make those classes available to the task, so I
wind up getting a java.lang.ClassNotFoundException when trying to create th
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 :
Hi everyone,
I'm writing one custom Ant Task who create a classpath. This task can also
exlued files from the class path. But I'm unable to excludes files from the
Path because the path t the excluded file is wrong.
Here is my code :
> FileSet exclusions = new FileSet();
System.out.println("Pare
I usually use ScriptDefs, but I needed to extend an abstract task that
another custom task extends, to handle a set of nested data elements
that I need to pass to it.
I also found, contrary to my earlier post, that I didn't need to
explicitly code the property setters.
Thanks,
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
of 'TejaAntTasks.jar' is 75 kb in obfuscated mode
[groovy] Config Type is : 'dev'
all:
BUILD SUCCESSFUL
Observe the bold ones on says build successful and other failed.. The one
failed is the result of custom task which gets invoked from the build.xml
file. In this case though c
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
I've created a groovy class that (indirectly) extends Task, and I'm
calling it from my build script, but the property setters are not
getting called. I've even explicitly coded the setters, to make sure
they are visible to the Ant code.
Is there some trick I am missing, or am have I just overl
Hi,
We have a main build.xml with calls to other module ant files though ant
task. These module level build file uses no of custom tasks. However when
the custom task fails, we wish to make sure the parent build.xml shows build
failed instead of build success full. Though the custom task on fail
Hi experts,
I'm having strange classpath problem with custom task.
The ANT version I use is:
Apache Ant version 1.7.0 compiled on December 13 2006
and the JAVA version is 1.6
I have a java class XYZ.java that calls JMX client APIs to get mbean server and
then get the mbean and invok
I have a custom ant task with the following cast
JavacTask jTask = (JavacTask) task;
where task is a CompilationTask generated by JavaCompiler and JavacTask
is an instance of com.sun.source.util.JavacTask from tools.jar
When I am in eclipse everyhting works properly
The following code
:30
Para: Ant Users List
Assunto: Re: java.lang.NoClassDefFoundError in custom task
Andre Dantas Rocha wrote:
> Hi all,
>
>
>
> I'm trying to create a custom task that make some transformations using
> Javassist (actually, this is my first Ant task). The task is very sim
Andre Dantas Rocha wrote:
Hi all,
I'm trying to create a custom task that make some transformations using
Javassist (actually, this is my first Ant task). The task is very simple,
but can't figure out why it always produces a java.lang.NoClassDefFoundError
(since the corresponding
Hi all,
I'm trying to create a custom task that make some transformations using
Javassist (actually, this is my first Ant task). The task is very simple,
but can't figure out why it always produces a java.lang.NoClassDefFoundError
(since the corresponding jar is in the path as mes
e-
> From: Matt Benson [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2008 4:44 PM
> To: Ant Users List
> Subject: RE: using filesets in a custom task
>
>
> --- EJ Ciramella <[EMAIL PROTECTED]> wrote:
>
> > Yeah, kinda strange, why would you want
-tasks-filesets-properties.html
Maybe it's time to update the examples?
-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 4:44 PM
To: Ant Users List
Subject: RE: using filesets in a custom task
--- EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Y
; From: Matt Benson [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2008 3:09 PM
> To: Ant Users List
> Subject: RE: using filesets in a custom task
>
>
> --- EJ Ciramella <[EMAIL PROTECTED]> wrote:
>
> > The next bit is how to get the fully qualified
> pa
Yeah, kinda strange, why would you want a fileset vector of just the
File.getName() instead of File.getAbsolutePath()?
-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 3:09 PM
To: Ant Users List
Subject: RE: using filesets in a custom task
D]
>
> Sent: Monday, August 04, 2008 11:57 AM
> To: Ant Users List
> Subject: RE: using filesets in a custom task
>
> Any other suggestions from anyone? Why does ant
> thing I'm not supplying
> the "dir" attribute to the flieset?
>
>
> -Ori
: using filesets in a custom task
Wow - as simple as the difference between addFileset(FileSet f) and
addConfiguredFileset(FileSet f).
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 11:57 AM
To: Ant Users List
Subject: RE: using filesets in a
Wow - as simple as the difference between addFileset(FileSet f) and
addConfiguredFileset(FileSet f).
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 11:57 AM
To: Ant Users List
Subject: RE: using filesets in a custom task
Any other
Any other suggestions from anyone? Why does ant thing I'm not supplying
the "dir" attribute to the flieset?
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:16 PM
To: Ant Users List
Subject: RE: using filesets in a
: Peters, John [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:13 PM
To: Ant Users List
Subject: RE: using filesets in a custom task
Do you have an error message?
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:10 PM
To: Ant Users List
Do you have an error message?
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:10 PM
To: Ant Users List
Subject: RE: using filesets in a custom task
It's as simple as this so far:
public void addFileset(FileSet fileset) {
fileset
quot;+filesets.get(x).getDir());
}
}
With a matching task of this:
-Original Message-
From: Peters, John [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:02 PM
To: Ant Users List
Subject: RE: using fil
Post your code please
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:00 PM
To: user@ant.apache.org
Subject: using filesets in a custom task
I'm struggling to write a custom task that utilizes filesets. No matter
what I do, it do
I'm struggling to write a custom task that utilizes filesets. No matter
what I do, it doesn't seem to set/understand the "dir" attribute to the
fileset.
Any suggestions?
I'm writing a Custom Ant Task that needs to act on the properties in a
Property File (and just in that property file). So I'm passing my
custom task the name of this Property file. I use a java.io.File and a
java.io.Properties collection to load this file but I've just no
the child of the
> > classloader in which the interface class is loaded (or the same).
> >
> > Gilles
> >
> > 2007/11/21, todd runstein <[EMAIL PROTECTED]>:
> >
> > >
> > > Ramu,
> > >
> > > Thanks for the suggestions. I've
pathref, use new
AntClassLoader(getClass().getClassLoader(),getProject(),cp) to construct the
new classpath.
cheers
Rainer Noack
-Ursprüngliche Nachricht-
Von: todd runstein [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 21. November 2007 23:26
An: Ant Users List
Betreff: Re: How do I set a class
The project is non platform specific, so it can run in a container, in
a swing app, or from the command line. The project applies schema
changes to a database. The user creates a class that implements a
single interface, adding code that the project uses to apply the
changes. I've currently got
pache.org> Subject: Re: How do I set a classpath for my custom
task?> > Gilles,> > The user is providing implementations of an interface I
provide. Then> my code (which is called from my ant task) calls interface
methods.> So I'm not using reflection to call the method, jus
> >
> > Thanks for the suggestions. I've looked at both of these options, but
> > since this is a custom task that I'd like to include with an open
> > source project, neither of those options are ideal. In the "taskdef",
> > I'd like the us
of the
classloader in which the interface class is loaded (or the same).
Gilles
2007/11/21, todd runstein <[EMAIL PROTECTED]>:
>
> Ramu,
>
> Thanks for the suggestions. I've looked at both of these options, but
> since this is a custom task that I'd like to includ
Ramu,
Thanks for the suggestions. I've looked at both of these options, but
since this is a custom task that I'd like to include with an open
source project, neither of those options are ideal. In the "taskdef",
I'd like the user of my task to only have to specify where
HI todd
Have you tried the following option ??
1. -lib option
2. classpath attribute in taskdef
On Nov 21, 2007 2:15 AM, todd runstein <[EMAIL PROTECTED]> wrote:
> I'm writing an ant task that calls a Java class named Engine. Engine
> is in a jar file that is included in my taskdef using the c
I'm writing an ant task that calls a Java class named Engine. Engine
is in a jar file that is included in my taskdef using the classpath
tag. This all works great.
The problem I'm having is that one of Engine's methods calls
"Class.forName()", trying to dynamically add a class file that is not
i
eter
>
>
> On 7/30/07, stanS <[EMAIL PROTECTED]> wrote:
>>
>> Lets say I have a taskdef in the build.xml
>>> classname="MyTask"
>> classpath="path-to/my.jar" />
>>
>> How do I get
the task.
Peter
On 7/30/07, stanS <[EMAIL PROTECTED]> wrote:
>
> Lets say I have a taskdef in the build.xml
> classname="MyTask"
> classpath="path-to/my.jar" />
>
> How do I get the 'classpath' p
Lets say I have a taskdef in the build.xml
How do I get the 'classpath' part in the custom task that derived from Ant
Task class?
Could you point me to the right API?
I want to use that classpath back with a 'java' task.
Thanks
Stan.
--
View this messa
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
attributes which you want your
java task instance to have, such as
myjava.setClassname("org.foo.bar.doit");
Regards,
Antoine
Original-Nachricht
Datum: Wed, 9 Aug 2006 16:20:21 -0400
Von: "Tzabari, Gili" <[EMAIL PROTECTED]>
An: Ant Users List
Betre
Hi,
I'd like my custom task to invoke the Java task. Do I simply
construct a new instance of org.apache.tools.ant.taskdefs.Java and execute()
it? Or is there a nicer convention for chaining tasks programmatically (not
in the build.xml side, but rather on the Java end)?
T
Sorry but how do I invoke the task from within my custom
task? You guys said to use but I'm not clear on how to do this
using the programmatic API (as opposed to embedding code in the build.xml
file).
Thanks,
Gili
-Original Message-
From: Rebhan, Gilbert [mailto:[
]]>
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 Task
Hi,
I read the tutorial on how to create new Tasks but I am unsure how
my custom task can define new properties in its execute() that would then be
visible to the rest of the Ant script. Also, how can my Ant task invoke
other Ant tasks? If I could invoke from inside my execute() it
would
s List
Betreff: Re: Looking for a custom task for classes generation using Oracle Jaxb
> I do, one that used SUN's jaxb. But since it was using fork="true"> internally, most of the processing done should be easily
> applicable to Oracle's Jaxb I suppose. I posted it in BugZ
Hello Steve,
thanks for your suggestions.
Regards,
Antoine
Original-Nachricht
Datum: Fri, 23 Jun 2006 15:01:32 +0100
Von: Steve Loughran <[EMAIL PROTECTED]>
An: Ant Users List
Betreff: Re: Looking for a custom task for classes generation using Oracle Jaxb
> Ant
Antoine Levy-Lambert wrote:
Hi,
in the makes I am taking care now, we are using a macrodef built around
oracle.xml.jaxb.orajaxb. It has 3 disadvantages :
- *not* really failing on error,
sounds like a bug in oracle's app.
- when the XSD's are wrong, the error message is laconic
you c
taking care now, we are using a macrodef built around
oracle.xml.jaxb.orajaxb. It has 3 disadvantages :
- *not* really failing on error,
- when the XSD's are wrong, the error message is laconic
- processes one schema at a time, not a complete fileset
Anyone has a custom task to do this
has a custom task to do this ?
Regards,
Antoine
sample error message :
XML-32009: (Fatal Error) Failed to parse the input schema.
---
ant -f executor.xml xml.beautify -Dxml.include=**\test.xml
Try with forward slash, instead of back slash. --DD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have a task I wrote and I am trying to get it built into my ant setup. I
would like to run it like this...
ant -f executor.xml xml.beautify -Dxml.include=**\test.xml
Ant should resolve **\test.xml to a full path.
My target looks like this:
Hi all,
I have written an ant custom task..
something like..
.
What is the usual practice for checking if NestedTask and NestedNestedTask
value is not null.
Do i do it in the execute method of MyCustomTask and loop through the
vectorsand get the NestedTask
I just realized I can achieve this using the selector...
I'd still like to know if anyone knows of a resource that explains how to
support mappers in a custom task.
Thanks,
Brian
On 11/17/05, Brian Kuhn <[EMAIL PROTECTED]> wrote:
>
> Deleting the files created d
k, so just ing it wouldnt be enough.
> But where to get the "old" version? From , , ... ?
>
> Jan
>
> >-Ursprüngliche Nachricht-
> >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Gesendet: Mittwoch, 16. November 2005 21:02
> >An: Ant Use
Ok, so just ing it wouldnt be enough.
But where to get the "old" version? From , , ... ?
Jan
>-Ursprüngliche Nachricht-
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 16. November 2005 21:02
>An: Ant Users List
>Betreff: Re: uncopy
Puts back the old version of course. With infinite levels of undo, too.
:)
-Original Message-
From: "Matt Benson" <[EMAIL PROTECTED]>
Sent: Wednesday, November 16, 2005 2:50 pm
To: "Ant Users List"
Subject: Re: uncopy -- custom task supporting mapper
--- Br
--- Brian Kuhn <[EMAIL PROTECTED]> wrote:
[SNIP]
> I'm currently using the copy task to copy a fileset
> from one directory to
> another.
[SNIP]
> I'd like to somehow reverse (undo) this operation in
> my clean target. My
> first thought is something like this:
>
>
> from="${dir-b}/LAYER/com/myc
Hi all,
I'm currently using the copy task to copy a fileset from one directory to
another.
I'd like to somehow reverse (undo) this operation in my clean target. My
first thought is something like this:
I've never created a custom task that supports mapper. Does a
-4014
-Original Message-
From: Jeffrey E Care [mailto:[EMAIL PROTECTED]
Sent: Monday, August 22, 2005 1:23 PM
To: Ant Users List
Subject: Re: Creating a custom task library
http://ant.apache.org/manual/CoreTypes/antlib.html
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release
http://ant.apache.org/manual/CoreTypes/antlib.html
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
Mark Claassen <[EMAIL PROTECTED]> wrote on 08/22/2005 02:14:24 PM:
> Is there any way to include the task definition descriptors
Is there any way to include the task definition descriptors in a jar file,
AKA custom tag libraries in JSP?
For instance, I create a library with two tasks, HelloEarth and HelloMars.
To use this I need to define the tasks using taskdef statements in my other
ant scripts. It would be cool to incor
.startAnt(Main.java:187)
> [versionupdatetask] at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.jav
> a:246)
> [versionupdatetask] at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.ja
> va
Then you havent found the manual?
Developing with Ant | Tasks using Properties, Filesets & Paths
Jan
>-Ursprüngliche Nachricht-
>Von: David A. Bartmess [mailto:[EMAIL PROTECTED]
>Gesendet: Sonntag, 31. Juli 2005 23:05
>An: user@ant.apache.org
>Betreff: Sample of
I'm confused by the custom tasks, and how to get the filesets from
nested fileset elements.
Do these get created automatically, and all I have to provide is a
public void add(FileSet fset) method in the Task-derived custom task?
Or are there special methods I need to call from the inhe
>An: Ant Users List
>Betreff: Re: Nested element problem in custom task
>
>This is expected behaviour. When the Child instance is added
>to MyTask, it is not yet configured (i.e. its attributes are
>not yet set) . It will be configured by the time your task's
>execute() me
This is expected behaviour. When the Child instance is added to MyTask,
it is not yet configured (i.e. its attributes are not yet set) . It will
be configured by the time your task's execute() method is called. The
normal strategy is just to accumulate the Child objects in a collection
and only use
Hello,
Short story : I have an issue when adding a child element to its father
: child's attribute are not set when in addChild(Child element) method...
-- build.xml fragment --
...
In the classfile for Child, there's a setAttribute(String) method.
In the classfile for MyTask, ther
sendet am: Freitag, 8. April 2005 21:45
> An: Matt Benson
> Cc: Ant Users List
> Betreff: Re: custom task question
>
> 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 li
il 08, 2005 5:09 PM
> To: user@ant.apache.org; [EMAIL PROTECTED]
> Subject: RE: Question regarding Ant custom task
>
>
> Hello
>
> Thanks for responding.
>
> Since I have i,j variable is defined outside of all methods
> in my method, their values are available any
01 PM, Matt Benson
> > <[EMAIL PROTECTED]> wrote:
> > > What code are you executing to return an
> > > UnknownElement?
> > >
> > > -Matt
> > >
> > > --- Greg Gimler <[EMAIL PROTECTED]> wrote:
> > > > Sorry, sent that one to
t; wrote:
> > 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 try
u 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
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,
>
1 - 100 of 123 matches
Mail list logo