Can't delete an old OpenJDK directory because of NUL files

Phil Race philip.race at oracle.com
Wed Oct 27 18:03:15 UTC 2010


Not addressing the how to delete part, but hopefully this is a VERY old 
directory.
I was getting these files back in the spring and fixed it in May
in jdk/make/common/shared/Platform.gmk as thus :-

--- a/make/common/shared/Platform.gmk
+++ b/make/common/shared/Platform.gmk
@@ -275,7 +275,12 @@ ifeq ($(PLATFORM), windows)
   endif
   ARCH_FAMILY = $(ARCH)
   # Where is unwanted output to be delivered?
-  DEV_NULL = NUL
+  # MKS uses the special file "NUL", cygwin uses the customary unix file.
+  ifeq ($(USING_CYGWIN),true)
+    DEV_NULL = /dev/null
+  else
+    DEV_NULL = NUL
+  endif
   export DEV_NULL
   # Classpath separator
   CLASSPATH_SEPARATOR = ;

-phil.

Pete Brunet wrote:
> On WinXP I'm unable to delete an old OpenJDK directory because there are
> a lot of files named NUL which Windows is not able to delete. 
>
> I can delete them by renaming them one by one with 'ren
> \\.\c:\full_path\nul xyz' but that would take a long time.  Is there a
> command available in cygwin that will delete the directory?  Cygwin rm
> also fails to delete files named NUL.
>
> Pete
>   




More information about the build-dev mailing list