Re: svn commit: r1066963 - in /ant/core/trunk/src/main/org/apache/tools: ant/ ant/taskdefs/ ant/taskdefs/cvslib/ ant/taskdefs/email/ ant/taskdefs/optional/ ant/taskdefs/optional/depend/ ant/taskdefs/o

2011-02-24 Thread Jon Stevens
I guess this brings up a bigger issue (again) which is when will we modernize Ant? I know that backwards compatibility is a huge thing, so I don't want to step on toes, but it sure would be nice to be able to read and contribute to ant's code with java6 features instead of java4 features. java4 a

Re: "Replace" ANT task overwrites read-only files

2010-10-28 Thread Jon Stevens
Sounds like an overcomplicated, brittle and error prone way to develop code. jon On Thu, Oct 28, 2010 at 2:51 AM, Marco Sambin - NeoLogica < marco.sam...@neologica.it> wrote: > Hi. > > I am using a ANT task in my build.xml in order to implement a > kind > of "conditional compilation" in my Net

Re: binary download cgi is broken

2010-08-29 Thread Jon Stevens
2010 at 08:21, Mark Salter > wrote: > > On 28/08/2010 22:39, Jon Stevens wrote: > >> http://ant.apache.org/bindownload.cgi > >> > >> no way to download ant. > >> > > Source and manual download links exhibit same result:- > > > > Internal

binary download cgi is broken

2010-08-28 Thread Jon Stevens
http://ant.apache.org/bindownload.cgi no way to download ant.

Re: mappedresources question

2010-07-14 Thread Jon Stevens
e: > [this would be a good question for the u...@ant list ;-)] > > On 2010-07-14, Jon Stevens wrote: > >> say i have this: > >>         >>             >>                 >>                 >>                     >>                     >&g

mappedresources question

2010-07-13 Thread Jon Stevens
say i have this: but i want to exclude some files from the WEB-INF/lib that are included in the all.classpath... how would i do that? jon -

Re: Sweetened

2010-07-04 Thread Jon Stevens
avoid even the existing logic of an ivy-cachepath (unless the > dependencies have changed), then the build speed issue would be > resolved. > > Jeff > > On Sat, 2010-07-03 at 23:06 -0700, Jon Stevens wrote: >> Hi all, >> >> For those of you frustrated with the co

Sweetened

2010-07-03 Thread Jon Stevens
Hi all, For those of you frustrated with the complexity of Maven and Ivy dependency management, Sweetened is a great ant only solution for dealing with your jar files. It is blazing fast, easy to understand and integrates really well with Eclipse. http://code.google.com/p/sweetened/ I'd like to

Re: bug in DOMElementWriter

2010-06-29 Thread Jon Stevens
Maybe it is just me, but it seems vastly more efficient to just write out the correct string than call Integer.toHexString(). Also, don't forget to update WHATSNEW since this is potentially a backwards incompatible change. jon On Tue, Jun 29, 2010 at 12:51 AM, Stefan Bodewig wrote: > On 2010-

Re: bug in DOMElementWriter

2010-06-28 Thread Jon Stevens
> > By now I tend to agree with Jon that DOMElementWriter should encode \n, > \r and \t when writing attribute values (and only when writing attribute > values). > > Stefan > Thank you. jon

Re: bug in DOMElementWriter

2010-06-27 Thread Jon Stevens
> > Don't get hand up on the textual representation of the XML file. This > > > > and this > > > > > is exactly the same thing as far as XML is concerned. > > And what about: which ends up like this after 'echoxml'... ? jon

Re: bug in DOMElementWriter

2010-06-27 Thread Jon Stevens
On Sun, Jun 27, 2010 at 10:35 AM, Dominique Devienne wrote: > On Sat, Jun 26, 2010 at 6:54 PM, Jon Stevens wrote: > > For example, attr="&" comes out as attr="&" and not attr="&"... I > > don't have to write attr="&amp;&quo

Re: bug in DOMElementWriter

2010-06-26 Thread Jon Stevens
uld come out as attr=" ", not attr="\n" jon On Sat, Jun 26, 2010 at 12:07 PM, Antoine Levy-Lambert wrote: > Hello Jon, > > do not forget that the ant build file is also written in xml. > > To do what you want, you need to write this : > > > > &

Re: bug in DOMElementWriter

2010-06-26 Thread Jon Stevens
Here is a better example: [8][ //tmp ]% ant Buildfile: build.xml BUILD SUCCESSFUL Total time: 0 seconds Not what I was expecting. jon On Fri, Jun 25, 2010 at 5:02 PM, Jon Stevens wrote: > Say you have an element like this: > > > > If you want to load that through

bug in DOMElementWriter

2010-06-25 Thread Jon Stevens
Say you have an element like this: If you want to load that through an XMLFragment and then output it later, the DOMElementWriter.encode() method doesn't case properly for non-printable characters. The quick fix for me in this case was to overload that method and add this: case

Re: Union + Tar

2010-06-25 Thread Jon Stevens
Ok, how do I do the same thing with the war task lib directory? need to put a reference to my union in here. jon On Fri, Jun 25, 2010 at 9:47 AM, Jon Stevens wrote: > sweet. works like a charm (even though it is a bit non-intuitive). mind if > i submit a diff to t

Re: Union + Tar

2010-06-25 Thread Jon Stevens
sweet. works like a charm (even though it is a bit non-intuitive). mind if i submit a diff to the tar documentation page with this example? jon On Thu, Jun 24, 2010 at 9:10 PM, Stefan Bodewig wrote: > On 2010-06-25, Jon Stevens wrote: > > > Now, I'd like to reference th

Union + Tar

2010-06-24 Thread Jon Stevens
I've got my class which extends Union typedef. Inside of it are a bunch of FileList's which in turn have a bunch of FileResources. Now, I'd like to reference that Union within a ... something like this:

Re: Extending path

2010-06-14 Thread Jon Stevens
> Sorry to step late into the thread but you know you can change the ant used > in Eclipse ? > In the preferences look into Ant / Runtime and change the "Ant Home". > > Nicolas Sure, but getting a company full of java developers to all do that is pretty much impossible. =) I have a hard enough ti

Re: Extending path

2010-06-14 Thread Jon Stevens
On Mon, Jun 14, 2010 at 2:06 AM, Stefan Bodewig wrote: >  Since that method is final (at > least in 1.8.0) you can't even override it. Yea, can we talk about this? It seems like there is a lot of places where ant discourages people from being able to override stuff. Is there a good reason for tha

Re: Ivy 2.2.0-RC1

2010-06-11 Thread Jon Stevens
ng. > Patches are always welcome to improve it :-) > > Could you give more info about what is not working with this example? > I just tried myself an I didn't had a problem... > > Maarten > > > > > - Original Message > From: Jon Stevens > To: An

Re: Ivy 2.2.0-RC1

2010-06-10 Thread Jon Stevens
Other than the documentation on the website is confusing and broken, none from me! =) http://ant.apache.org/ivy/history/latest-milestone/tutorial/start.html This does not work. If I'm new to the project, I'd expect to be able to copy/paste something from the fi

Re: Extending path

2010-06-10 Thread Jon Stevens
Ok, new question. Say I have a build.xml that looks like this: javac.classpath: ${toString:javac.classpath} spath extends Union. When the ${

Re: Extending path

2010-06-10 Thread Jon Stevens
On Thu, Jun 10, 2010 at 10:58 AM, Jon Stevens wrote: > the getCollection() method on my spath element is called. However, the > scope attribute on the spath is null. (ie: I've overrided > getCollection() and this.scope is null). I'm not sure why this is > getting nulled

Re: Extending path

2010-06-10 Thread Jon Stevens
> I think you've later seen that you don't since all the attributes of the > are available via as well.  Using Ant 1.8.0 you can even > do a sfile.as(FileProvider.class) to get access to the java.io.File > instance itself. > > Yep, absolutely.  That's why I suggested tagging a whole resource > co

Re: Extending path

2010-06-09 Thread Jon Stevens
On Wed, Jun 9, 2010 at 3:06 AM, Stefan Bodewig wrote: > [I appologize for reshuffling your post but this way my response make > mode sense, at least to me 8-)] I sometimes ramble. Thanks! =) > Letting the IDE force the Ant version upon you somewhat defeats the > purpose of an IDE independent bui

Re: Extending path

2010-06-08 Thread Jon Stevens
lternative to being able to specify your dependencies in your ant build file and then use those to produce your Eclipse .classpath and launch config files. All I want is something simple and fast and just works. =) thanks, jon On Tue, Jun 8, 2010 at 7:14 AM, Stefan Bodewig wrote: > On 2010-06-04, Jon

Re: Extending path

2010-06-07 Thread Jon Stevens
ection to transform the > resources of some other resource collection to your new resource type. >  This approach is probably your best best because then your resources > should be usable by whatever other tasks know how to deal with > filesystem-based resources. > > HTH, > M

Re: Extending path

2010-06-07 Thread Jon Stevens
Anyone? Stefan? On Fri, Jun 4, 2010 at 11:52 AM, Jon Stevens wrote: > Hi all, > > Been a long long time since I've been around these parts, so apologies > if this has been covered before. > > What I'd like to do is be able to add a couple of attributes to the > el

Extending path

2010-06-04 Thread Jon Stevens
Hi all, Been a long long time since I've been around these parts, so apologies if this has been covered before. What I'd like to do is be able to add a couple of attributes to the element that lives in a and then get access to those attributes in my Task. I've mucked around for the last couple