Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Output directory is incorrect for non-Windows #322
From a non-Windows machine (Mac OS X or Linux Ubuntu, for example), run something like:
$ java -jar lombok.jar delombok /Users/anthony/Documents/lombok.maven/test-maven-lombok/src/main/lombok/ -d /Users/anthony/Documents/lombok.maven/test-maven-lombok/target/generated-sources/delombok
Then, list the file in the output directory:
$ ls -l /Users/anthony/Documents/lombok.maven/test-maven-lombok/target/generated-sources/delombok
In my example, I have a source code file: /Users/anthony/Documents/lombok.maven/test-maven-lombok/src/main/lombok/org/projectlombok/test/DataExample.java
I have seen this problem with 0.10.RC1 through 0.10.RC3 -- but only on non-Windows (Mac and Ubuntu). Windows works as expected.
Consider the following debug from Delombok.createFileWriter:
inBase : /Users/anthony/Documents/lombok.maven/test-maven-lombok/src/main/lombok
You can see that "relative" is not properly being transformed to be "relative." I would expect it to become:
It would seem that the URI being generated for the last argument from this line:
I can resolve this problem by changing this line:
Note that I'm running into this problem during testing of the new lombok-maven-plugin. I am using Java 6 update 26 on Mac OSX Lion. Thanks for your help.