Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 72620 invoked from network); 4 May 2004 16:58:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 May 2004 16:58:19 -0000 Received: (qmail 5417 invoked by uid 500); 4 May 2004 16:58:08 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 5375 invoked by uid 500); 4 May 2004 16:58:08 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 5295 invoked from network); 4 May 2004 16:58:07 -0000 Received: from unknown (HELO amsfep15-int.chello.nl) (213.46.243.28) by daedalus.apache.org with SMTP; 4 May 2004 16:58:07 -0000 Received: from chello.nl ([80.57.224.134]) by amsfep15-int.chello.nl (InterMail vM.6.00.05.02 201-2115-109-103-20031105) with ESMTP id <20040504165809.ZPFD532.amsfep15-int.chello.nl@chello.nl> for ; Tue, 4 May 2004 18:58:09 +0200 Message-ID: <4097CC3B.40509@chello.nl> Date: Tue, 04 May 2004 19:00:43 +0200 From: Anthony Goubard User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: ANT 1.7 features suggestion Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, A few weeks ago, there was a discussion about the new features in ANT 1.7. I've made a list of features that I think would be useful in ANT and that I'd like to discuss on this mailing list. Maybe some of you would have a usage of these new feature for your existing ANT code. 1) Integrate if and unless at the Task level. This would allow all ANT tasks to have the if and unless attribute (the same way that it has an id attribute). So far the only way to do it is by using except if you use one of the task which has already the "if" "unless" attributes such as . I think ANT users would use this feature to remove some tartget created only for the purpose of the "if" or would remove the ant-contrib task. 2) Same thing for the components fileset, mapper, include?, ... 3) Regexp conditions I think these conditions would be useful for ANT and The first one would test a string if it contains a regular exression. The second one would test if a string matches a regular expression. Note that we don't need to create new conditions we could also extend the and 4) Add an "overwrite" attribute at the property task. Properties are immutable but sometimes I think that you would like to change a propety. The way to do it is to use with , now you would be able to redefine an property with overwrite="true". 5) Merge some jar files There are too many jar files in the lib directory, here is a proposition to reduce the number of jar files: Remove ant - Remove ant-launcher.jar and integrate the classes to ant.jar, this would also imply that the loading of the class Main is done using reflection and not using an interface as it is now. - I think that more than 50% of the users uses Java 1.4 and all the tasks that can be realized with 1.4 should be in the same jar file : xalan, xslp, swing, sound (it's even ok for me it's in ant-nodeps.jar) - put all J2EE tasks together - all tasks that uses apache or open source in ant-osi.jar (ant-commons-*.jar, ant-apache-*.jar, junit, ant-jakarta-*.jar, ant-jdepend.jar, ant-jsch.jar) - all tasks using external sun java lib (jmf, javamail, jai) Any other suggestion is welcome. 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 beginning or you may want to pass some parameters. That's why it would be nice to have a "keepProperties" (or whatever) attribute to the and task. Let me know if you want me to implement some of my ideas or report some of them in Bugzilla. Ciao, Anthony --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org