Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 29938 invoked from network); 30 Dec 2004 21:31:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Dec 2004 21:31:17 -0000 Received: (qmail 12317 invoked by uid 500); 30 Dec 2004 21:31:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12024 invoked by uid 500); 30 Dec 2004 21:31:07 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 12009 invoked by uid 99); 30 Dec 2004 21:31:07 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from inspood02.gs.com (HELO inspood02.gs.com) (207.17.37.107) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 30 Dec 2004 13:31:03 -0800 Received: from insvs8501.inz.gs.com (unknown [204.4.188.78]) by inspood02.gs.com (Postfix) with ESMTP id 6546124054 for ; Thu, 30 Dec 2004 16:31:01 -0500 (EST) Received: from gsnmp04es.ny.fw.gs.com (gsnmp04es.ny.fw.gs.com [148.86.105.80]) by insvs8501.inz.gs.com with ESMTP for user@ant.apache.org; Thu, 30 Dec 2004 16:31:01 -0500 Received: by gsnmp04es.ny.fw.gs.com with Internet Mail Service (5.5.2657.72) id ; Thu, 30 Dec 2004 16:31:01 -0500 Message-Id: <150962AA26FAE44B8894431F3357797E33A66845@gsnmp04es.ny.fw.gs.com> From: "McIntosh, Stephen" To: "'user@ant.apache.org'" Subject: Compiling against a shared code area Date: Thu, 30 Dec 2004 16:31:00 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4EEB6.DB91C618" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4EEB6.DB91C618 Content-Type: text/plain Hello. I'm not quite a newbie user of Ant, but I'm not an expert either. I'm hoping there's a solution to my problem: I would like to have Ant compile a set of java files against two separate source directories, one "local" and one "shared". This can easily be done like this: except that this solution assumes that the local and shared directories do not have any overlapping files. In my situation, there necessarily will be a lot of overlapping files. The above method leads to a "duplicate class" error. Is there a way for me to make Ant take source files from the shared area unless they exist in the local area, and then take them from the local area instead? Thanks, Steve ------_=_NextPart_001_01C4EEB6.DB91C618--