Skip to content

Commit

Permalink
Issue 48
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed May 14, 2013
1 parent 9090e66 commit 70957eb
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private void executeWithExceptionsHandled() throws Exception
}
else
{
getLog().info("No processors specified. Using default discovery mechanism.");
getLog().warn("No processors specified. Using default discovery mechanism.");
}
options.add("-d");
options.add(getOutputClassDirectory().getPath());
Expand All @@ -387,9 +387,10 @@ private void executeWithExceptionsHandled() throws Exception
options.add(outputDirectory.getPath());


for (String option : options)
{
getLog().info("javac option: " + option);
if( getLog().isDebugEnabled() ) {
for (String option : options) {
getLog().debug("javac option: " + option);
}
}

DiagnosticListener<JavaFileObject> dl = null;
Expand All @@ -400,7 +401,7 @@ private void executeWithExceptionsHandled() throws Exception

public void report(Diagnostic< ? extends JavaFileObject> diagnostic)
{
getLog().info("diagnostic " + diagnostic);
getLog().debug("diagnostic " + diagnostic);

}

Expand All @@ -424,7 +425,7 @@ public void report(Diagnostic< ? extends JavaFileObject> diagnostic)

for ( Map.Entry<String,String> e : pSet )
{
getLog().info( String.format("set system property : [%s] = [%s]", e.getKey(), e.getValue() ));
getLog().debug( String.format("set system property : [%s] = [%s]", e.getKey(), e.getValue() ));
System.setProperty(e.getKey(), e.getValue());
}

Expand Down Expand Up @@ -556,7 +557,7 @@ private void addCompilerArguments(List<String> options)
if (!StringUtils.isEmpty(arg))
{
arg = arg.trim();
getLog().info("Adding compiler arg: " + arg);
getLog().debug("Adding compiler arg: " + arg);
options.add(arg);
}
}
Expand All @@ -567,7 +568,7 @@ private void addCompilerArguments(List<String> options)
if( !StringUtils.isEmpty(e.getKey()) && e.getValue()!=null ) {
String opt = String.format("-A%s=%s", e.getKey().trim(), e.getValue().toString().trim());
options.add( opt );
getLog().info("Adding compiler arg: " + opt);
getLog().debug("Adding compiler arg: " + opt);
}
}

Expand All @@ -579,7 +580,7 @@ private void addOutputToSourcesIfNeeded()
final Boolean add = addOutputDirectoryToCompilationSources;
if (add == null || add.booleanValue())
{
getLog().info("Source directory: " + outputDirectory + " added");
getLog().debug("Source directory: " + outputDirectory + " added");
addCompileSourceRoot(project, outputDirectory.getAbsolutePath());
}
}
Expand Down

0 comments on commit 70957eb

Please sign in to comment.