Re: Is there an option for auto-create output dirs when compiling with javac?
- From: "Arved Sandstrom" <asandstrom@xxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 15:32:19 GMT
"Catherina Svensson" <gremlin@xxxxxxxxxxx> wrote in message
news:4816bba0$0$6769$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
When I perform a compiling operation like:
javac -d build\WEB-INF\classes my.java
and the directory build\WEB-INF\classes does NOT exist then the javac
command fails.
Is there really no auto-create-dir-when-necessary option for javac ?
Cat
Not in the sense that you mean. The location pointed to by the -d option
must exist. Bear in mind that javac will certainly create directories as
required *in* the location you specify...for example:
javac -d targetdir dirA\dirB\*.java
will create
dirA\dirB\*.class
inside "targetDir".
Note that the explanation of the -d option in the javac documentation does
say that the destination directory will *not* be created.
AHS
.
- Prev by Date: Re: Is there really no wildcard adding for "jar -cvf my.jar classes\*.class" ?
- Next by Date: Re: Is there really no wildcard adding for "jar -cvf my.jar classes\*.class" ?
- Previous by thread: Re: Is there an option for auto-create output dirs when compiling with javac?
- Next by thread: KeyEvent consume() not working on JTextField, what am I doing wrong?
- Index(es):