Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 4698 invoked from network); 29 May 2009 16:33:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 May 2009 16:33:54 -0000 Received: (qmail 23884 invoked by uid 500); 29 May 2009 16:34:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 23796 invoked by uid 500); 29 May 2009 16:34:06 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 23786 invoked by uid 99); 29 May 2009 16:34:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 16:34:05 +0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 16:33:56 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MA51T-0005XT-QA for user@ant.apache.org; Fri, 29 May 2009 09:33:35 -0700 Message-ID: <23783130.post@talk.nabble.com> Date: Fri, 29 May 2009 09:33:35 -0700 (PDT) From: a1slowhand To: user@ant.apache.org Subject: Re: Newbie question concerning ant javac In-Reply-To: <1d0338290905290848p232b50a9l46b175d4a80b0a08@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ron_dump@yahoo.com References: <23782206.post@talk.nabble.com> <1d0338290905290848p232b50a9l46b175d4a80b0a08@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks Chuck for the direction. Fileset was one area that I have looked at, it seemed like a logicial starting point. I didnt have much luck with it, but I will revisit the manual and try some more tests. Thaks again. Ron Chuck Burgess-2 wrote: > > On Fri, May 29, 2009 at 10:35 AM, a1slowhand wrote: > >> >> My company is just now moving to Ant and I have been given the task of >> moving >> it. I have been able to compile our main source directory, so I know I >> have >> Ant installed and working propertly. We have our based code, and then >> custom >> code underneath that narrows the based code. My problem is how to select >> "certain" source files for the compile. >> >> |TopSrc source dir <-- based code >> | main.java >> | a.java >> | b.java >> |--|CustomerXX <-- narrowed code >> |-- b.java >> |--|CustomerYY <-- another customer code narrowed >> |-- a.java >> |-- b.java >> >> What I would like to do is after making the changes to CustomerXX\b.java >> compile grabbing TopSrc\main.java & TopSrc\a.java & >> TopSrc\CustomerXX\b.java, and ensuring that TopSrc\b.java is NOT selected >> to >> advoid a duplicate class error from the compile. Similar process would >> happen when changing CustomerYY's code. I only need to compile the >> Customer >> that changed. The closest that I have come is to compile source >> directory >> and all sub-directories. Which Javac complains of duplicate classes when >> it >> compiles one of the sub-directories java apps with the same name as one >> in >> the root source directory. >> > > > My first thought here might be to try using a *fileset* to recognize all > the > files in the chosen customer directory as the first step. Once I have > those > filenames in hand, I can then use another *fileset* to pick up files in > the > top-level dir and exclude filenames that are already found in the customer > dir fileset. I don't know if this is a valid interpretation of > *fileset*usage, but this is the approach that comes to mind to > research first. > > If using the filesets to attempt compiling directly from the source > directories doesn't prove feasible, perhaps an intermediate step of > copying > only the source files you want (identified by the filesets) to an > intermediate source directory, and do your compilation against that file > location. This approach might mean all the intermediate files look like > "changed" files due to being copied, but there are ways to tell the COPY > task to only copy over files that have changed. > > Again, this is all me thinking out loud, and not something I've had to > attempt myself. > -- > CRB > > -- View this message in context: http://www.nabble.com/Newbie-question-concerning-ant-javac-tp23782206p23783130.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org