summaryrefslogtreecommitdiff
path: root/libre/apache-ant-libre/ant_diagnostics.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-23 19:47:42 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-23 19:47:42 -0300
commitc4cc142235d7d77327c2a53d9efb2750b1ec80bf (patch)
tree41446fa0833a3783d24b6bd12c64336f845e6032 /libre/apache-ant-libre/ant_diagnostics.patch
parent5ddafb1e55d18275d3f16e9faa3e9da788b54389 (diff)
parentb1b9debcc7f6756d83dbac37806021de007cf083 (diff)
Merge branch 'master' of ssh://gparabola/abslibre
Conflicts: libre/linux-libre/PKGBUILD
Diffstat (limited to 'libre/apache-ant-libre/ant_diagnostics.patch')
-rw-r--r--libre/apache-ant-libre/ant_diagnostics.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/libre/apache-ant-libre/ant_diagnostics.patch b/libre/apache-ant-libre/ant_diagnostics.patch
new file mode 100644
index 000000000..38148b45c
--- /dev/null
+++ b/libre/apache-ant-libre/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);