ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Araya <carlos.ar...@gmail.com>
Subject Newbie questions
Date Thu, 12 Apr 2012 21:58:46 GMT
I have two questions:

1. Is there a way I can force ant to honor the latest version of the build
file? Is it cached somewhere?

When trying to copy a resource to a directory before ziping it I can't get
it to copy or it appears to copy to multiple locations. This may be due to
changes I've made to the build file and also to the documents I'm working
with.

2. Why can I call some JAR files using a filesystem address but not others?

I have several Jar files in a central repositiory. I can call some using
the absolute path to them as part of an Ant task. For example:

<property name="saxon_bin" value="/usr/local/java/saxon.jar"/>

<target name="docbook-single" depends="init">
    <description>
        Convert to a single HTML 4 using version 2.0 of stylesheet
        we do this to make sure that the file validates
    </description>
    <echo>Generating HTML Single File using Saxon and XSLT2.0</echo>
    <java jar="${saxon_bin}" fork="true" failonerror="true"
maxmemory="128m">
        <arg value="-s:${src_file}.xml"/>
        <arg
value="-xsl:/usr/local/docbook/2.0/release/2.0.3/xslt/base/html/docbook.xsl"/>
        <arg value="-o:${src_file}-2.html"/>
    </java>
</target>

works without a problem but

<property name="fop_bin" value="/usr/local/java/fop/build/fop.jar"/>
<target name="pdf-fop" depends="docbook-fo">
    <echo>Using fop at ${fop_bin}</echo>
    <java jar="${fop_bin}" fork="true" failonerror="true" maxmemory="128m">
        <arg line="${src_file}.fo ${src_file}.pdf"/>
    </java>
</target>

Complains that there's no fop.jar on the directory I'm working on or above.

Thanks for your help... I can provide the complete build file if needed

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message