Bug in MTJ preprocessor documentation [message #576198] |
Fri, 21 August 2009 03:53  |
Eclipse User |
|
|
|
I thought this would help people that may be having some headaches about the preprocessor.
In the documentation, in the "Adding preprocessing support to a MIDlet project" section, it states:
Includes the given source file at the current position. Must be terminated by "#endinclude" for technical reasons. Note that relative file names are interpreted as relative to the project root directory.
But this is not right. If I have a project layout like this
root/src/package1/file1.java
root/src/package2/file2.java
and want to include file2.java in file1.java, with the documentation at hand I should have to do
//#include src/package2/file2.java
//#endinclude
while in fact I have to do this:
//#include ../package2/file2.java
//#endinclude
So the relative file names are in fact interpreted as relative to the actual package of the current file.
Thanks for your attention, hope this helped.
David Lucena.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03102 seconds