"error: cannot read:" (use the list file name written in a file)  
Author Message
Eric





PostPosted: 2004-2-24 20:28:00 Top

java-programmer, "error: cannot read:" (use the list file name written in a file) Hello:
When I compile the java source using command
javac javatest\kernel\*.java
it's perfectly work

but I have a lot of source code and distribute over many directories
So I write a file that contains:
javatest\data\*.java
javatest\kernel\*.java
...
names this file as "makefile.txt"

and use the command
javac @makefile.txt
but I got a error
error: cannot read: javatest\data\*.java

please help me

Eric Chen
 
Gordon Beaton





PostPosted: 2004-2-24 20:34:00 Top

java-programmer >> "error: cannot read:" (use the list file name written in a file) On 24 Feb 2004 04:27:48 -0800, Eric wrote:
> So I write a file that contains:
> javatest\data\*.java
> javatest\kernel\*.java
> ...
> names this file as "makefile.txt"
>
> and use the command
> javac @makefile.txt
> but I got a error
> error: cannot read: javatest\data\*.java

The documentation for "argument files" clearly states that they
cannot contain wildcards.

See:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e