Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Bug in MTJ preprocessor documentation
Bug in MTJ preprocessor documentation [message #481465] Fri, 21 August 2009 07:53 Go to next message
David Lucena is currently offline David Lucena
Messages: 74
Registered: August 2009
Member
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.
Re: Bug in MTJ preprocessor documentation [message #481552 is a reply to message #481465] Fri, 21 August 2009 13:48 Go to previous messageGo to next message
Euclides Neto is currently offline Euclides Neto
Messages: 8
Registered: July 2009
Junior Member
Hello David,

Could you please fill up a new bug on MTJ bugzilla
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=MTJ) with this
information?

Thanks,
-- Euclides
Re: Bug in MTJ preprocessor documentation [message #481578 is a reply to message #481552] Fri, 21 August 2009 15:58 Go to previous messageGo to next message
David Lucena is currently offline David Lucena
Messages: 74
Registered: August 2009
Member
Seems to be done:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=287317
Re: Bug in MTJ preprocessor documentation [message #576255 is a reply to message #481552] Fri, 21 August 2009 15:58 Go to previous message
David Lucena is currently offline David Lucena
Messages: 74
Registered: August 2009
Member
Seems to be done:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=287317
Previous Topic:Bug in MTJ preprocessor documentation
Next Topic:Per configuration resource files sets
Goto Forum:
  


Current Time: Wed Oct 01 22:25:09 GMT 2014

Powered by FUDForum. Page generated in 0.02012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software