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. artifacts name=simple-lib artifact name=create-dirs

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

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

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 gscok...@gmail.com 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

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

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

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 br...@callenish.com

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

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 br...@callenish.com 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

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

2012-02-17 Thread Dominique Devienne
2012/2/17 Bruce Atherton br...@callenish.com: 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.

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

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

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 opinion. I

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

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

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 nicolas.lale...@hibnet.org 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

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 Steele, Richard
On Thu, Feb 16, 2012 at 2:49 PM, Mansour Al Akeel mansour.alak...@gmail.com wrote: 2012/2/16 Nicolas Lalevée nicolas.lale...@hibnet.org 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

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

2012-02-16 Thread Bruce Atherton
, 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 point I think we could provide an upgrade

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

2012-02-16 Thread Nicolas Lalevée
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 launch of ant with no parameter on the command line will execute your groovy build script. See

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

2012-02-16 Thread Nicolas Lalevée
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 to be build file compatible. The thinking then was an XSLT file could be provided if necessary

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 nicolas.lale...@hibnet.org 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

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

2012-02-16 Thread Bruce Atherton
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 wait for an Ant 2.0 :) If you

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

2012-02-15 Thread Mansour Al Akeel
. But just to check available ideas. On Tue, Feb 14, 2012 at 2:35 PM, Bruce Atherton br...@callenish.com wrote: 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

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

2012-02-15 Thread Jeffrey E Care
Mansour Al Akeel mansour.alak...@gmail.com 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

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

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

2012-02-14 Thread Stefan Bodewig
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 then it certainly wouldn't only

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

2012-02-14 Thread Matt Benson
, 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's Path looks too limited for that). If we really

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

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

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

2012-02-13 Thread Bruce Atherton
) 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 won't be able to help

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

2012-02-13 Thread Mansour Al Akeel
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 won't be able to help much

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

2012-02-13 Thread Jeffrey E Care
Mansour Al Akeel mansour.alak...@gmail.com wrote on 02/13/2012 01:57:56 PM: From: Mansour Al Akeel mansour.alak...@gmail.com To: Ant Developers List dev@ant.apache.org Cc: Stefan Bodewig bode...@apache.org Date: 02/13/2012 01:58 PM Subject: Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

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

2012-02-13 Thread Mansour Al Akeel
: 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 forking Ant and rewrite parts of it to use Java 7 NIO, and introduce java plugin frame work http://jpf.sourceforge.net/ crossed my mind few times

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

2012-02-13 Thread Bruce Atherton
...@gmail.com wrote on 02/13/2012 01:57:56 PM: From: Mansour Al Akeel mansour.alak...@gmail.com To: Ant Developers List dev@ant.apache.org Cc: Stefan Bodewig bode...@apache.org 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

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

2012-02-13 Thread Mansour Al Akeel
: Mansour Al Akeel mansour.alak...@gmail.com wrote on 02/13/2012 01:57:56 PM: From: Mansour Al Akeel mansour.alak...@gmail.com To: Ant Developers List dev@ant.apache.org Cc: Stefan Bodewig bode...@apache.org Date: 02/13/2012 01:58 PM Subject: Re: NIO 2.0 == Ant 2.0? was Re: Java NIO support

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 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 2.0? ... It could

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 that

Re: Ant 2.0

2004-02-10 Thread Dale Anson
I've also ran into this problem, which prompted the assert 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

Re: Ant 2.0

2004-02-10 Thread Steve Loughran
Dale Anson wrote: I've also ran into this problem, which prompted the assert 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

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,

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

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 ensure

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

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