Hi all, I am facing an annoying build issue on Windows and I wonder if it something it could be dealt with.
Building NetBeans from a fresh git clone is OK. On a second time build (no clean just ant build) I get: BUILD FAILED C:\Users\falappa\Documents\gitrepos\netbeans\nbbuild\build.xml:660: The following error occurred while executing this line: C:\Users\falappa\Documents\gitrepos\netbeans\harness\libs.nbi.engine\build.xml:50: Error while expanding C:\Users\falappa\Documents\gitrepos\netbeans\harness\libs.nbi.engine\external\nbi.engine-external-binaries-11.zip java.nio.file.AccessDeniedException: C:\Users\falappa\Documents\gitrepos\netbeans\nbi\engine\native\cleaner\windows\dist\cleaner.exe at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230) at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) at java.nio.file.Files.newOutputStream(Files.java:216) at org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java:361) at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:199) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:157) ... It seems that the mentioned nbi.engine-external-binaries-11.zip contains the cleaner.exe file with system and hidden attributes set, those prevents overwriting on the second build. To work around it I have to manually remove the cleaner.exe file with del /ash cleaner.exe. Are those attributes really needed? Would it be possible to have them removed from the file in the zip archive? Am I building something wrong? Regards, Alex