ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: including build files the xml way?
Date Mon, 09 Oct 2000 15:59:18 GMT
Could you give a small example of what the included files look like? --
are they just your average normal-type ant build-files?

Thanks,
Diane
--- Kurt Mahan <kmahan@xmission.com> wrote:
> Hi --
> 
> Here is a simple way to do it without using DTDs:
> 
> <?xml version="1.0"?>
> 
> <!--
> ======================================================================
> -->
> <!-- DOCTYPE - declare entities for including files                     
>    -->
> <!--
> ======================================================================
> -->
> 
> <!DOCTYPE project [
>     <!ENTITY Defs SYSTEM "file:./defs.xml">
>     <!ENTITY Rules SYSTEM "file:./rules.xml">
> ]>
> 
> <!--
> ======================================================================
> -->
> <!-- Ant Boiler Plate                                                   
>    -->
> <!--
> ======================================================================
> -->
> 
> <project name="Boiler" default="test" basedir=".">
> 
> <!--
> ======================================================================
> -->
> <!-- include global defs                                                
>    -->
> <!--
> ======================================================================
> -->
> 
> &Defs;
> 
> <!--
> ======================================================================
> -->
> <!-- "main" target                                                      
>    -->
> <!--
> ======================================================================
> -->
> 
> <target name="main">
> 
>     <echo message="Main Target" />
> 
> </target>
> 
> <!--
> ======================================================================
> -->
> <!-- "compile" Compile the main source code                             
>    -->
> <!--
> ======================================================================
> -->
> 
> <target name="compile">
> </target>
> 
> <!--
> ======================================================================
> -->
> <!-- include the common rules                                           
>    -->
> <!--
> ======================================================================
> -->
> 
> &Rules;
> 
> 
> </project>
> 
> 
> 
> > 
> > Hi,
> > 
> > Is there a way to include build files in another build file the way
> you
> > would include xml files according to the xml standard (the one the ant
> > parser uses)? I would very much like this because including other
> build
> > files using the ant task requires me to make a ant task for every task
> I
> > want to run from the included build file.
> > 
> > Jeroen
> > 
> > 
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

Mime
View raw message