summaryrefslogtreecommitdiffstats
path: root/abs/extra/apache-ant/ant_diagnostics.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2011-08-06 05:12:12 (GMT)
committerBritney Fransen <brfransen@gmail.com>2011-08-06 05:12:12 (GMT)
commit7b2494e31b77d773f705764080aa0e61f653bda5 (patch)
treee39ed62c9a29bc1d45f2aaffac4e651c9be1aaed /abs/extra/apache-ant/ant_diagnostics.patch
parent6a8ac4457e0cb334f336d8292a23861c4b48e11f (diff)
downloadlinhes_pkgbuild-7b2494e31b77d773f705764080aa0e61f653bda5.zip
linhes_pkgbuild-7b2494e31b77d773f705764080aa0e61f653bda5.tar.gz
linhes_pkgbuild-7b2494e31b77d773f705764080aa0e61f653bda5.tar.bz2
apache-ant: Bump to latest.
Diffstat (limited to 'abs/extra/apache-ant/ant_diagnostics.patch')
-rw-r--r--abs/extra/apache-ant/ant_diagnostics.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/extra/apache-ant/ant_diagnostics.patch b/abs/extra/apache-ant/ant_diagnostics.patch
new file mode 100644
index 0000000..38148b4
--- /dev/null
+++ b/abs/extra/apache-ant/ant_diagnostics.patch
@@ -0,0 +1,23 @@
+--- a/src/main/org/apache/tools/ant/Diagnostics.java
++++ b/src/main/org/apache/tools/ant/Diagnostics.java
+@@ -179,7 +179,10 @@
+ * @param clazz the class to get the information from.
+ * @since Ant 1.8.0
+ */
+- private static URL getClassLocation(Class clazz) {
++ private static URL getClassLocation(Class clazz) {
++ if (clazz.getProtectionDomain().getCodeSource() == null) {
++ return null;
++ }
+ return clazz.getProtectionDomain().getCodeSource().getLocation();
+ }
+
+@@ -241,7 +244,7 @@
+ }
+ Transformer transformer = null;
+ try {
+- transformer = transformerFactory.newTransformer();
++ transformer = transformerFactory.newTransformer();
+ } catch (Exception e) {
+ // ignore
+ ignoreThrowable(e);