diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-03-04 21:33:50 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-03-04 21:33:50 -0200 |
commit | 18972d3ee9ba2d3ecade1acf47be9f5df3d9fdc7 (patch) | |
tree | c3d1300f6be5c9015941d4e2fc49f13fb8fa7bc3 /libre/apache-ant-libre/ant_diagnostics.patch | |
parent | 9948bd6f87062dd05336fbc5e1d9af9ece8e647b (diff) | |
parent | 52da029144be979ab29307f7456478a11451b4eb (diff) |
Merge ssh://parabolagnulinux.org:1863/abslibre
Diffstat (limited to 'libre/apache-ant-libre/ant_diagnostics.patch')
-rw-r--r-- | libre/apache-ant-libre/ant_diagnostics.patch | 23 |
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);
|