From 31bada44e336927d2c9bcb99f1acabb69ce8b6a4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Mar 2012 14:29:42 -0500 Subject: add libre/apache-ant-libre 1.8.2 Arch does not build apache-ant from source, but from a binary distribution. --- libre/apache-ant-libre/ant_diagnostics.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libre/apache-ant-libre/ant_diagnostics.patch (limited to 'libre/apache-ant-libre/ant_diagnostics.patch') 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); -- cgit v1.2.3-2-g168b