>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
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
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
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
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
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
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
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
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
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
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
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
--
[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
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
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
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
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
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
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
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
=
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
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
-
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
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
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
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
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
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
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
. 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
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
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
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
-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
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
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
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 "
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.
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]>
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
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
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
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
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
44 matches
Mail list logo