You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2019/04/28 11:30:13 UTC
[maven-compiler-plugin] 03/03: Test commit to see if it works.
This is an automated email from the ASF dual-hosted git repository.
khmarbaise pushed a commit to branch MCOMPILER-379
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
commit aabf4456c6c7aab5c982f95846873a9cca807923
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Apr 28 13:29:55 2019 +0200
Test commit to see if it works.
---
.../org/apache/maven/plugin/compiler/AbstractCompilerMojo.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
index 801ed28..c63077a 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -655,6 +655,9 @@ public abstract class AbstractCompilerMojo
if ( generatedSourcesDirectory != null )
{
+ //TESTING...
+ generatedSourcesDirectory.mkdirs();
+
String generatedSourcesPath = generatedSourcesDirectory.getAbsolutePath();
compileSourceRoots.add( generatedSourcesPath );
@@ -788,6 +791,7 @@ public abstract class AbstractCompilerMojo
incrementalBuildHelperRequest = new IncrementalBuildHelperRequest().inputFiles( sources );
+ getLog().info( " isDependencyChanged:" + isDependencyChanged() );
// CHECKSTYLE_OFF: LineLength
if ( ( compiler.getCompilerOutputStyle().equals( CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) && !canUpdateTarget )
|| isDependencyChanged()
@@ -1562,7 +1566,7 @@ public abstract class AbstractCompilerMojo
if ( fileExtensions == null || fileExtensions.isEmpty() )
{
fileExtensions = new ArrayList<>();
- fileExtensions.add( ".class" );
+ fileExtensions.add( "class" );
}
Date buildStartTime = getBuildStartTime();
@@ -1602,8 +1606,11 @@ public abstract class AbstractCompilerMojo
return false;
}
+ getLog().info( "classPathEntry:" + classPathEntry.getName() );
if ( classPathEntry.isFile() )
{
+ getLog().info( " hasNewFile: " + classPathEntry.getName() + " FileUtils: getExtensions:"
+ + FileUtils.getExtension( classPathEntry.getName() ) );
return classPathEntry.lastModified() >= buildStartTime.getTime()
&& fileExtensions.contains( FileUtils.getExtension( classPathEntry.getName() ) );
}