You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jeffrey E Care <ca...@us.ibm.com> on 2005/01/02 20:56:19 UTC
Re: Compiling against a shared code area
To the best of my knowledge Ant does not support VPATHs.
--
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis
"McIntosh, Stephen" <St...@gs.com> wrote on 12/30/2004 04:31:00
PM:
> 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:
>
> <javac srcdir = "${local}:${shared}"
> destdir="${dest}">
> </javac>
>
> 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