Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 150659 Details for
Bug 218957
[PATCH] eclass/java-osgi various fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
eclass/java-osgi diff
java-osgi.diff (text/plain), 2.88 KB, created by
Hanno Zysik (geki)
on 2008-04-22 21:33:02 UTC
(
hide
)
Description:
eclass/java-osgi diff
Filename:
MIME Type:
Creator:
Hanno Zysik (geki)
Created:
2008-04-22 21:33:02 UTC
Size:
2.88 KB
patch
obsolete
>--- eclass/java-osgi.eclass 2008-01-14 18:06:06.000000000 +0100 >+++ eclass/java-osgi.eclass 2008-01-22 22:09:47.000000000 +0100 >@@ -56,7 +56,7 @@ > _java-osgi_plugin() { > # We hardcode Gentoo as the vendor name > >- cat > "${_OSGI_T}/tmp_jar/plugin.properties" <<-EOF >+ cat > "${_OSGI_T}/osgi/plugin.properties" <<-EOF > bundleName="${1}" > vendorName="Gentoo" > EOF >@@ -85,13 +85,9 @@ > local absoluteJarPath="$(_canonicalise ${1})" > local jarName="$(basename ${1})" > >- mkdir "${_OSGI_T}/tmp_jar" || die "Unable to create directory ${_OSGI_T}/tmp_jar" > [[ -d "${_OSGI_T}/osgi" ]] || mkdir "${_OSGI_T}/osgi" || die "Unable to create directory ${_OSGI_T}/osgi" > >- cd "${_OSGI_T}/tmp_jar" && jar xf "${absoluteJarPath}" && cd - > /dev/null \ >- || die "Unable to uncompress correctly the original jar" >- >- cat > "${_OSGI_T}/tmp_jar/META-INF/MANIFEST.MF" <<-EOF >+ cat > "${_OSGI_T}/osgi/MANIFEST.MF" <<-EOF > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 > Bundle-Name: %bundleName >@@ -104,9 +100,10 @@ > > _java-osgi_plugin "${3}" > >- jar cfm "${_OSGI_T}/osgi/${jarName}" "${_OSGI_T}/tmp_jar/META-INF/MANIFEST.MF" \ >- -C "${_OSGI_T}/tmp_jar/" . > /dev/null || die "Unable to recreate the OSGi compliant jar" >- rm -rf "${_OSGI_T}/tmp_jar" >+ cp "${absoluteJarPath}" "${_OSGI_T}/osgi" >+ jar ufm "${_OSGI_T}/osgi/${jarName}" "${_OSGI_T}/osgi/MANIFEST.MF" \ >+ -C "${_OSGI_T}/osgi/" plugin.properties \ >+ || die "Unable to update jar to be OSGi compliant" > } > > # ----------------------------------------------------------------------------- >@@ -193,28 +190,25 @@ > local absoluteJarPath="$(_canonicalise ${1})" > local jarName="$(basename ${1})" > >- mkdir "${_OSGI_T}/tmp_jar" || die "Unable to create directory ${_OSGI_T}/tmp_jar" > [[ -d "${_OSGI_T}/osgi" ]] || mkdir "${_OSGI_T}/osgi" || die "Unable to create directory ${_OSGI_T}/osgi" > >- cd "${_OSGI_T}/tmp_jar" && jar xf "${absoluteJarPath}" && cd - > /dev/null \ >- || die "Unable to uncompress correctly the original jar" >- > [[ -e "${2}" ]] || die "Manifest file ${2} not found" > > # We automatically change the version if automatic version rewriting is on > > if (( ${4} )); then > cat "${2}" | sed "s/Bundle-Version:.*/Bundle-Version: ${PV}/" > \ >- "${_OSGI_T}/tmp_jar/META-INF/MANIFEST.MF" >+ "${_OSGI_T}/osgi/MANIFEST.MF" > else >- cat "${2}" > "${_OSGI_T}/tmp_jar/META-INF/MANIFEST.MF" >+ cat "${2}" > "${_OSGI_T}/osgi/MANIFEST.MF" > fi > > _java-osgi_plugin "${3}" > >- jar cfm "${_OSGI_T}/osgi/${jarName}" "${_OSGI_T}/tmp_jar/META-INF/MANIFEST.MF" \ >- -C "${_OSGI_T}/tmp_jar/" . > /dev/null || die "Unable to recreate the OSGi compliant jar" >- rm -rf "${_OSGI_T}/tmp_jar" >+ cp "${absoluteJarPath}" "${_OSGI_T}/osgi" >+ jar ufm "${_OSGI_T}/osgi/${jarName}" "${_OSGI_T}/osgi/MANIFEST.MF" \ >+ -C "${_OSGI_T}/osgi/" plugin.properties \ >+ || die "Unable to update jar to be OSGi compliant" > } > > # -----------------------------------------------------------------------------
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 218957
: 150659