Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 587A0960B for ; Mon, 13 Feb 2012 18:26:04 +0000 (UTC) Received: (qmail 95226 invoked by uid 500); 13 Feb 2012 18:26:04 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 95119 invoked by uid 500); 13 Feb 2012 18:26:03 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 95110 invoked by uid 99); 13 Feb 2012 18:26:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 18:26:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [173.247.251.126] (HELO biz82.inmotionhosting.com) (173.247.251.126) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 18:25:54 +0000 Received: from [24.108.137.46] (port=50668 helo=[192.168.145.106]) by biz82.inmotionhosting.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Rx0ag-0004xM-3F; Mon, 13 Feb 2012 10:25:30 -0800 Message-ID: <4F39559A.80003@callenish.com> Date: Mon, 13 Feb 2012 10:25:30 -0800 From: Bruce Atherton User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Ant Developers List CC: Stefan Bodewig Subject: NIO 2.0 == Ant 2.0? was Re: Java NIO support References: <87obtc1l08.fsf@v35516.1blu.de> In-Reply-To: <87obtc1l08.fsf@v35516.1blu.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biz82.inmotionhosting.com X-AntiAbuse: Original Domain - ant.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - callenish.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org I actually wanted to discuss Java 7 on the list. I went through its features a while ago and got really excited when I read through NIO 2.0. It does so much that Ant has to struggle with, and so much that Ant can't do. 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? I realize I am violating "Shut up and show me the code". While I personally won't be able to help much for the foreseeable future, I've seen communities be revitalized by creating a new codebase. It attracts new committers who have been annoyed by the previous bug/feature combinations and get excited about the possibilities of helping to create a new codebase. Cocoon did it twice, although I wouldn't recommend that because the people attracted by Cocoon 2.2 went away because they felt their efforts were wasted thanks to Cocoon 3.0. It could be a way to sweep away the kind of cruft that is holding up the release and to redesign Ant to reflect all the lessons learned about how to build software in the last 10 years. Or it could be I'm the only one who read through the NIO 2.0 features and instantly thought about rewriting Ant. What do you guys think about it? On 2/5/2012 11:25 PM, Stefan Bodewig wrote: > On 2012-02-05, Mansour Al Akeel wrote: > >> I have been looking and developing some custom task for ant, for the last >> few days. I noticed that ant tasks don't use java.io directly. I am >> assuming this is due to the way java.io.File behave on different platforms, >> and the support for patterns .... etc. > You must not forget that parts of Ant have been written at a time where > Java2 was too new to require it as runtime environment. > >> However, now with java 7, we have the Path class that is very convenient to >> use. I think having this will make writing tasks easier, by cuting down the >> steps to convert between ants Path and java.nio.file.Path. >> Are there any interests ? > Yes, there is. > > Just now we have voted to accept Java5 (yes, 5, not 7) as our minimum > requirement for Ant's trunk following the upcoming 1.8.3 release. This > means we can not use Java7 features directly. > > One approach that may be possible is to write a FileUtils replacement > using Java7 features. Almost all file system interactions of Ant go > through FileUtils and Ant's core could detect at runtime whether Java7 > is around and use the matching FileUtils class. > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org