~ubuntu-branches/ubuntu/saucy/ivy/saucy-proposed

« back to all changes in this revision

Viewing changes to src/java/org/apache/ivy/ant/IvyReport.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-15 17:44:57 UTC
  • mfrom: (3.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130515174457-ogntd0vxluwalq11
Tags: 2.3.0-2
* Team upload.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        // so we have to copy it from classpath to cache
273
273
        ResolutionCacheManager cacheMgr = getIvyInstance().getResolutionCacheManager();
274
274
        File style = new File(cacheMgr.getResolutionCacheRoot(), "ivy-report.xsl");
275
 
        FileUtil.copy(XmlReportOutputter.class.getResourceAsStream("ivy-report.xsl"), style, null);
 
275
        if (!style.exists()) {
 
276
            Message.debug("copying ivy-report.xsl to " + style.getAbsolutePath());
 
277
            FileUtil.copy(XmlReportOutputter.class.getResourceAsStream("ivy-report.xsl"), style, null);
 
278
        }
276
279
        return style;
277
280
    }
278
281
    
297
300
        
298
301
        return IvyPatternHelper.substitute(
299
302
            outputpattern, mRevId.getOrganisation(), mRevId.getName(),
300
 
            mRevId.getRevision(), "", "", ext, conf, mRevId.getAttributes(), null);
 
303
            mRevId.getRevision(), "", "", ext, conf, mRevId.getQualifiedExtraAttributes(), null);
301
304
    }
302
305
 
303
306
    private void genStyled(String[] confs, File style, String ext) throws IOException {