Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 34612 invoked by uid 500); 17 Sep 2001 01:07:39 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 34603 invoked from network); 17 Sep 2001 01:07:38 -0000 From: "Conor MacNeill" To: Subject: RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs GZip.java Date: Mon, 17 Sep 2001 11:08:35 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20010916022545.ZXQY4715.mss.rdc2.nsw.optushome.com.au@there> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Peter Donald [mailto:donaldp@apache.org] > > Consider this the last ditch effort ;) OK, here is my last ditch response :-) > > I think it makes more sense for the source file to be designated > with file="" > attribute because that follows convention of rest of ant tasks. Any > objections to that? Well, it is only really true of the and tasks. There are other tasks where this is not true. It is not true of the recent changes you made to Zip.java and its decendants, nor is it true for a task such as . So I don't really agree that this is a convention. It will also be very difficult to institute this convention in a backward compatible way since it reverses the meaning of existing attributes. > I would actually like to see this convention moved towards all > tasks in ant2 > .. for tasks like javac that have source files and destination files. So > instead of srcdir/destdir or whatever task-specific conventions > used we would > have dir (for srcdir) and todir (for destdir). I like conventions but I think we need to be careful about over abstraction. I like to think of the java task dealing with source. IOW, I think of compiling the source - not compiling a directory - if you know what I mean. I'm not convinced there is a benefit is making all tasks fit this "interface" > So what do you think ? Have I convinced you or do I have to go revert the > changes ? ;) > Well, you haven't convinced me, but in the end that isn't a huge deal. What I think we should do, before making further changes, is to have a discussion about the conventions we want to put in place and to where they should be applied. We might also consider the correlation between attributes and elements. For example, if you rename the srcdir attribute to "dir", what becomes of the element - the relationship becomes more obscure. Then we should consider the backward compatability implications of this convention. We can't really make the file attribute of go from meaning destination to source easily. Finally, we should be consistent since the changes you made to Zip.java already violate the convention. Conor