back to top   Purpose

 

Extend Ant to support XML inclusions formulated according to the XInclude standard.

back to top   Installation

 

  1. Download the JAR archive
  2. Download Elliotte's XInclude implementation
  3. Add the following JAR archives to Ant's classpath:
  4. Add to following line to your Ant buildfile to create the include task
    <taskdef name="include" classname="de.jeckle.AntExtension.XIncludeTask"/>
  5. Installation finished!
    Now you can define your own include tasks.

back to top   Usage

 

  1. Define a new Ant task (e.g. named include).
  2. Use the new task whereas the file attributes names the input file containing XInclude elements according to the specification.
    The file produced is identified by the tofile attribute.
Attribute
Description
Required
file
XML input file containing XInclude elements
Yes
tofile
XML output file
Yes

back to top   Example

 

<project
    name="myProject"
    default="all"
    basedir=".">
    <taskdef name="include" classname="de.jeckle.AntExtension.XIncludeTask"/>
    ...
    <target name="myTarget1">
        ...
        <include
            file="sourceContainingXIncludeStatements"
            tofile="resultFile"/>
        ...
    </target>
    ...
</project>

Download this example code

back to top   License

 

The implementation is released unter the Lesser GNU Public License.
The used XInclude implementation contains two JAR files from the Apache XML Project (i.e. xercesImpl-2.0.2.jar and xmlParserAPIs-2.0.2.jar), and one JAR file from the JDOM Project (jdom-1.0b9rc.jar).

back to top   Tested Versions

 

back to top   Related Stuff

 

back to top   Download

 




separator line
Service provided by Mario Jeckle
Generated: 2004-06-11T07:12:31+01:00
Feedback Feedback       SiteMap SiteMap
This page's original location This page's original location: http://www.jeckle.de/freeStuff/xia/index.html
RDF metadata describing this page RDF description for this page