https://bz.apache.org/bugzilla/show_bug.cgi?id=64912
--- Comment #4 from Jaikiran Pai <jaiki...@apache.org> --- Hello @TJ Rothwell, I looked into this a bit more and read up on https://docs.oracle.com/en/java/javase/11/tools/javac.html#GUID-AEEC9F07-CB49-4E96-8BC7-BCC2C7F725C9__BHCJEIBB. That document only says that the argument values need to be quoted if the value contains the space character. It says nothing about the # sign. So I tried out the following (outside of Ant) on Java 11 installation: The args file (args.txt): -d del#me Then: $JAVA_HOME/bin/javac @args.txt Foo.java JAVA_HOME points to Java 11 installation. This works fine without any issues and the compiled class gets generated in the del#me directory. Then I switched to Java 8 installation (1.8.0_265) and ran the same thing again. This time it fails with: javac: directory not found: del Usage: javac <options> <source files> use -help for a list of possible options If I then edit the args.txt to quote the directory value as follows: -d "del#me" then the same command works fine on Java 8. Given that the documentation doesn't state any requirement for quoting the # character and the fact that this is working fine on Java 11, I suspect this is a bug in javac itself (in the Java 8 version) and not an Ant issue. Can you tell us which vendor and version of Java you are using to reproduce this issue? -- You are receiving this mail because: You are the assignee for the bug.