ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: <import optional="true"> and inherited targets
Date Tue, 13 Apr 2004 18:02:29 GMT
--- Dominique Devienne <DDevienne@lgc.com> wrote:
> > From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> > If I have a file base.xml which defines, briefly:
> > 
> > <project name="base">
> >   <target name="build" depends="..." />
> > </project>
> > 
> > Then my build.xml imports it:
> > 
> >   <import file="./base.xml" optional="true" />
> > 
> > and overrides build to do some extra stuff:
> > 
> >   <target name="build" depends="base.build">
> >     ...
> >   </target>
> > 
> > How can I keep from failing the build when the
> > base.build target is not found?
> 
> You can't.
> 
Oh, but apparently I can!  It is a hack, but my
preliminary testing suggests that the solution, be it
bug or feature (it's a feature now, by god), is
simple:

just have
<target name="base.build" />

in the importING buildfile...

>:)

-Matt


	
		
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message