eclipse-sdk jar files
Alistair Bush <[email protected]>
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Message-ID | <[email protected]> |
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?
--
[email protected] mailing list