ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim <>
Subject available with classpath
Date Tue, 11 Nov 2008 14:56:39 GMT

I am a newbie trying to figure out how the available task can find a class.
The class org.jfree.fonts.LibFontInfo is in the libfonts.jar file
If I put other pathelement locations into the pathelement, along with the
libfonts.jar file then it finds the class. If I only put libfonts.jar or
only the other pathelemenet location then it does not find the class.

I have tried reading the ant documentation, but I only found the syntax and
not an explanation of how it works. Can someone explain to me how this works
or point me to some documentation that is more descriptive. 

<?xml version="1.0" encoding="UTF-8"?>
<project default="all" basedir="." name="liblayout" >
        <property name="newfonts" value="libfonts.jar"></property>
        <property name="testclass" value="org.jfree.fonts.LibFontInfo" />
        <available classname="${testclass}"
                        <pathelement location="${newfonts}" />
        <echo message="NEWFILECLASS=${}" />

Thank you
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message