Gentoo Archives: gentoo-dev

From: Paul <set@×××××.com>
To: Jacob Perkins <jap1@××××××××××.ws>
Cc: gentoo-dev <gentoo-dev@g.o>
Subject: [gentoo-dev] Re: CLASSPATH addition in ebuild
Date: Wed, 21 Aug 2002 21:22:23
Message-Id: 20020822022217.GI5078@squish.home.loc
In Reply to: Re: [gentoo-dev] Re: CLASSPATH addition in ebuild by Jacob Perkins
1 Jacob Perkins <jap1@××××××××××.ws>, on Wed Aug 21, 2002 [09:00:33 PM] said:
2 > It's not an app, though, it's just a set of extension libraries for
3 > java. Let's say you're using forte for java to code, or any other editor
4 > for that matter, you can't access these libraries unless they're in the
5 > CLASSPATH.
6 >
7 > On Wed, 2002-08-21 at 19:49, Paul wrote:
8 > > Jacob Perkins <jap1@××××××××××.ws>, on Wed Aug 21, 2002 [06:46:39 PM] said:
9 > > > I'd like to make an ebuild for the java-mail api. It requires additions
10 > > > to CLASSPATH. How would I add a file to env.d that would have
11 > > > 'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
12 > > > Thanks
13 > > >
14 > >
15 > > Hi;
16 > >
17 > > Maybe you should just put a bit of bash script in
18 > > /usr/bin that wraps this java thing, and sets whatever env
19 > > variables it needs.?
20 > >
21 > > Paul
22 > > set@×××××.com
23
24 Hi;
25
26 Ah, I didnt read that close enough.
27 In that case, just put a file in /etc/env.d, such as
28 66java-mail
29
30 consisting of:
31
32 CLASSPATH="/path/to/java/mail.jar"
33
34 env-update seems to be smart enough to graft it together with
35 other classpaths and puts the result in /etc/profile.env, which
36 is sourced by /etc/profile.
37 I dont know if there is any convention on what sort
38 of number you should choose-- I believe it determines order
39 of processing.
40
41 Paul
42 set@×××××.com