initializeDefaults();
try
{
CompilerExecutable compilerExecutable = netExecutableFactory.getCompilerExecutableFor(getCompilerRequirement(),
getCompilerConfig(),
project,
profileAssemblyPath);
if (!test)
{
Boolean sourceFilesUpToDate = (Boolean) super.getPluginContext().get("SOURCE_FILES_UP_TO_DATE");
if (((sourceFilesUpToDate == null) || sourceFilesUpToDate) &&
System.getProperty("forceCompile") == null && compilerExecutable.getCompiledArtifact() != null &&
compilerExecutable.getCompiledArtifact().exists())
{
if (isUpToDateWithPomAndSettingsAndDependencies(compilerExecutable.getCompiledArtifact()))
{
getLog().info("NPANDAY-900-003: Nothing to compile - all classes are up-to-date");
project.getArtifact().setFile(compilerExecutable.getCompiledArtifact());
return;
}
}
}
// FileUtils.mkdir("target");
FileUtils.mkdir(project.getBuild().getDirectory());
long startTimeCompile = System.currentTimeMillis();
compilerExecutable.execute();
long endTimeCompile = System.currentTimeMillis();
getLog().info("NPANDAY-900-004: Compile Time = " + (endTimeCompile - startTimeCompile) + " ms");
if (!test)
{
project.getArtifact().setFile(compilerExecutable.getCompiledArtifact());
}
}
catch (PlatformUnsupportedException e)
{