mirror of https://github.com/apache/ant-ivy
put xsl and css in cache when producing reports
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/trunk@484181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
01370a3338
commit
0cf80c4fa6
|
|
@ -19,6 +19,7 @@ import fr.jayasoft.ivy.License;
|
|||
import fr.jayasoft.ivy.ModuleDescriptor;
|
||||
import fr.jayasoft.ivy.ModuleId;
|
||||
import fr.jayasoft.ivy.ModuleRevisionId;
|
||||
import fr.jayasoft.ivy.util.FileUtil;
|
||||
import fr.jayasoft.ivy.util.Message;
|
||||
|
||||
/**
|
||||
|
|
@ -134,6 +135,15 @@ public class XmlReportOutputter implements ReportOutputter {
|
|||
|
||||
out.println("</ivy-report>");
|
||||
Message.verbose("\treport for "+mrid+" "+report.getConfiguration()+" produced in "+reportFile);
|
||||
|
||||
File reportXsl = new File(destDir, "ivy-report.xsl");
|
||||
File reportCss = new File(destDir, "ivy-report.css");
|
||||
if (!reportXsl.exists()) {
|
||||
FileUtil.copy(XmlReportOutputter.class.getResource("ivy-report.xsl"), reportXsl, null);
|
||||
}
|
||||
if (!reportCss.exists()) {
|
||||
FileUtil.copy(XmlReportOutputter.class.getResource("ivy-report.css"), reportCss, null);
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
Message.error("impossible to produce report for "+report.getModuleDescriptor()+": "+ex.getMessage());
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in New Issue