Is this all an issue with doing delta compiles? If so, just let javac sort all that out...

Ravi Roy wrote:
Thanks Scot for quick answer,

I am trying to compute the classpath for sources to compile, and that folder
has many sub-folders containing .class and JAR files too, but I have tried
to use the same you have mentioned below, but JAR is not resolved.
But if I use <pathelement location="path to jar\abc.jar /> then it does not
give any problems and code is compiled.

Reason to specify "**/*" is to include .class and .jar files both.

Am I doing something wrong ?
Regards
Ravi.

-----Original Message-----
From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 10:13 PM
To: Ant Users List
Subject: Re: Resloving directory based JARs to any lengh using <dirset>

I assume you are attempting to compute a classpath based on the name of the attribute???

Any reason you aren't using a fileset?

I think below you are wanting to include all directories? Don't you want to include all jars? Like:

<path id="myproject.classpath">

   <fileset dir="c:\myproject">

        <include name="**/*.jar" />

   </dirset>

<path>



Ravi Roy wrote:
Hi All,

Is it possible to refer to all the jars in a directory structure of any
length ?

I use the following, but a jar located under
myproject\dir1\dir2\dir3\abc.jar is not resolved.

<path id="myproject.classpath">

   <dirset dir="c:\myproject">

        <include name="**/*" />

   </dirset>

<path>

I can refer individual jar using <pathelement
location="c:\myproject\dir1\dir2\dir3\abc.jar" />, but is it possible
somehow to use the above mentioned <direst> structure with some
modifications - which I am not aware of ?

Thanks for the pointers in adavance.

Ravi.




--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-392-6730 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim

Reply via email to