Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 67387 invoked from network); 26 Jun 2000 00:49:36 -0000 Received: from smtp.thespot.com.au (203.63.78.43) by locus.apache.org with SMTP; 26 Jun 2000 00:49:36 -0000 Received: from monkey.prod.thespot.com.au (monkey.prod.thespot.com.au [172.16.33.10]) by smtp.thespot.com.au (8.9.3/8.9.3) with ESMTP id KAA09874 for ; Mon, 26 Jun 2000 10:48:19 +1000 (EST) Received: (from daemon@localhost) by monkey.prod.thespot.com.au (8.10.0/8.10.0) id e5Q0nWg15934 for ; Mon, 26 Jun 2000 10:49:32 +1000 (EST) Received: from UNKNOWN(192.168.1.32), claiming to be "snotty" via SMTP by monkey, id smtpdAAAkEaOfF; Mon Jun 26 10:49:29 2000 From: "Conor MacNeill" To: Subject: RE: cvs commit:jakarta-ant/src/main/org/apache/tools/ant/taskdefsJavac.java Date: Mon, 26 Jun 2000 10:49:59 +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.2910.0) In-Reply-To: <395654B5.71EEA210@pacbell.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N James, > hey conor - > > i'm curious as to if this resolves or worsens a problem i've > had with ant, that being that if i do a "build of a sub-branch" > of a package tree any/all resource files (eg xml, properties) > get reparented under the root package name. > All this patch does is to give a warning that copying of support files is deprecated and fix up some strange indenting. > but, when i do a "branch build" using a tag as follows: > > OK, the issue here is that javac (the compiler) relies on the package statement in your java source code to determine where to place the generated classes in the destination build area. javac (the task) uses the relative directory position to determine the location of support files. When you point srcdir into the middle of your source tree, the effect is to reparent the support files higher up in the destination hierarchy. I think it is best if your srcdir attribute always points to the root of your package hierarchy. To achieve your branch build, you should use appropriate constructs in your javac task You may need to get an up to date version of ant for this capability - not sure. Conor