If you use a branch, then the build file would only need one src directory 
defined and the configuration of your workspace would determine what version of 
the source file gets built.

-Rob A

> -----Original Message-----
> From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 30, 2004 1:54 PM
> To: Ant Users List
> Subject: RE: Compiling against a shared code area
> 
> 
> It sounds like you should be using a branch in version 
> control, rather than locating different versions of source 
> files in different directories.
> 
> -Rob Anderson
> 
> > -----Original Message-----
> > From: McIntosh, Stephen [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 30, 2004 1:31 PM
> > To: 'user@ant.apache.org'
> > Subject: Compiling against a shared code area
> > 
> > 
> > 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
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to