Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-22 Thread Bruce Atherton
Ok, that was a bad example. It was far too much a programmer point of view rather than a user's. Plus it lost formatting. Let me try again with a (hopefully) clearer example of what I think you are talking about.

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-21 Thread Bruce Atherton
It sounds like you are both are on a similar wavelength. Let me see if I understand. A new style of build (while maintaining the old style, of course) would be to declare some combination of resources to have similar states and transitions between states. So something like this (just as an exa

Re: Ant 2 design (was Re: NIO 2.0 == Ant 2.0?)

2012-02-21 Thread Bruce Atherton
Unit testing has long been considered important for Ant. A published report a few years ago (can't find it now) showed our code coverage was among the highest of the open source projects that they reported on, as I recall. It has often happened that committers push back on code submissions aski

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-19 Thread Dominique Devienne
On Sat, Feb 18, 2012 at 11:02 AM, Gilles Scokart wrote: > For me, one feature for a 2,0 would be a different style of dependency > tree that would allow better parallel execution (on the same machine, > or why not on distributed machines). Agreed. I was in fact thinking of this one as well when I

Re: Ant 2 design (was Re: NIO 2.0 == Ant 2.0?)

2012-02-18 Thread Mansour Al Akeel
On Sat, Feb 18, 2012 at 6:03 PM, Bruce Atherton wrote: > I have similar thoughts on the high level abstract view of Ant. Here is how > I see it: > > 1. Command Line Processor > 2. Build File Parser > 3. Dependency Tree Resolver >    - This is essentially a Dependency Injection/IOC system, but with

Re: Ant 2 design (was Re: NIO 2.0 == Ant 2.0?)

2012-02-18 Thread Bruce Atherton
I have similar thoughts on the high level abstract view of Ant. Here is how I see it: 1. Command Line Processor 2. Build File Parser 3. Dependency Tree Resolver - This is essentially a Dependency Injection/IOC system, but with late binding (Unknown Element) and modification through things l

Re: Ant 2 design (was Re: NIO 2.0 == Ant 2.0?)

2012-02-18 Thread Mansour Al Akeel
Bruce, The current design is simple, and proven successful and easy to maintain. Here's a quick pseudo: 1- parse the build file, initializing all the "DataStructures" and references to the tasks and macros. Populate them all to the running context. Maybe OSGI has something like this. 2- if there

Re: Ant 2 design (was Re: NIO 2.0 == Ant 2.0?)

2012-02-18 Thread Bruce Atherton
Of course you are right, and initially parallelism and distributed builds will probably not be in the initial alpha release (unless it is on someones scratching list). Just getting something to run existing build files reliably will be fine. But you have suggested that we tag build files that

Re: Ant 2 design (was Re: NIO 2.0 == Ant 2.0?)

2012-02-18 Thread Mansour Al Akeel
Keeping it simple, is a great idea. I am not sure if introducing parallelism is a good idea or if it's easy to implement and maintain. If it is design is modular, I think all these can be added as plugins. Performance ??!! On Sat, Feb 18, 2012 at 1:47 PM, Bruce Atherton wrote: > This too I find

Ant 2 design (was Re: NIO 2.0 == Ant 2.0?)

2012-02-18 Thread Bruce Atherton
This too I find a great idea. Multicores mean we need more ways of exploiting parallelism, particularly if they can be identified automatically by the application. For backward compatibility it would have to be optional, though, either specified on the command line or at the build file level o

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-18 Thread Gilles Scokart
For me, one feature for a 2,0 would be a different style of dependency tree that would allow better parallel execution (on the same machine, or why not on distributed machines). I see the 'targets' being more declarative, becoming a state transition saying : I need this resources in that state, I w

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-17 Thread Bruce Atherton
It doesn't require a rewrite, but a rewrite could simplify integrating a usecase like this as well as integrating other features that we already have into it and making them simpler and unified inthe code. I agree the usecase is an excellent one which could simplify the lives of exactly the typ

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-17 Thread Dominique Devienne
2012/2/17 Bruce Atherton : > A lot of companies have their own, internally written build file generators > just so their build systems are consistent and exactly what they want. Our > Related Projects and External Tools page has some of these that were made > public, I suspect. > > Surely there is

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Bruce Atherton
ward compatibility is so important. They can roll out an upgrade to Ant 2, make sure everything works as expected, and then in their own time roll out a simplified, standardized build to each of the systems they are currently running it. Well, again, I think it's already there, no need to

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Nicolas Lalevée
Le 16 févr. 2012 à 20:49, Mansour Al Akeel a écrit : > 2012/2/16 Nicolas Lalevée > >> >> >> I cannot talk about Gradle because I never really understand the real >> motive apart from the apparent cool groovy language features. >> >> On the other hand, Easyant is about using Ant on steroïds.

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Nicolas Lalevée
ompatibility." > > The general agreements that I remember, although I haven't trawled the > mailing list to find references, were that backward binary compatibility > could only be broken through an Ant 2.0 release, and that Ant 2.0 should do > everything in its power t

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Nicolas Lalevée
d on file > extension or a flag on the command line. That might encourage new projects to > adopt it. Well, again, I think it's already there, no need to wait for an Ant 2.0 :) If you add the groovy-front.jar in Ant's boot classpath, write a build.groovy, then a launc

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Bruce Atherton
t trawled the mailing list to find references, were that backward binary compatibility could only be broken through an Ant 2.0 release, and that Ant 2.0 should do everything in its power to be build file compatible. The thinking then was an XSLT file could be provided if necessary although at this poin

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Steele, Richard
On Thu, Feb 16, 2012 at 2:49 PM, Mansour Al Akeel wrote: > > > > 2012/2/16 Nicolas Lalevée > > > > implementation are, but a 1s launch (bash script and jvm launch included) > > would be to too long for me. > > > Agreed. > > And this is why I suggested java plugin framework in a previous email

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Bruce Atherton
Oops, accidental deletion. On 2/16/2012 11:47 AM, Bruce Atherton wrote: b) have a number of separate Ant build scripts that follow different standards in different areas of the company, particularly if they have acquired other companies with their own Ant builds.

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Mansour Al Akeel
2012/2/16 Nicolas Lalevée > > > I cannot talk about Gradle because I never really understand the real > motive apart from the apparent cool groovy language features. > > On the other hand, Easyant is about using Ant on steroïds. The idea is > basically sharing Ant build scripts. > Each time I hav

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Bruce Atherton
I'd hope to go further than that in backwards compatibility. I work with a lot of companies that are: a) resistant to learning new things unless there is a good reason for it (such as the migration from Apache HTTP Server from 1.x to 2.x to resolve security issues) b) have a number o

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Nicolas Lalevée
Le 15 févr. 2012 à 20:05, Mansour Al Akeel a écrit : > Another thing I don't understand about the current Ant. Why there are > derivatives from ant and they are gaining popularity ? I am talking about > gradle and easyant. > > Gradle adds mutli project support, and easyant sets some conventions

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Nicolas Lalevée
Le 14 févr. 2012 à 20:02, Bruce Atherton a écrit : > On 2/14/2012 6:13 AM, Stefan Bodewig wrote: >> >> This will lead us to the discussion of what Ant2 would be. A rewritten >> Ant that remains compatible (or mostly so) on the build file level or >> something quite different? >> > > My opinio

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-16 Thread Bruce Atherton
On 2/15/2012 5:48 PM, Bruce Atherton wrote: I've read a blog post that said that one of the requirements that has been adopted is OSGI compatibility... Here is the post I mentioned: http://osgithoughts.blogspot.com/2011/05/java-se-8-modularity-requirements.html It brings up a good point:

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-15 Thread Bruce Atherton
Those changes you have sound useful. Good luck with getting them cleared, I'm sure a number of people would appreciate having access to those hooks. I think adding the standard packaging and deployment mechanism of Java 8 to Antlibs once 8 comes out makes a lot of sense. Once that happens som

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-15 Thread Jeffrey E Care
Mansour Al Akeel wrote on 02/15/2012 02:05:28 PM: > Is there something wrong with antlib ? Would OSGI be more convenient and > appealing for programmers to create and contribute their plugins rather > than writing their own build system ? Derivatives of eclipse exists, but > mainly they are just

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-15 Thread Mansour Al Akeel
early to start thinking about a rewrite. But just to check available ideas. On Tue, Feb 14, 2012 at 2:35 PM, Bruce Atherton wrote: > > > On 2/13/2012 2:55 PM, Jesse Glick wrote: > >> On 02/13/2012 01:25 PM, Bruce Atherton wrote: >> >>> could Java

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-14 Thread Bruce Atherton
On 2/13/2012 2:55 PM, Jesse Glick wrote: On 02/13/2012 01:25 PM, Bruce Atherton wrote: could Java 7 and NIO 2.0 be a good reason to create Ant 2.0? While the new java.nio.file.* APIs are indeed valuable for a tool like Ant, I hardly think a fork or major rewrite is required to take

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-14 Thread Bruce Atherton
On 2/14/2012 6:13 AM, Stefan Bodewig wrote: This will lead us to the discussion of what Ant2 would be. A rewritten Ant that remains compatible (or mostly so) on the build file level or something quite different? My opinion. I think we need at least an option for being backwards compatible a

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-14 Thread Matt Benson
a while, but I've still been >> wondering, could Java 7 and NIO 2.0 be a good reason to create Ant >> 2.0? > > There are things in NIO2 that can be added via FileUtils one way or the > other, but it could also make us rethink our concept of Resources > (although nio2

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-14 Thread Stefan Bodewig
a good reason to create Ant > 2.0? There are things in NIO2 that can be added via FileUtils one way or the other, but it could also make us rethink our concept of Resources (although nio2's Path looks too limited for that). If we really want to take the burden of redesigning Ant on us t

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Jeffrey E Care
> > I spent some time starting to implement a very simple (only a few tasks) > new version of Ant that started from Java 7. Personal issues have taken > me out of the game for a while, but I've still been wondering, could > Java 7 and NIO 2.0 be a good reason to create Ant

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Jesse Glick
On 02/13/2012 01:25 PM, Bruce Atherton wrote: could Java 7 and NIO 2.0 be a good reason to create Ant 2.0? While the new java.nio.file.* APIs are indeed valuable for a tool like Ant, I hardly think a fork or major rewrite is required to take advantage of them. As Stefan pointed out, it would

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Mansour Al Akeel
happen. Assuming anything happens. > > > On 2/13/2012 12:02 PM, Jeffrey E Care wrote: > >> Mansour Al Akeel wrote on 02/13/2012 >> 01:57:56 PM: >> >> > From: Mansour Al Akeel >> > To: Ant Developers List >> > Cc: Stefan Bodewig >> >

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Bruce Atherton
l Akeel wrote on 02/13/2012 01:57:56 PM: > From: Mansour Al Akeel > To: Ant Developers List > Cc: Stefan Bodewig > Date: 02/13/2012 01:58 PM > Subject: Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support > > Bruce, > In fact I was thinking about the same thing. The idea of

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Mansour Al Akeel
in these ideas. On Mon, Feb 13, 2012 at 3:02 PM, Jeffrey E Care wrote: > Mansour Al Akeel wrote on 02/13/2012 01:57:56 > PM: > > > From: Mansour Al Akeel > > To: Ant Developers List > > Cc: Stefan Bodewig > > Date: 02/13/2012 01:58 PM > > Sub

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Jeffrey E Care
Mansour Al Akeel wrote on 02/13/2012 01:57:56 PM: > From: Mansour Al Akeel > To: Ant Developers List > Cc: Stefan Bodewig > Date: 02/13/2012 01:58 PM > Subject: Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support > > Bruce, > In fact I was thinking about the same thing.

Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Mansour Al Akeel
> new version of Ant that started from Java 7. Personal issues have taken me > out of the game for a while, but I've still been wondering, could Java 7 > and NIO 2.0 be a good reason to create Ant 2.0? > > I realize I am violating "Shut up and show me the code". While

NIO 2.0 == Ant 2.0? was Re: Java NIO support

2012-02-13 Thread Bruce Atherton
tasks) new version of Ant that started from Java 7. Personal issues have taken me out of the game for a while, but I've still been wondering, could Java 7 and NIO 2.0 be a good reason to create Ant 2.0? I realize I am violating "Shut up and show me the code". While I personally w

Re: Ant 2.0

2004-02-10 Thread Steve Loughran
Dale Anson wrote: 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 modificat

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: Ant 2.0

2004-02-10 Thread Jan . Materne
> > One thing that was voted on (positively, I recall), way way back in > > time, was for Ant2.0 to fail on undefined properties. > > Although I've never looked into it, can't you already have it with a > custom PropertyHelper? If you can ensure that your custom property > helper is the last one

Re: Ant 2.0

2004-02-09 Thread Costin Manolache
Steve Loughran wrote: I suppose the problem was that undefined properties were just ignored, and you had a hard time debugging this ( I had similar problems many times ). you can get those messages if you crank up the verbosity, but you still need to go through the lines and look at them. I sup

Re: Ant 2.0

2004-02-09 Thread Stefan Bodewig
On Sun, 08 Feb 2004, Steve Loughran <[EMAIL PROTECTED]> wrote: > One thing that was voted on (positively, I recall), way way back in > time, was for Ant2.0 to fail on undefined properties. Although I've never looked into it, can't you already have it with a custom PropertyHelper? If you can ens

Re: Ant 2.0

2004-02-09 Thread Steve Loughran
Costin Manolache wrote: Steve Loughran wrote: I know Ant2.0-the-rewrite is essentially dead (and essentially obsolete through evolution in the codebase), but I still think we ought to consider using the name as and when the time is appropriate. If we add enough interesting stuff to 1.7, it could

Re: Ant 2.0

2004-02-09 Thread Costin Manolache
Steve Loughran wrote: I know Ant2.0-the-rewrite is essentially dead (and essentially obsolete through evolution in the codebase), but I still think we ought to consider using the name as and when the time is appropriate. If we add enough interesting stuff to 1.7, it could be the time. Please, no

Ant 2.0

2004-02-08 Thread Steve Loughran
I know Ant2.0-the-rewrite is essentially dead (and essentially obsolete through evolution in the codebase), but I still think we ought to consider using the name as and when the time is appropriate. If we add enough interesting stuff to 1.7, it could be the time. One thing that was voted on (po