File | Line |
---|
net\objectlab\qalab\m2\report\MainReport.java | 155 |
net\objectlab\qalab\m2\report\MergeAndChartReport.java | 400 |
getLog().info("Output Directory: " + getOutputDirectory());
final File outdir = new File(getOutputDirectory());
if (!outdir.exists()) {
outdir.mkdirs();
}
assert outdir.isDirectory() : "the output directory was not a directory";
final File output;
try {
output = File.createTempFile("qalab", null, outdir);
assert output != null : "the temp file is null.";
} catch (IOException ioex) {
throw new MavenReportException("could not create temp file.", ioex);
}
final XmlTransformer t = new XmlTransformer(theXmlStream, theStyleSheetStream, output);
t.addParameter("targetdir", getOutputDirectory());
t.addParameter("type", types);
t.addParameter("offset", theOffset);
try {
t.transform();
} catch (TransformerException tex) {
throw new MavenReportException("transformation failed.", tex);
}
// clean up the temp file when the plugin is done.
output.deleteOnExit();
} |
File | Line |
---|
net\objectlab\qalab\m2\BuildStatMergeMojo.java | 329 |
net\objectlab\qalab\m2\QALabStatAllMergeMojo.java | 421 |
this.checkstyleInputFile = inputFile;
}
public String getMergerTimeStamp() {
return mergerTimeStamp;
}
public void setMergerTimeStamp(String mergerTimeStamp) {
this.mergerTimeStamp = mergerTimeStamp;
}
public File getOutputFile() {
return outputFile;
}
public void setOutputFile(File outputFile) {
this.outputFile = outputFile;
}
public File getPropertiesFile() {
return propertiesFile;
}
public void setPropertiesFile(File propertiesFile) {
this.propertiesFile = propertiesFile;
}
public boolean isQuiet() {
return quiet;
}
public void setQuiet(boolean quiet) {
this.quiet = quiet;
}
public String getSrcDir() {
return srcDir;
}
public void setSrcDir(String srcDir) {
this.srcDir = srcDir;
}
public Properties getTheProperties() {
return theProperties;
}
public void setTheProperties(Properties theProperties) {
this.theProperties = theProperties;
} |
File | Line |
---|
net\objectlab\qalab\m2\BuildStatMergeMojo.java | 221 |
net\objectlab\qalab\m2\QALabStatAllMergeMojo.java | 323 |
merger.mergeStats(new InputSource(new FileInputStream(inputFile)), exporter);
getLog().info("Files: " + merger.getFileCount() + " Violations:" + merger.getTotalStatistics());
exporter.save();
} catch (IllegalAccessException e) {
throw new MojoExecutionException(e.toString());
} catch (FileNotFoundException e) {
throw new MojoExecutionException(e.toString());
} catch (IOException e) {
throw new MojoExecutionException(e.toString());
} catch (ClassNotFoundException e) {
throw new MojoExecutionException(e.toString());
} catch (InstantiationException e) {
throw new MojoExecutionException(e.toString());
}
}
/**
* Validates the parameters supplied by maven 2.
*/
private boolean validate(final File file) { |
File | Line |
---|
net\objectlab\qalab\m2\report\MainReport.java | 182 |
net\objectlab\qalab\m2\report\MergeAndChartReport.java | 484 |
mojo.execute();
}
/**
* @return "qalab/index"
* @see org.apache.maven.reporting.MavenReport#getOutputName()
*/
public final String getOutputName() {
return "qalab/index";
}
/**
* @return The output directory as configured in your <code>pom.xml</code>.
* @see org.apache.maven.reporting.AbstractMavenReport#getOutputDirectory()
*/
protected final String getOutputDirectory() {
return outputDirectory;
}
/**
* @return The Maven Project itself. Used internally to get access to Config
* params etc.
* @see org.apache.maven.reporting.AbstractMavenReport#getProject()
*/
protected final MavenProject getProject() {
return project;
}
/**
* @return a direct reference to the site renderer.
* @see org.apache.maven.reporting.AbstractMavenReport#getSiteRenderer()
*/
protected final SiteRenderer getSiteRenderer() {
return siteRenderer;
}
/**
* @param aLocale
* The locale.
* @return The locale specific report name.
* @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale)
*/
public final String getName(final Locale aLocale) {
return getBundle(aLocale).getString("report.qalab.name");
}
/**
* @param aLocale
* The locale.
* @return The locale specific report description.
* @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale)
*/
public final String getDescription(final Locale aLocale) {
return getBundle(aLocale).getString("report.qalab.description");
}
/**
* @return true.
* @see org.apache.maven.reporting.MavenReport#isExternalReport
*/
public final boolean isExternalReport() {
return true;
}
/**
* @param aLocale
* The locale.
* @return the resource bundle for this report.
*/
private static ResourceBundle getBundle(final Locale aLocale) {
return ResourceBundle.getBundle("qalab-report", aLocale, MergeAndChartReport.class.getClassLoader()); |
File | Line |
---|
net\objectlab\qalab\m2\BuildStatMergeMojo.java | 295 |
net\objectlab\qalab\m2\QALabStatAllMergeMojo.java | 394 |
for (final Iterator it = projectContext.entrySet().iterator(); it.hasNext();) {
final Map.Entry entry = (Map.Entry) it.next();
final String value = String.valueOf(entry.getValue());
if (entry.getKey().toString().indexOf("qalab") >= 0) {
getLog().info("Adding " + entry.getKey() + " / " + value);
}
result.put(entry.getKey(), value);
} |