problem with jars in the lib directory [message #252118] |
Wed, 19 March 2008 13:00  |
Eclipse User |
|
|
|
Originally posted by: fluca1978.infinito.it
Hi all,
I've got a strange problem with a project of mine: I've got several jars in
the project lib directory:
ls -l lib/
total 3399
-rw-r--r-- 1 luca luca 523151 2008-02-04 18:11 aglets-2.0.2.jar
-rw-r--r-- 1 luca luca 114980 2008-02-04 18:12 aspectjrt.jar
-rw-r--r-- 1 luca luca 1894165 2008-02-04 18:12 aspectjweaver.jar
-rw-r--r-- 1 luca luca 544021 2008-03-19 17:22 javassist.jar
-rw-r--r-- 1 luca luca 391834 2008-03-19 17:22 log4j-1.2.15.jar
and such jars are even referenced in the build path of the project, so I
guess eclipse knows they are there. However, the lib directory shown in the
project explorer is empty and, as a consequence, when I run an ant file I
cannot get the jars in there. Another project with the same layout works
fine. What could I search for?
Thanks,
Luca
|
|
|
Re: problem with jars in the lib directory [message #252133 is a reply to message #252118] |
Wed, 19 March 2008 13:33  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Hi,
That's the way it works. When a jar from a project is in the build path
of the project the Project and Package Explorer doesn't show the jar
under the lib directory. If you go to the Navigator instead you will see
them there. They are actually physically there as resources, it's just
that the Project Explorer hides them.
However, the ANT shouldn't have that problem because it doesn't know
anything about JDT build paths and such. It just looks at files under a
directory, and if they are physically in the directory ANT should find them.
Luca Ferrari wrote:
> Hi all,
> I've got a strange problem with a project of mine: I've got several jars in
> the project lib directory:
>
> ls -l lib/
> total 3399
> -rw-r--r-- 1 luca luca 523151 2008-02-04 18:11 aglets-2.0.2.jar
> -rw-r--r-- 1 luca luca 114980 2008-02-04 18:12 aspectjrt.jar
> -rw-r--r-- 1 luca luca 1894165 2008-02-04 18:12 aspectjweaver.jar
> -rw-r--r-- 1 luca luca 544021 2008-03-19 17:22 javassist.jar
> -rw-r--r-- 1 luca luca 391834 2008-03-19 17:22 log4j-1.2.15.jar
>
>
> and such jars are even referenced in the build path of the project, so I
> guess eclipse knows they are there. However, the lib directory shown in the
> project explorer is empty and, as a consequence, when I run an ant file I
> cannot get the jars in there. Another project with the same layout works
> fine. What could I search for?
>
> Thanks,
> Luca
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03014 seconds