ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Schutte" <mar...@schutte.com>
Subject RE: including build files the xml way?
Date Mon, 09 Oct 2000 16:11:51 GMT
> Could you give a small example of what the included files look like? --
> are they just your average normal-type ant build-files?

Yes, it's literally the code that would have gone there otherwise.

> > Here is a simple way to do it without using DTDs:

I should have mentioned this one too, but in my case I want to put as little
as possible in the build.xml and then the use of a .dtd which contains all
ENTITY definitions is easier.

Regards,
Marcel Schutte

> >
> > <?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>


Mime
View raw message