From: Alistair Bush <alistair.bush@gmail.com>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] eclipse-sdk jar files
Date: Sat, 29 Dec 2007 00:30:39 +1300 [thread overview]
Message-ID: <4774DE5F.5030907@gmail.com> (raw)
As I know of at least one package that has a dependency on eclipse-sdk I
am about to commit a new revision of the eclipse-sdk ebuild (in
java-exp) that records the eclipse jar's within its package.env file.
Now the main problem is that the eclipse jar files are versioned (eg
org.eclipse.compare_3.3.1.r33x_20070906.jar ) so just calling regjar is
pointless. I also attempted to install the jar files to
/usr/share/eclipse-sdk-3.3/lib and link them to
/usr/lib/eclipse-3.3/plugins/ but eclipse did not run (and seemed to
then view it's home dir as /usr/share/eclipse-sdk-3.3/lib).
So my solution is to create links in /usr/share/eclipse-sdk-3.3/lib with
non-versioned jars and regjar those.
This is the function to do this...
register_eclipse_jars() {
pushd "${D}" > /dev/null
dodir "/usr/share/${PN}-${SLOT}/lib"
while read line; do
local newfile="$(basename "$line")"
local file="/usr/share/${PN}-${SLOT}/lib/${newfile/_*/.jar}"
dosym "${line/./}" "${file}"
java-pkg_regjar "${file}"
done < <(find . -type f -name '*.jar')
popd > /dev/null
}
Currently this solution has some issues mainly being around the way
names are formed
( e.g. universal.jar ->
/usr/lib/eclipse-3.3/plugins/org.eclipse.ui.intro.universal_3.2.100.v20070530A/universal.jar
)
this issue only applies to jars within a subdirectory of the eclipse
plugins directory and it will be fixed with time.
Basically I'm after feedback on this. Does anyone have any better ideas?
--
gentoo-java@gentoo.org mailing list
reply other threads:[~2007-12-28 11:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4774DE5F.5030907@gmail.com \
--to=alistair.bush@gmail.com \
--cc=gentoo-java@lists.gentoo.org \
/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