ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1224620 - /ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyReport.java
Date Sun, 25 Dec 2011 17:57:31 GMT
Author: maartenc
Date: Sun Dec 25 17:57:31 2011
New Revision: 1224620

URL: http://svn.apache.org/viewvc?rev=1224620&view=rev
Log:
Only copy the stylesheet to the ivy-cache if it doesn't exist.

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyReport.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyReport.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyReport.java?rev=1224620&r1=1224619&r2=1224620&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyReport.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyReport.java Sun Dec 25 17:57:31 2011
@@ -272,7 +272,9 @@ public class IvyReport extends IvyTask {
         // so we have to copy it from classpath to cache
         ResolutionCacheManager cacheMgr = getIvyInstance().getResolutionCacheManager();
         File style = new File(cacheMgr.getResolutionCacheRoot(), "ivy-report.xsl");
-        FileUtil.copy(XmlReportOutputter.class.getResourceAsStream("ivy-report.xsl"), style,
null);
+        if (!style.exists()) {
+            FileUtil.copy(XmlReportOutputter.class.getResourceAsStream("ivy-report.xsl"),
style, null);
+        }
         return style;
     }
     



Mime
View raw message