mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 02:20:45 +01:00
deal with "could not copy file" on export to application (issue #638)
This commit is contained in:
@@ -1448,7 +1448,7 @@ public class JavaBuild {
|
||||
String preprocFilename = sketch.getName() + ".java";
|
||||
File preprocFile = new File(srcFolder, preprocFilename);
|
||||
if (preprocFile.exists()) {
|
||||
preprocFile.renameTo(new File(sourceFolder, preprocFilename));
|
||||
Base.copyFile(preprocFile, new File(sourceFolder, preprocFilename));
|
||||
} else {
|
||||
System.err.println("Could not copy source file: " + preprocFile.getAbsolutePath());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user