mabrarov commented on a change in pull request #26:
URL: https://github.com/apache/maven-ear-plugin/pull/26#discussion_r546355822
##########
File path: src/main/java/org/apache/maven/plugins/ear/EarMojo.java
##########
@@ -480,9 +482,10 @@ private void copyModules( final JavaEEVersion
javaEEVersion,
if ( sourceFile.lastModified() >
destinationFile.lastModified() )
{
getLog().info( "Copying artifact [" + module + "] to
[" + module.getUri() + "]" );
- FileUtils.copyFile( sourceFile, destinationFile );
-
- if ( module.changeManifestClasspath() )
+ createParentIfNecessary( destinationFile );
+ Files.copy( sourceFile.toPath(),
destinationFile.toPath(),
+ LinkOption.NOFOLLOW_LINKS,
StandardCopyOption.REPLACE_EXISTING );
+ if ( module.changeManifestClasspath() && ( skinnyWars
|| module.getLibDir() == null ) )
Review comment:
This line looks to be modified by mistake. It should remain:
```java
if ( module.changeManifestClasspath() )
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]