Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 92215 invoked from network); 4 Nov 2003 22:05:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Nov 2003 22:05:54 -0000 Received: (qmail 61629 invoked by uid 500); 4 Nov 2003 22:05:31 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 61585 invoked by uid 500); 4 Nov 2003 22:05:31 -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 61544 invoked from network); 4 Nov 2003 22:05:31 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 4 Nov 2003 22:05:31 -0000 Received: (qmail 16004 invoked by uid 50); 4 Nov 2003 22:05:36 -0000 Date: 4 Nov 2003 22:05:36 -0000 Message-ID: <20031104220536.16003.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 24411] New: - odd presetdef behavior with "additive" task parameters like javac srcdir 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 DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24411 odd presetdef behavior with "additive" task parameters like javac srcdir Summary: odd presetdef behavior with "additive" task parameters like javac srcdir Product: Ant Version: 1.6Beta Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: jmlennon@us.ibm.com If you use presetdef to create a new task definition, and you supply a default value to a "cumulative" parameter like javac's "srcdir", users of that new definition cannot override that default value, they can only add to it. I find this behavior surprising, and I feel that it seriously limits the usefulness of "presetdef". Many tasks have cumulative parameters like this, e.g.: javac: srcdir, *classpath, extdirs, ... javadoc: sourcepath, packagenames, ... jar: includes, excludes, ... I suspect that users of presetdef will find it much more useful if default values of these cumulative parameters can be overridden, not just supplemented. BTW, aside from this nit, "presetdef" is a wonderful addition to Ant. THanks! The following build file illustrates the problem ========= CUT HERE ================================ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org