Summary: | Javac using JVC compiler option fails | ||
---|---|---|---|
Product: | Ant | Reporter: | Steve Goodsell <steve.goodsell> |
Component: | Core tasks | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | sami.naatanen |
Priority: | P3 | ||
Version: | 1.6.2 | ||
Target Milestone: | 1.8.3 | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
Steve Goodsell
2004-10-12 13:20:26 UTC
Looking at the command line created, Ant uses backslashes as separators. I rather suspect that JVC doesn't deal with the spaces in file names. Maybe I should rephrase my comment as a question ;-) Does it work if you run the very same build setup in a directory tree without any spaces in any file/directory-names? Setting this as invalid as we're missing information and Microsoft SDK for Java is not available anymore from their website as far as I can see, so I could not try it myself. Reading from msdn, the filename syntax supports / or \ but nothing is mentionned about spaces. Feel free to reopen if you can provide more information. All, This problem was actually due to spaces in the path of each java file to be compiled as suggested in an earlier comment. The JVC compiler seems to dislike these on the command line, although it is happy when run from an IDE. Solution, move my project files to a space free directory! Thanks all.. Steve Thanks for the head up steve This is in fact a bug. At least in 1.7.1 and later. The reason for this is that the temporary source file list should NOT contain the quotation around the file names even if the file paths contain spaces. JVC tries to find files where the quotation marks are part of the file name and obviously can't find these. So to sum this up quotation is required on command line arguments if they contain spaces, but are NEVER ALLOWED in the temporary file containing all the source files. Sadly I don't have time to try to fix this, but I can test this if you can create a test version. Yours, Sami Näätänen They have to be quoted for javac (the real one 8-) as spaces are valid separators as well. See bug 10499 Since you are willing to test this and I pretty much doubt there are too many people using jvc today anymore, please try trunk svn revision 1209446 or later. Thanks, I will test this later next week when I'm back at work. I have to celebrate Independence Day first after the weak end. ;) I just managed to test it and can confirm that this issue is now fixed. |