Hi,

You should specify "includes" value relatively to the "dir" attribute of the <fileset>, i.e.:

    <path id="lib.path">
        <fileset dir="${PROJECT_DIR}/ant" includes="*.jar"/>
    </path>

Or also:

    <path id="lib.path">
        <fileset dir="${PROJECT_DIR}" includes="ant/*.jar"/>
    </path>

BR,
Olivier

*Olivier Gies*

*Delivery Manager
Customs & Tax Software Engineering Center
Bull, Architect of an Open World ^TM
Phone: +86 (10) 65978001 - Ext 555 *

*www.bull.com <http://www.bull.com/>*

*This e-mail contains material that is confidential for the sole use of
the intended recipient. Any review, reliance or distribution by others
or forwarding without express permission is strictly prohibited. If you
are not the intended recipient, please contact the sender and delete all
copies.*



-------- Original Message  --------
Subject: Not reading from jar when unzipped it works...
From: Aravind_RP <[EMAIL PROTECTED]>
To: user@ant.apache.org
Date: 09/07/2008 15:03

hi
Am using a 3rd party jar in my ant script for xml manipulation.the jar file
i placed in a folder in my workspace.
it is working if i unzip my jar and keep it but it is not working if i keep
the jar as such. my code is as below
<path id="lib.path">
                      <fileset dir="${PROJECT_DIR}/ant"
includes="${PROJECT_DIR}/ant/*.jar"/>
                 </path>
<typedef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"
classpathref="lib.path" />

it says the class com.oopsconsultancy.xmltask.ant.XmlTask is not found.
please help urgent

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to