Gentoo Archives: gentoo-dev

From: Jacob Perkins <jap1@××××××××××.ws>
To: gentoo-dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] Re: CLASSPATH addition in ebuild
Date: Thu, 22 Aug 2002 09:57:17
Message-Id: 1030028225.19417.2.camel@rig.dyndns.ws
In Reply to: Re: [gentoo-dev] Re: CLASSPATH addition in ebuild by Dominik Westner
1 Thanks, I think this is a much better way to do it.
2
3 On Thu, 2002-08-22 at 02:38, Dominik Westner wrote:
4 > Hi Jacob,
5 >
6 > I think you have to put your classpath in:
7 >
8 > /usr/share/<package name>/package.env
9 >
10 > e.g. here is an example for ant:
11 >
12 > brain root # less /usr/share/ant/package.env
13 > DESCRIPTION=""
14 > CLASSPATH=/usr/share/ant/lib/*.jar:/usr/share/ant/lib/xercesImpl.jar:/
15 > usr/share/
16 > ant/lib/xml-apis.jar
17 >
18 > then a user is able to configure their system and user classpath to
19 > their liking whith java-config.
20 >
21 > e.g. show what is installed:
22 > java-config --list-available-packages
23 >
24 > java-config --set-system-classpath=package1,package2,...
25 > and
26 > java-config --set-user-classpath=package1,package2,...
27 >
28 > This is a great concept and worked very well for me.
29 >
30 > Hope this helps
31 >
32 > Dominik
33 >
34 > On Donnerstag, August 22, 2002, at 04:00 AM, Jacob Perkins wrote:
35 >
36 > > It's not an app, though, it's just a set of extension libraries for
37 > > java. Let's say you're using forte for java to code, or any other
38 > > editor
39 > > for that matter, you can't access these libraries unless they're in the
40 > > CLASSPATH.
41 > >
42 > > On Wed, 2002-08-21 at 19:49, Paul wrote:
43 > >> Jacob Perkins <jap1@××××××××××.ws>, on Wed Aug 21, 2002 [06:46:39 PM]
44 > >> said:
45 > >>> I'd like to make an ebuild for the java-mail api. It requires
46 > >>> additions
47 > >>> to CLASSPATH. How would I add a file to env.d that would have
48 > >>> 'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
49 > >>> Thanks
50 > >>>
51 > >>
52 > >> Hi;
53 > >>
54 > >> Maybe you should just put a bit of bash script in
55 > >> /usr/bin that wraps this java thing, and sets whatever env
56 > >> variables it needs.?
57 > >>
58 > >> Paul
59 > >> set@×××××.com
60 > >> _______________________________________________
61 > >> gentoo-dev mailing list
62 > >> gentoo-dev@g.o
63 > >> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
64 > > --
65 > > pub 1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
66 > > <jap1@××××××××××.ws>
67 > > Key fingerprint = 1E02 A5FD 8162 4322 C674 6E67 05EB 30F1 57DD D9E3
68 > > <signature.asc>
69 >
70 --
71 pub 1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
72 <jap1@××××××××××.ws>
73 Key fingerprint = 1E02 A5FD 8162 4322 C674 6E67 05EB 30F1 57DD D9E3

Attachments

File name MIME type
signature.asc application/pgp-signature