Re: How to find out the classpath used to load a custom task

2018-12-09 Thread Al Le
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

How to find out the classpath used to load a custom task

2018-12-08 Thread Al Le
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-24 Thread Lokesh Jain
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-23 Thread Stefan Bodewig
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-23 Thread Lokesh Jain
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-23 Thread Stefan Bodewig
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-22 Thread Lokesh Jain
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-22 Thread Stefan Bodewig
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.

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-21 Thread Lokesh Jain
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-21 Thread Jarek Czekalski
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

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-21 Thread Lokesh Jain
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

Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-21 Thread Lokesh Jain
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

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 exp

Custom task to force build success

2011-05-18 Thread Carlton Brown
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

Re: How to reference elements in custom task

2011-03-14 Thread Jon Svede
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

Re: How to reference elements in custom task

2011-03-14 Thread Peter Reilly
; 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

Re: How to reference elements in custom task

2011-03-14 Thread Jon Svede
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

Re: How to reference elements in custom task

2011-03-14 Thread wolfgang haefelinger
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

How to reference elements in custom task

2011-03-14 Thread Jon Svede
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

Re: Accessing classes in a path from a custom task

2011-02-21 Thread Matt Benson
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

Accessing classes in a path from a custom task

2011-02-19 Thread Allan Lewis
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

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 :

Custom task with classpath and exclusion

2010-04-22 Thread Blaise Gervais
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

RE: Custom Task using Groovy

2009-12-08 Thread Murray, Mike
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,

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: How fail main ant (parent bulild.xml) to fail when custom task fails

2009-12-03 Thread Raja Nagendra Kumar
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

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

Custom Task using Groovy

2009-12-01 Thread Murray, Mike
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

How fail main ant (parent bulild.xml) to fail when custom task fails

2009-11-26 Thread Raja Nagendra Kumar
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

classpath problem with custom task

2008-11-24 Thread Michelle Lin
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

classpath issues in custom task

2008-11-19 Thread teknokrat
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

RES: java.lang.NoClassDefFoundError in custom task

2008-11-03 Thread Andre Dantas Rocha
: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

Re: java.lang.NoClassDefFoundError in custom task

2008-11-03 Thread Steve Loughran
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

java.lang.NoClassDefFoundError in custom task

2008-11-02 Thread Andre Dantas Rocha
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

RE: using filesets in a custom task

2008-08-04 Thread Matt Benson
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

RE: using filesets in a custom task

2008-08-04 Thread EJ Ciramella
-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

RE: using filesets in a custom task

2008-08-04 Thread Matt Benson
; 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

RE: using filesets in a custom task

2008-08-04 Thread EJ Ciramella
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

RE: using filesets in a custom task

2008-08-04 Thread Matt Benson
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

RE: using filesets in a custom task

2008-08-04 Thread EJ Ciramella
: 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

RE: using filesets in a custom task

2008-08-04 Thread EJ Ciramella
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

RE: using filesets in a custom task

2008-08-04 Thread EJ Ciramella
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

RE: using filesets in a custom task

2008-08-01 Thread EJ Ciramella
: 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

RE: using filesets in a custom task

2008-08-01 Thread Peters, John
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

RE: using filesets in a custom task

2008-08-01 Thread EJ Ciramella
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

RE: using filesets in a custom task

2008-08-01 Thread Peters, John
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

using filesets in a custom task

2008-08-01 Thread EJ Ciramella
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?

Custom Task: Property File argument

2008-03-25 Thread Hache, Martin
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

Re: How do I set a classpath for my custom task?

2007-11-22 Thread Gilles Scokart
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

AW: How do I set a classpath for my custom task?

2007-11-21 Thread Rainer Noack
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

Re: How do I set a classpath for my custom task?

2007-11-21 Thread todd runstein
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

RE: How do I set a classpath for my custom task?

2007-11-21 Thread Martin Gainty
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

Re: How do I set a classpath for my custom task?

2007-11-21 Thread todd runstein
> > > > 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

Re: How do I set a classpath for my custom task?

2007-11-21 Thread Gilles Scokart
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

Re: How do I set a classpath for my custom task?

2007-11-21 Thread todd runstein
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

Re: How do I set a classpath for my custom task?

2007-11-20 Thread Ramu Sethu
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

How do I set a classpath for my custom task?

2007-11-20 Thread todd runstein
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

Re: Getting classpath attribute of custom task

2007-07-30 Thread stanS
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

Re: Getting classpath attribute of custom task

2007-07-30 Thread Peter Reilly
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

Getting classpath attribute of custom task

2007-07-30 Thread stanS
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

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
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

Custom task invoking other tasks

2006-08-09 Thread Tzabari, Gili
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

RE: Custom Task that exports a property

2006-08-09 Thread Tzabari, Gili
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:[

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 Task

Custom Task that exports a property

2006-08-08 Thread Tzabari, Gili
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

Re: Re: Looking for a custom task for classes generation using Oracle Jaxb

2006-06-23 Thread Antoine Levy-Lambert
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

Re: Re: Looking for a custom task for classes generation using Oracle Jaxb

2006-06-23 Thread Antoine Levy-Lambert
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

Re: Looking for a custom task for classes generation using Oracle Jaxb

2006-06-23 Thread Steve Loughran
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

Re: Looking for a custom task for classes generation using Oracle Jaxb

2006-06-23 Thread Dominique Devienne
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

Looking for a custom task for classes generation using Oracle Jaxb

2006-06-22 Thread Antoine Levy-Lambert
has a custom task to do this ? Regards, Antoine sample error message : XML-32009: (Fatal Error) Failed to parse the input schema. ---

Re: Ant custom task and filesets

2006-06-07 Thread Dominique Devienne
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]

Ant custom task and filesets

2006-06-07 Thread Alex Egg
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:

Check null attributes in custom task

2006-05-05 Thread chuanjiang lo
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

Re: uncopy -- custom task supporting mapper

2005-11-17 Thread Brian Kuhn
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

Re: uncopy -- custom task supporting mapper

2005-11-17 Thread Brian Kuhn
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

AW: uncopy -- custom task supporting mapper

2005-11-16 Thread Jan.Materne
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

Re: uncopy -- custom task supporting mapper

2005-11-16 Thread dbrosius
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

Re: uncopy -- custom task supporting mapper

2005-11-16 Thread Matt Benson
--- 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

uncopy -- custom task supporting mapper

2005-11-16 Thread Brian Kuhn
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

RE: Creating a custom task library

2005-08-22 Thread Mark Claassen
-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

Re: Creating a custom task library

2005-08-22 Thread Jeffrey E Care
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

Creating a custom task library

2005-08-22 Thread Mark Claassen
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

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread Matt Benson
.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

AW: Sample of custom task showing how to get filesets?

2005-07-31 Thread Jan.Materne
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

Sample of custom task showing how to get filesets?

2005-07-31 Thread David A. Bartmess
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

AW: Nested element problem in custom task

2005-07-08 Thread Jan.Materne
>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

Re: Nested element problem in custom task

2005-07-07 Thread Conor MacNeill
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

Nested element problem in custom task

2005-07-07 Thread Gilles QUERRET
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

AW: custom task question

2005-04-10 Thread Jan . Materne
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

RE: Question regarding Ant custom task

2005-04-10 Thread Rainer Noack
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

Re: custom task question

2005-04-08 Thread Greg Gimler
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

Re: custom task question

2005-04-08 Thread Matt Benson
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

Re: custom task question

2005-04-08 Thread Greg Gimler
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

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, >

  1   2   >