Creation of a new Caseine project fails
Test done on:
- MacOs
- with version 3.0.0 of the plugin
- Eclipse IDE for Java Developers (includes Incubating components) Version: 2023-03 (4.27.0) Build id: 20230309-1520
We get an exception: java.nio.file.DirectoryNotEmptyException: /Users/christophe/dev/CASEINE/runtime-EclipseApplication/a simple example Triplet of integers Java
When we execute this line:
/**
* Regenerate .vplignore file at project root if needed.
*
* @param projectPath The path to the project directory.
*/
public static void regenerateVplignore(String vplIgnorePath) throws IOException {
// Generate vplignore file
try (InputStream sourceStream = MaxFilesListener.class.getResourceAsStream("/vplignoreTemplate")) {
Files.copy(sourceStream, Paths.get(vplIgnorePath), StandardCopyOption.REPLACE_EXISTING);
}
which is not guarded (compared to the previous version)
(Adding the guard fixes the issue, therefore I don't know if it is the good behaviour)
Edited by Astor Bizard