ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krats <>
Subject Ant picks class files from current directory rather than provided jar in classpath
Date Fri, 19 Feb 2010 18:58:03 GMT

I have the following folder structure

      |  |__

I built a jar out of and placed it in lib\f1.jar. Now my javac task
for f2 is as below 

<target name="f2">
  <javac debug="true" source="${source}" target="${target}"
    <src path="src"/>
	  <pathelement path="lib/f1.jar"/>

When I run the task I would expect it to use f1.jar instead of recompiling
f1 but instead I see that it creates f1.class file at src\f1 which implies
it is recompiling (I deleted f1.class when I created f1.jar )


View this message in context:
Sent from the Ant - Dev mailing list archive at

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

View raw message