ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r893145 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportOutputter.java
Date Tue, 22 Dec 2009 11:28:39 GMT
Author: maartenc
Date: Tue Dec 22 11:28:38 2009
New Revision: 893145

URL: http://svn.apache.org/viewvc?rev=893145&view=rev
Log:
FIX: Ivy does not close URL connection to ivy-report.xsl properly (IVY-1152)

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportOutputter.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportOutputter.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportOutputter.java?rev=893145&r1=893144&r2=893145&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportOutputter.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportOutputter.java Tue
Dec 22 11:28:38 2009
@@ -66,11 +66,11 @@
         File reportXsl = new File(reportParentDir, "ivy-report.xsl");
         File reportCss = new File(reportParentDir, "ivy-report.css");
         if (!reportXsl.exists()) {
-            FileUtil.copy(XmlReportOutputter.class.getResource("ivy-report.xsl"), reportXsl,
+            FileUtil.copy(XmlReportOutputter.class.getResourceAsStream("ivy-report.xsl"),
reportXsl,
                 null);
         }
         if (!reportCss.exists()) {
-            FileUtil.copy(XmlReportOutputter.class.getResource("ivy-report.css"), reportCss,
+            FileUtil.copy(XmlReportOutputter.class.getResourceAsStream("ivy-report.css"),
reportCss,
                 null);
         }
     }



Mime
View raw message