RE: [xep-support] Ant task

From: Gooch, Phil <phil.gooch@tso.co.uk>
Date: Wed Oct 22 2008 - 06:26:56 PDT

Haven't used Ant with XEP for a little while, but there should be an
XEPTask.jar file in XEP's lib folder.

You need to create a build.xml script to use with ant, e.g. this script
uses ant to batch process a bunch of .fo files to PDF. You could write a
similar script to output .xep XML files and chain the tasks, for example
to run some Schematron tests on the .xep output.

<project name=" xep_pdf_batch " default="init" basedir=".">

<property name="xep_dir" value="C:\XEP" />
<property name="src_dir" value="C:\Temp\fo" />
<property name="xep_tests_pdf_dir" value="${src_dir}\xep_output\pdf" />
        
<path id="xep_classpath">
        <fileset dir="${xep_dir}\lib">
                <include name="xep*.jar"/>
                <include name="xt.jar"/>
                <include name="saxon.jar"/>
        </fileset>
        <pathelement path="${xep_dir}\lib\XEPTask.jar"/>
</path>

<taskdef name="xep" classname="com.renderx.xepx.ant.XEPTask"
classpath="${xep_dir}\lib\XEPTask.jar" />

<target name="init" >
                <mkdir dir="${xep_tests_pdf_dir}" />
</target>

<target name="xep_pdf_batch" depends="init">
                <xep destDir="${xep_tests_pdf_dir}" format="PDF">
                        <classpath refid="xep_classpath"/>
                        <sysproperty key="com.renderx.xep.CONFIG"
value="${xep_dir}/xep.xml"/>
                        <fileset dir="${src_dir}">
                                <include name="*.fo" />
                        </fileset>
                </xep>
</target>

</project>

Phil

-----Original Message-----
From: owner-xep-support@renderx.com
[mailto:owner-xep-support@renderx.com] On Behalf Of Dave Pawson
Sent: 22 October 2008 13:35
To: xep-support@renderx.com
Subject: [xep-support] Ant task

http://www.renderx.com/intro.html

says

As an Ant task

    Ant is a java based building tool. XEP distribution includes a Task
for Ant.

I can't find an ant XML build script in the distribution?
Where is it please - is it a separate file?

TIA

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/terms-of-service.html
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
***********************************************************************************************
This email, including any attachment, is confidential and may be legally privileged.  If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.  
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards.
***********************************************************************************************
The Stationery Office Limited is registered in England No. 3049649 at Clifton House, Worship Street, London, EC2A 2EJ.
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Oct 22 06:56:43 2008

This archive was generated by hypermail 2.1.8 : Wed Oct 22 2008 - 06:56:44 PDT