[
https://jira.codehaus.org/browse/MGWT-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284003#comment-284003
]
Constantino Cronemberger commented on MGWT-259:
-----------------------------------------------
The fix for both issues is simple. Replace the call to:
String excludes = StringUtils.join( DEFAULTEXCLUDES, "," );
FileUtils.copyDirectory( warSourceDirectory, hostedWebapp, "**", excludes );
by the new method:
copyDirectoryStructureIfModified(warSourceDirectory, hostedWebapp);
where the new method is:
private void copyDirectoryStructureIfModified(File sourceDir, File destDir)
throws IOException {
DirectoryScanner scanner = new DirectoryScanner();
scanner.setBasedir( sourceDir );
scanner.addDefaultExcludes();
scanner.scan();
/*
* NOTE: Make sure the destination directory is always there (even if
empty) to support POM-less ITs.
*/
destDir.mkdirs();
String[] includedDirs = scanner.getIncludedDirectories();
for ( int i = 0; i < includedDirs.length; ++i ) {
File clonedDir = new File( destDir, includedDirs[i] );
clonedDir.mkdirs();
}
String[] includedFiles = scanner.getIncludedFiles();
for ( int i = 0; i < includedFiles.length; ++i ) {
File sourceFile = new File(sourceDir, includedFiles[i]);
File destFile = new File(destDir, includedFiles[i]);
FileUtils.copyFileIfModified(sourceFile, destFile);
}
}
> gwt:run copyWebapp copy the hidden files as .svn files
> ------------------------------------------------------
>
> Key: MGWT-259
> URL: https://jira.codehaus.org/browse/MGWT-259
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 2.1.0-1
> Environment: Windows 7
> Reporter: sebastien
> Assignee: nicolas de loof
> Fix For: 2.2.1
>
>
> All in titlte
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email