Re: Peformance Task usage from custom task

2009-09-02 Thread Dale Anson
>From a custom task, you have access to a Project object, which has both add and remove build listener methods, which means you should be able to add and remove listeners on the fly. I haven't tried this, but I don't see why it wouldn't work. Dale On Wed, Sep 2, 2009 at 10:24 AM, Raja Nagendra

Re: Scanning Resource Collections Several Times

2009-08-21 Thread Dale Anson
Hi Stefan, Does your change improve performance of the delete task at all? I recently replaced many of the calls to delete in our build files with an exec call to rm, since profiling showed the delete task was responsible for over 50% of the total time of the build. Part of the problem is th

Re: Task for substringing?

2007-07-22 Thread Dale Anson
Hi, A little late, but Antelope has a StringUtils task that does substrings. Maybe that would help with your situation? Dale Kevin Jackson wrote: Hi all, > If there currently isn't a way of achieving this, > then I can put > something together for it (and get paid for it :) Well yester

Re: svn commit: r344333 - in /ant/core/trunk: docs/manual/CoreTasks/xmlproperty.html src/etc/testcases/taskdefs/xmlproperty.xml src/main/org/apache/tools/ant/taskdefs/XmlProperty.java src/testcases/or

2005-11-16 Thread Dale Anson
Thanks! How close is 1.7 to release? [EMAIL PROTECTED] wrote: Author: bodewig Date: Tue Nov 15 00:30:40 2005 New Revision: 344333 URL: http://svn.apache.org/viewcvs?rev=344333&view=rev Log: add resource support to xmlproperty Modified: ant/core/trunk/docs/manual/CoreTasks/xmlproperty.html

Re: AntUnit

2005-11-08 Thread Dale Anson
Stefan Bodewig wrote: Might just need an "add(AntUnit)" method in AntUnit itself. Interesting idea. 3. a way to disable individual tests or disable entire suites. In JUnit I tend to do so by simply changing the name of the method (prefix with no) and even in NUnit which s

Re: XmlProperty

2005-11-07 Thread Dale Anson
Awesome! Steve Loughran wrote: Dale Anson wrote: I'm not up on the code, but I like the concept, and I like the idea of retrofitting existing tasks to use a generic resource rather than methods for each specific type. My original question was about having the XmlProperty task read f

Re: AntUnit

2005-11-07 Thread Dale Anson
As I mentioned in another thread, this approach to unit testing for Ant is much easier than junit testing. The concept is similar, but there is no need to write Java code for tests. The tests are in build files, several layers of indirection are avoided, and anyone who can write a build file

Re: XmlProperty

2005-11-07 Thread Dale Anson
I'm not up on the code, but I like the concept, and I like the idea of retrofitting existing tasks to use a generic resource rather than methods for each specific type. My original question was about having the XmlProperty task read from a property as well as a file, I've always wanted similar

Re: XmlProperty, AntUnit, questions

2005-11-02 Thread Dale Anson
Matt Benson wrote: I haven't seen you around the lists for awhile until recently, Dale... Some SPF thing has prevented me from posting to the apache lists for some time. I finally got around to figuring it out. The ongoing resource collection work in Ant HEAD seeks to address this exact

XmlProperty, AntUnit, questions

2005-11-01 Thread Dale Anson
Several questions at once, they sort of led one to another... First question(s) -- I wanted to use the XmlProperty task. I have a custom task that provides some xml as output in a property. The XmlProperty task only reads from a file, so I needed to write my property value to a file so I cou

Re: ant -projecthelp not working under certain conditions...

2004-08-13 Thread Dale Anson
Rob, Also look at bug 27722. There are other issues with -projecthelp, it might be good to roll them all up together. Dale Anderson, Rob (Global Trade) wrote: I have an issue with the use of ant -projecthelp. I have a build file that will load properties from a file based on the value of a prope

Ant 1.7 enhancement reminder

2004-05-24 Thread Dale Anson
Just a friendly reminder about bug 27722. This had to do with project and target descriptions. It would be nice to include this in the next release. Patches are attached to the bug, it should be an easy thing to add. Thanks, Dale --

Re: ANT 1.7 features suggestion

2004-05-05 Thread Dale Anson
[EMAIL PROTECTED] wrote: 6) Get the properties from a target after antcall At the moment if you have a target that define some properties, the only way to call it in order to get the values is using "depends". This is a problem as you may want to invoke your target not necessary at the beginn

Re: Ant 1.6.2 ?

2004-04-20 Thread Dale Anson
I'd like to see bug 27722 added to the list. There are patches attached to the bug that fix a problem with project and target descriptions. The patches implement what appears to have been the intented behaviour of description attributes and elements, and would be a big help in being able to aut

Project description includes target descriptions

2004-03-17 Thread Dale Anson
There has been a thread on the Ant user group concerning the element that really should be addressed in this list. In Ant 1.6.x, oata.types.Description explicity checks all Targets in a project for a element and adds those descriptions to the Project description. I posted bug 27722, which con

Re: encoding stuff

2004-03-15 Thread Dale Anson
Hi Matt, Just this past week I ran into a problem using slightly different jdk versions on Solaris. One had the default character encoding as ISO-8859-1, the other had ISO-656-1. That was enough to break things for me. My solution was to use a Writer/OutputStream that allowed me to set the enco

Re: [Ant Wiki] Updated: AntInternals

2004-03-10 Thread Dale Anson
I don't believe I've ever laughed out loud at a posting on this list, but this one was great! [EMAIL PROTECTED] wrote: Date: 2004-03-08T08:51:25 Editor: StefanBodewig <[EMAIL PROTECTED]> Wiki: Ant Wiki Page: AntInternals URL: http://wiki.apache.org/ant/AntInternals typo Change L

AntStructure and optional tasks

2004-02-25 Thread Dale Anson
I noticed that the AntStructure task doesn't include the optional tasks in the dtd that it produces. I've read through the source for AntStructure, which led me to Project, which led me to ComponentHelper, which led me to realize there isn't an obvious way (or at least not obvious to me) to get a d

Re: cvs commit: ant/docs external.html projects.html

2004-02-20 Thread Dale Anson
Stefan, Thanks to you too! Dale [EMAIL PROTECTED] wrote: bodewig 2004/02/20 00:33:24 Modified:docs external.html projects.html Log: regenerate site Revision ChangesPath 1.158 +104 -0ant/docs/external.html Index: external.html

Re: cvs commit: ant/xdocs projects.xml external.xml

2004-02-20 Thread Dale Anson
Thanks! [EMAIL PROTECTED] wrote: jhm 2004/02/20 00:13:37 Modified:xdocsprojects.xml external.xml Log: Antelope new url; new tasks: antariel, rundoc Revision ChangesPath 1.14 +5 -5 ant/xdocs/projects.xml Index: projects.xml =

Re: How to update 'Related Projects' page?

2004-02-19 Thread Dale Anson
Contact: [EMAIL PROTECTED] wrote: Easiest thing for you is just to send the infos per mail to this list. Easier for us would be if you attach a diff to xdocs/projects.xml :) Jan -Original Message- From: Dale Anson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 7:16 AM To: Ant Devel

How to update 'Related Projects' page?

2004-02-19 Thread Dale Anson
What's the procedure for updating an item on the "Related Projects" page (http://ant.apache.org/projects.html) on the Ant website? I'd like to update the listing for the Antelope entry so that "Compatibility" says "Ant 1.5 and higher" and "URL" says "http://antelope.tigris.org";. Thanks, Dale -

Re: Ant 2.0

2004-02-10 Thread Dale Anson
I've also ran into this problem, which prompted the task that is now in ant-contrib as a solution. It works a lot like Java's assert in that it can be turned on or off either through a command line parameter or by a property. It is a task, so does require build file modification, but it is use

Re: new task 'ants' required or not.

2003-12-22 Thread Dale Anson
Sounds like the proposed is identical to the existing in ant-contrib. Dale Antoine Lévy-Lambert wrote: Sathyanarayana V. wrote: Problem with 'subant' is: it doesnt communicate/contribute to overall build status. subprojects may fail, but the overall process will be successful. Wouldnt it con

Re: Java task failing with AntSecurityException

2003-11-10 Thread Dale Anson
Do something like this: The Ant doc for the task has a link to the details. Dale Jeremy Nix wrote: I'm trying to use the Java task to compile my xsl documents into tem

Re: [vote] Ant 1.6 : further release plan

2003-10-14 Thread Dale Anson
I'm not the definitive expert for jEdit, but I've had no problem building jEdit 4.2 with Ant 1.6, and no problem building or running the Antelope plugin for jEdit with Ant 1.6. I can't speak for the AntFarm plugin as I don't use it. Dale Steve Loughran wrote: [EMAIL PROTECTED] wrote: I would al

Re: failonerror; general solution

2003-10-10 Thread Dale Anson
This has been a long thread, obviously it strikes a pain point. Here's a few more observations from the peanut gallery: Using and as general control tasks solves the problem of a target's "if" and "unless" attributes only checking for property existence rather than value. They also help structur

Re: failonerror; general solution

2003-10-07 Thread Dale Anson
Stefan, The source for ant-contrib's has your name as the author, so "them" is "you"??! Dale Stefan Bodewig wrote: On Mon, 06 Oct 2003, Gus Heck <[EMAIL PROTECTED]> wrote: Sequential has the advantage of not needing to get the ant-contrib folks to give it to us (which I seem to remember was the

Re: failonerror; general solution

2003-10-06 Thread Dale Anson
Hi Peter, Yes, I can do that. I just read through the antlib docs after I saw your message (I hadn't really looked at them before), that's some nice stuff! Dale peter reilly wrote: On Friday 03 October 2003 16:34, Dale Anson wrote: FYI, I'll be posting a new antelope distribution

Re: failonerror; general solution

2003-10-03 Thread Dale Anson
. The try/catch construct may not be familiar to everyone. Personally, I don't think that an enhanced 'sequential' will be an easier concept to grasp. Dale Dominique Devienne wrote: -----Original Message- From: Dale Anson [mailto:[EMAIL PROTECTED] What's the difference i

Re: failonerror; general solution

2003-10-03 Thread Dale Anson
What's the difference in use case between this and the try/catch from ant-contrib or antelope? I'd suggest grabbing the try/catch from either, and making it a core task. Just judging from the e-mail that I get, the try/catch task in antelope is one of the main reasons people download it. Contra

Re: All those jars...!

2003-09-30 Thread Dale Anson
Conor, Thanks for the explanation, it makes perfect sense. I was pretty sure there was a good reason to have the jars separated, but didn't pick up on the classloader issue. Dale Conor MacNeill wrote: On Tue, 30 Sep 2003 05:04 am, Dale Anson wrote: I don't claim to understand the

Re: All those jars...!

2003-09-29 Thread Dale Anson
y doing the above, I only need one jar. I'm sure there must be a good reason to have the ant-launcher classes in a separate jar, but obviously I don't know what it is or I wouldn't be rambling on about it! Dale Steve Loughran wrote: Dale Anson wrote: It looks like either optional

Re: All those jars...!

2003-09-29 Thread Dale Anson
-classpath ant.jar:optional.jar org.apache.tools.ant.Main Buildfile: build.xml does not exist! Build failed java -classpath ant.jar:ant-launcher.jar org.apache.tools.ant.Main Buildfile: build.xml does not exist! Build failed Conor MacNeill wrote: On Mon, 29 Sep 2003 10:27 am, Dale Anson wrote: Woops -- never

Re: All those jars...!

2003-09-29 Thread Dale Anson
Woops -- never mind. If I get ant.jar and optional.jar from the same distribution in the path, the rest are optional, as they should be. Dale Anson wrote: > I downloaded the binary Ant 1.6 alpha, from the 9/9/2003 nightly build. > The 'lib' directory has 30+ jars. I regularly use

All those jars...!

2003-09-28 Thread Dale Anson
I downloaded the binary Ant 1.6 alpha, from the 9/9/2003 nightly build. The 'lib' directory has 30+ jars. I regularly use Ant from within jEdit. Typically, I put a couple of soft link in my ${user.home}/.jedit/jars to ant.jar and optional.jar, or on Windows, I copy ant.jar and optional.jar into the

Re: [VOTE] Ant/Antcall Returning properties and references [WAS] Re: ant 1.5.4 : Import

2003-09-02 Thread Dale Anson
Dominique -- Dang, I didn't know there was a competition going on! I wrote most of the Antelope tasks because I had a specific need. Feel free to grab what you want and put it in Ant-contrib. I like your "loophole" for your "antreturn" task, I didn't like the code reuse either, but the way the "

Re: ant tutorial

2003-04-17 Thread Dale Anson
Conor, Thanks for posting the tutorial. It is an excellent explanation of the parts of Ant that are a struggle to figure out from just reading code and api docs. It alsow answered a question that I had posted a bug about -- the "extra" blank target in Ant 1.6. Not a bug, it's a design feature.

Re: ssh exec task...

2003-04-01 Thread Dale Anson
Thanks -- I take it you saw that jsch 0.1.3 was released this morning? Would you mind making one other minor change to the docs, it references jsch 0.1.2 as a requirement, but 0.1.3 is the minimum. Dale Anson Stefan Bodewig wrote: On Tue, 25 Mar 2003, Dale Anson <[EMAIL PROTECTED]>

Re: ssh exec task...

2003-03-25 Thread Dale Anson
e "append" append to or overwrite the output file "outputproperty" store the output in a property Dale Anson Steve Loughran wrote: - Original Message - From: "Dale Anson" <[EMAIL PROTECTED]> To: "Ant Developers List" <[EMAIL PROTECTED]> Sen

Re: ssh exec task...

2003-03-20 Thread Dale Anson
Stefan Bodewig wrote: On Wed, 19 Mar 2003, Dale Anson <[EMAIL PROTECTED]> wrote: I'll modify the task to capture the output correctly and make the maxwait attribute actually work. Can you rename it to timeout (to mirror ) at the same time? Will do. I didn't see the jsch

Re: ssh exec task...

2003-03-20 Thread Dale Anson
to capture the output correctly and make the maxwait attribute actually work. I didn't see the jsch.jar file in Ant cvs, how are optional libraries like this generally handled? Dale Steve Loughran wrote: - Original Message ----- From: "Dale Anson" <[EMAIL PROTECTED]> To

Re: ssh exec task...

2003-03-18 Thread Dale Anson
How do I post changes to the optional/ssh files to cvs? Dale Stefan Bodewig wrote: On Thu, 13 Mar 2003, Dale Anson <[EMAIL PROTECTED]> wrote: I had output from the one I wrote going to the log, would you mind sending me your code and maybe I can see how to get it to output to the log? Or

Re: ssh exec task...

2003-03-14 Thread Dale Anson
Hi Rob, I haven't been following the ant dev list for a couple of weeks, I've been busy with other things. I see you've made progress with the ssh exec task. I had output from the one I wrote going to the log, would you mind sending me your code and maybe I can see how to get it to output to th