> From: Phil Weighill Smith [mailto:[EMAIL PROTECTED] 
> 
> On Fri, 2005-05-13 at 11:38 +0100, Jose Alberto Fernandez wrote:
> > I would advocate to allow the importer the specify the 
> aliasing name 
> > it wants to use for the imported things, so one has something like:
> > 
> > foo.xml
> > <project name="foo1">
> >   <target name="compile">...</target>
> > </project>
> > 
> > bar.xml
> > <project name="bar1">
> >   <import file="foo.xml" as="imp1"/>
> >   <target name="barcompile" depends="imp1.compile">...</target>
> > </project>
> 
> +1 to the 'as="<name>"'.
> 
> Would we still be able to reference "imp1.compile" as just 
> "compile" if the target has not been overridden in the 
> importing build script: I think this is very important to maintain.

Yes, you would have a "compile" target which is the realization of the
inheritance:

 <target name="compile" depends="imp1.compile"/>

Or something like that, the question is what you get if there are
ambiguities due to multiple imports (you may get just the first one, or
an error)
unless you override and specify what you want them to do.

Jose Alberto

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

Reply via email to