public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] eclipse-sdk jar files
@ 2007-12-28 11:30 Alistair Bush
  0 siblings, 0 replies; only message in thread
From: Alistair Bush @ 2007-12-28 11:30 UTC (permalink / raw
  To: gentoo-java

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-28 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-28 11:30 [gentoo-java] eclipse-sdk jar files Alistair Bush

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox