From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JECsK-0006eX-8A for garchives@archives.gentoo.org; Mon, 14 Jan 2008 00:08:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1531E0E65; Mon, 14 Jan 2008 00:08:22 +0000 (UTC) Received: from narf.girlongirl.de (narf.girlongirl.de [88.198.52.138]) by pigeon.gentoo.org (Postfix) with ESMTP id BA76FE0E65 for ; Mon, 14 Jan 2008 00:08:22 +0000 (UTC) Received: from narf.girlongirl.de (localhost [127.0.0.1]) by narf.girlongirl.de (Postfix) with ESMTP id 180AE3FCC; Mon, 14 Jan 2008 01:08:21 +0100 (CET) Received: from [10.149.69.115] (host179.natpool.mwn.de [138.246.7.179]) by narf.girlongirl.de (Postfix) with ESMTP id C6E863F80; Mon, 14 Jan 2008 01:08:20 +0100 (CET) Message-ID: <478AA7F4.6070809@lists.obeliks.de> Date: Mon, 14 Jan 2008 01:08:20 +0100 From: Bernhard Frauendienst User-Agent: Thunderbird 2.0.0.9 (X11/20071116) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org MIME-Version: 1.0 To: =?UTF-8?B?UGFzY2FsIEZsw7ZzY2hlbA==?= CC: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] Java packages in eclipse build path References: <478AA252.5040402@gmx.de> In-Reply-To: <478AA252.5040402@gmx.de> Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9014262e-e3bd-4c86-b692-0da98b921b90 X-Archives-Hash: 392d51d91b00d1dd1e4ea1569fdfc240 I personally use something like the following (in my lib dir): #!/bin/bash PACKAGES=3Dcommons-logging,log4j echo -n $(java-config -dp ${PACKAGES}) | xargs -rd: ln -st . This creates symlinks for all needed jars (and the jars they depend on, remove java-config's -d parameter if you don't want that) in the current directory, which you can simply add to the build path in Eclipse. If someone has a better solution, I'm more than happy to hear it. Perhaps someone could write a gentoo plugin for Eclipse? ;) Bernhard PS: the echo -n is needed because java-config terminates its output with a newline, which would mess up the symlink to the last listed jar (because xargs takes \n as a normal character when -d is set to something different). I couldn't find a more elegant solution so far. Pascal Fl=C3=B6schel schrieb: > Hi >=20 > Is there a fast and simple way of using the package.env (e.g. > /usr/share/axis-1/package.env ) to add libraries into the eclipse build > path? Manually reading the package.env and adding every jar by hand > takes quite some time. >=20 > Thanks+Bye > Pascal --=20 gentoo-java@lists.gentoo.org mailing list