java-utils-2.eclass: fix for >=dev-java/ant-core-1.9.13
authorMiroslav Šulc <fordfrog@gentoo.org>
Mon, 21 Jan 2019 21:27:37 +0000 (22:27 +0100)
committerMiroslav Šulc <fordfrog@gentoo.org>
Mon, 21 Jan 2019 21:28:02 +0000 (22:28 +0100)
ant does not like double quotes around classpath (bug #676002)

Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
eclass/java-utils-2.eclass

index 473b177e539a0a187698f12b72024623bb8b9cfb..1ffd7a03399b7d9c670bde8e1e263679b1a551b3 100644 (file)
@@ -2029,7 +2029,9 @@ eant() {
 
        if [[ ${cp#:} ]]; then
                # It seems ant does not like single quotes around ${cp}
-               antflags="${antflags} -Dgentoo.classpath=\"${cp#:}\""
+               # And ant 1.9.13+ also does not like double quotes around ${cp}
+               # https://bz.apache.org/bugzilla/show_bug.cgi?id=58898
+               antflags="${antflags} -Dgentoo.classpath=${cp#:}"
        fi
 
        [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}"