1 |
On Jan 13, 2008 6:44 PM, Pascal Flöschel <pascal.floeschel@×××.de> wrote: |
2 |
> Is there a fast and simple way of using the package.env (e.g. |
3 |
> /usr/share/axis-1/package.env ) to add libraries into the eclipse build |
4 |
> path? Manually reading the package.env and adding every jar by hand |
5 |
> takes quite some time. |
6 |
|
7 |
I do stuff like this quite a bit, java-config is simple but great tool |
8 |
to learn. You can add the output of the following scriptlet to your |
9 |
.classpath file inside your project. |
10 |
|
11 |
I use something like this for many purposes, |
12 |
|
13 |
#!/bin/bash |
14 |
|
15 |
for pkg in $(java-config --list-available-packages | sort | perl -pi |
16 |
-e 's/^\[(.*?)].*/$1/g') |
17 |
do |
18 |
echo -n "<classpathentry kind=\"lib\" path=\"/usr/share/$pkg/lib/$pkg.jar\"" |
19 |
echo " sourcepath=\"/usr/share/$pkg/sources/$pkg-src.zip\"/>" |
20 |
done |
21 |
|
22 |
-jesse |
23 |
-- |
24 |
gentoo-java@l.g.o mailing list |