ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <>
Subject RE: classpath directory?
Date Wed, 05 Jan 2005 16:15:50 GMT
The following path seems to work for me to find all the class files,
dependent jar, and zip files for a compile step:
  <path id="classpath.compile">
   <fileset dir="./${build.pkg}">
    <include name="**/*.class"/>
   <fileset dir="./${src.lib}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
   <pathelement location="."/>

I use it like this:
  <javac destdir="${build.classes}" srcdir="${src.dir}" debug="true"
deprecation="true" source="1.4" sourcepath="">
   <include name="${src.detokenizer}/**/*.java" />
   <classpath refid="classpath.compile"/>


Bill Rich
Wilandra Consulting LLC
1325 Addiewell Place
San Jose, CA  95120-3905
phone:      +1 408 268-2452
mobile:     +1 408 410-9713
Santa Cruz: +1 831 464-9007
fax:        +1 413 669-9716

-----Original Message-----
From: Woodchuck [] 
Sent: Wednesday, January 05, 2005 7:52 AM
To: ant
Subject: classpath directory?


i keep getting "package does not exist" errors when trying to
compile using <javac>.

is this a <classpath> related problem?

what is happening is that i'm trying to compile a subset of java source
files (all stored within a directory).  these sources require importing of
other classes that i don't have the source files for, and which are not in a
convenient .jar file... i do however have the .class files of these stored
in another directory.

i have tried telling <javac> to look in this directory by using <classpath>
and the various nested tags like <pathelement>, <dirset>, and <fileset>.
but nothing i have tried makes any difference.

does anyone have any ideas what i may be doing wrong?

please and thanks in advance!


Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 

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

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

View raw message