java-pkg-2.eclass

Name

java-pkg-2.eclass -- Eclass for Java Packages

Description

This eclass should be inherited for pure Java packages, or by packages which need to use Java.

Supported EAPIs

5 6 7 8

Transitively Provided Eclasses

  • java-utils-2

Exported Phases

  • pkg_setup

  • pkg_preinst

  • src_compile

  • src_test

  • src_prepare

Functions

java-pkg-2_pkg_setup

pkg_setup initializes the Java environment

java-pkg-2_src_prepare

wrapper for java-utils-2_src_prepare

java-pkg-2_src_compile

Default src_compile for java packages

Variables:
  EANT_BUILD_XML - controls the location of the build.xml (default: ./build.xml)
  EANT_FILTER_COMPILER - Calls java-pkg_filter-compiler with the value
  EANT_BUILD_TARGET - the ant target/targets to execute (default: jar)
  EANT_DOC_TARGET - the target to build extra docs under the doc use flag
                    (default: javadoc; declare empty to disable completely)
  EANT_GENTOO_CLASSPATH - @see eant documention in java-utils-2.eclass
  EANT_EXTRA_ARGS - extra arguments to pass to eant
  EANT_ANT_TASKS - modifies the ANT_TASKS variable in the eant environment
java-pkg-2_src_test

src_test, not exported.

java-pkg-2_pkg_preinst

wrapper for java-utils-2_pkg_preinst

Variables

JAVA_PKG_IUSE (SET BEFORE INHERIT)

Use JAVA_PKG_IUSE instead of IUSE for doc, source and examples so that the eclass can automatically add the needed dependencies for the java-pkg_do* functions.

Authors

Thomas Matthijs <axxo@gentoo.org>

Maintainers

java@gentoo.org

Reporting Bugs

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