/[gentoo-x86]/eclass/java-utils-2.eclass
Gentoo

Diff of /eclass/java-utils-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1213 local build_compiler_deps="$(source ${JAVA_PKG_COMPILER_DIR}/${compiler} 1>/dev/null 2>&1; echo ${ANT_BUILD_COMPILER_DEPS})" 1213 local build_compiler_deps="$(source ${JAVA_PKG_COMPILER_DIR}/${compiler} 1>/dev/null 2>&1; echo ${ANT_BUILD_COMPILER_DEPS})"
1214 if [[ -n ${build_compiler_deps} ]]; then 1214 if [[ -n ${build_compiler_deps} ]]; then
1215 antflags="${antflags} -lib $(java-config -p ${build_compiler_deps})" 1215 antflags="${antflags} -lib $(java-config -p ${build_compiler_deps})"
1216 fi 1216 fi
1217 fi 1217 fi
1218
1219 if is-java-strict; then
1220 einfo "Disabling system classpath for ant"
1221 antflags="${antflags} -Dbuild.sysclasspath=ignore"
1222 fi
1218 1223
1219 if [[ -n ${JAVA_PKG_DEBUG} ]]; then 1224 if [[ -n ${JAVA_PKG_DEBUG} ]]; then
1220 antflags="${antflags} -debug" 1225 antflags="${antflags} -debug"
1221 fi 1226 fi
1222 1227
1783# ------------------------------------------------------------------------------ 1788# ------------------------------------------------------------------------------
1784 1789
1785java-pkg_check-phase() { 1790java-pkg_check-phase() {
1786 local phase=${1} 1791 local phase=${1}
1787 local funcname=${2} 1792 local funcname=${2}
1788 # TODO add check for java-stricter
1789 if [[ ${EBUILD_PHASE} != ${phase} ]]; then 1793 if is-java-strict && [[ ${EBUILD_PHASE} != ${phase} ]]; then
1790 java-pkg_announce-qa-violation \ 1794 java-pkg_announce-qa-violation \
1791 "${funcname} used outside of src_${phase}" 1795 "${funcname} used outside of src_${phase}"
1792 fi 1796 fi
1793} 1797}
1794 1798
1805 java-pkg_announce-qa-violation "deprecated USE flag 'jikes' in IUSE" 1809 java-pkg_announce-qa-violation "deprecated USE flag 'jikes' in IUSE"
1806 fi 1810 fi
1807} 1811}
1808 1812
1809java-pkg_announce-qa-violation() { 1813java-pkg_announce-qa-violation() {
1810 if hasq java-strict ${FEATURES}; then 1814 if is-java-strict; then
1811 echo "Java QA Notice: $@" >&2 1815 echo "Java QA Notice: $@" >&2
1812 increment-qa-violations 1816 increment-qa-violations
1813 fi 1817 fi
1814} 1818}
1815 1819
1816increment-qa-violations() { 1820increment-qa-violations() {
1817 let "JAVA_PKG_QA_VIOLATIONS+=1" 1821 let "JAVA_PKG_QA_VIOLATIONS+=1"
1818 export JAVA_PKG_QA_VIOLATIONS 1822 export JAVA_PKG_QA_VIOLATIONS
1819} 1823}
1820 1824
1825is-java-strict() {
1826 hasq java-strict ${FEATURES};
1827 return $?
1828}
1829
1821# ------------------------------------------------------------------------------ 1830# ------------------------------------------------------------------------------
1822# @eclass-end 1831# @eclass-end
1823# ------------------------------------------------------------------------------ 1832# ------------------------------------------------------------------------------

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20