Xinclude task

Xinclude task

Description

Task to process xinclude.

XInclude task parameters

Attribute Description Value Required
file The input file yes
tofile The output file yes
comments Keep or remove comments(<!– … –>) true|false* no, remove comments by default

Examples

<project name="xinclude task"> 

  <taskdef name="include" 
       classname="net.sourceforge.ant4x.taskdefs.xml.XIncludeTask" 
       classpath="PATH/TO/ant4x.jar"/> 

  <target name="xinclude"> 
        <include file="..." tofile="..." />
  </target> 

</project>