JAVA-PKG-SIMPLE.ECLASS

Section: portage (5)
Updated: Oct 2019
Index Return to Main Contents
 

NAME

java-pkg-simple.eclass - Eclass for packaging Java software with ease.  

DESCRIPTION

This class is intended to build pure Java packages from Java sources without the use of any build instructions shipped with the sources. There is no support for resources besides the generated class files, or for generating source files, or for controlling the META-INF of the resulting jar, although these issues may be addressed by an ebuild by putting corresponding files into the target directory before calling the src_compile function of this eclass.  

FUNCTIONS

java-pkg-simple_src_compile
src_compile for simple bare source java packages. Finds all *.java sources in ${JAVA_SRC_DIR}, compiles them with the classpath calculated from ${JAVA_GENTOO_CLASSPATH}, and packages the resulting classes to ${JAVA_JAR_FILENAME}.
java-pkg-simple_src_install
src_install for simple single jar java packages. Simply packages the contents from the target directory and installs it as ${JAVA_JAR_FILENAME}. If the file target/META-INF/MANIFEST.MF exists, it is used as the manifest of the created jar.
 

ECLASS VARIABLES

JAVA_GENTOO_CLASSPATH
Comma or space separated list of java packages to include in the class path. The packages will also be registered as runtime dependencies of this new package. Dependencies will be calculated transitively. See "java-config -l" for appropriate package names.

JAVA_GENTOO_CLASSPATH="foo,bar-2"
JAVA_GENTOO_CLASSPATH_EXTRA
Extra list of colon separated path elements to be put on the classpath when compiling sources.
JAVA_SRC_DIR
Directories relative to ${S} which contain the sources of the application. The default of "" will be treated mostly as ${S} itself. For the generated source package (if source is listed in ${JAVA_PKG_IUSE}), it is important that these directories are actually the roots of the corresponding source trees.

JAVA_SRC_DIR="src/java/org/gentoo"
JAVA_ENCODING ?= UTF-8
The character encoding used in the source files.
JAVAC_ARGS
Additional arguments to be passed to javac.
JAVADOC_ARGS
Additional arguments to be passed to javadoc.
JAVA_JAR_FILENAME ?= ${PN}.jar
The name of the jar file to create and install.
 

AUTHORS

Java maintainers (java@gentoo.org)
 

MAINTAINERS

java@gentoo.org
 

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/  

FILES

java-pkg-simple.eclass  

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/java-pkg-simple.eclass


 

Index

NAME
DESCRIPTION
FUNCTIONS
ECLASS VARIABLES
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:05 GMT, October 21, 2019