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

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

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

Revision 1.5 Revision 1.6
169 if [[ -n "${JAVA_PKG_DEBUG}" ]]; then 169 if [[ -n "${JAVA_PKG_DEBUG}" ]]; then
170 diff -NurbB "${file}.orig" "${file}" 170 diff -NurbB "${file}.orig" "${file}"
171 fi 171 fi
172 fi 172 fi
173} 173}
174
175# ------------------------------------------------------------------------------
176# @public java-ant_rewrite-classpath
177#
178# Adds 'classpath="${gentoo.classpath}"' to specified build file.
179# ------------------------------------------------------------------------------
180java-ant_rewrite-classpath() {
181 debug-print-function ${FUNCNAME} $*
182
183 if [ -z "${1}" ]; then
184 eerror "java-ant_rewrite-classpath needs one argument"
185 die "java-ant_rewrite-classpath needs one argument"
186 fi
187
188 local file="${1}"
189 echo "Adding gentoo.classpath to ${file}"
190 debug-print "java-ant_rewrite-classpath: ${file}"
191
192 cp "${file}" "${file}.orig" || die "failed to copy ${file}"
193
194 chmod u+w "${file}"
195
196 xml-rewrite.py -f "${file}" --change -e javac -e xjavac -a classpath -v '${gentoo.classpath}' || die "xml-rewrite failed: ${file}"
197
198 if [[ -n "${JAVA_PKG_DEBUG}" ]]; then
199 diff -NurbB "${file}.orig" "${file}"
200 fi
201}

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20