Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93027 - new function for java-pkg.eclass: newjar
Summary: new function for java-pkg.eclass: newjar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 22:04 UTC by Josh Nichols (RETIRED)
Modified: 2005-05-18 04:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
proprosed patch for newjar (java-pkg_newjar.patch,2.17 KB, patch)
2005-05-17 22:10 UTC, Josh Nichols (RETIRED)
Details | Diff
sample ebuild using java-pkg_newjar: dev-java/velocity (velocity-1.4-r1.ebuild,1.44 KB, text/plain)
2005-05-17 22:12 UTC, Josh Nichols (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Nichols (RETIRED) gentoo-dev 2005-05-17 22:04:14 UTC
java-pkg current has dojar for installing JARs. This is sufficient for most situations, but there are times when it would be nice to have a newjar function, which would take a given JAR, and install it into /usr/share/${PN}-${SLOT}/lib with a specified destination filename. This function would be particularly useful for combatting versioned JARs, but would be useful whenever it is necessary to rename an installed JAR (without having to patch the build.xml).
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2005-05-17 22:10:48 UTC
Created attachment 59177 [details, diff]
proprosed patch for newjar

The function was mostly copied from java-pkg_dojar. It takes two arugments. The
first is a path to a JAR file, and the second is the name that the JAR should
be installed as.
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2005-05-17 22:12:07 UTC
Created attachment 59178 [details]
sample ebuild using java-pkg_newjar: dev-java/velocity

This is the ebuild I submitted for #92884, modified to use java-pkg_newjar.
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2005-05-18 04:19:13 UTC
commited a java-pkg_newjar
slighty smaller and similar to the new* function
(ie, rename to ${T} and call java-pkg_dojar)

Thanks!