Hi Kenneth,
  I think this hasn’t got to do with path length. If I remove that
cleaner.exe file the build succeeds, even in the Documents folder.

Regards ,
Alex

Il giorno mer 12 feb 2020 alle 16:13 Kenneth Fogel <
[email protected]> ha scritto:

> Consider building from a shorter path. Windows still suffers from a max
> path of 260 characters. I tell my students to never use the Documents
> folder because it already eats up path. I create a older off of the root of
> a drive and call it dev. There is a long path in Windows that NTFS supports
> of an amazing length of 65,535 but for some reason it is not the default.
> It can only be used on an app by app basis but that means you could create
> paths that some apps can't use so we get stuck at 260. Sigh.
>
> Ken
>
>
> -----Original Message-----
> From: Alessandro <[email protected]>
> Sent: February 12, 2020 4:08 AM
> To: [email protected]
> Subject: Annoying build issue on Windows
>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Reply via email to