public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bernhard Frauendienst <gentoo.java@lists.obeliks.de>
To: "Pascal Flöschel" <pascal.floeschel@gmx.de>
Cc: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] Java packages in eclipse build path
Date: Mon, 14 Jan 2008 01:08:20 +0100	[thread overview]
Message-ID: <478AA7F4.6070809@lists.obeliks.de> (raw)
In-Reply-To: <478AA252.5040402@gmx.de>

I personally use something like the following (in my lib dir):

#!/bin/bash
PACKAGES=commons-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öschel schrieb:
> Hi
> 
> 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.
> 
> Thanks+Bye
> Pascal
-- 
gentoo-java@lists.gentoo.org mailing list



  parent reply	other threads:[~2008-01-14  0:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-13 23:44 [gentoo-java] Java packages in eclipse build path Pascal Flöschel
2008-01-13 23:59 ` jieryn
2008-01-14  1:28   ` Pascal Flöschel
2008-01-14  2:56     ` Bernhard Frauendienst
2008-01-14  0:08 ` Bernhard Frauendienst [this message]
2008-01-14  6:45   ` Andrew Cowie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478AA7F4.6070809@lists.obeliks.de \
    --to=gentoo.java@lists.obeliks.de \
    --cc=gentoo-java@lists.gentoo.org \
    --cc=pascal.floeschel@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox