[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Use of variables on org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY"

I'm using org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY at my project, to bind the JNI directory used on the testsuite.


It happens that (as documented) the JNI path defined here is relative to the worksapce.



However, I have no control of how my project will be downloaded on the workspace. A developer may call it trunk, others may call it messaging, jbm, or bananas.. whatever.. I have no control.



You can download my project and check how it is set if you want:

svn co http://anonsvn.jboss.org/repos/messaging/trunk/


if you look at the .classpath:

http://anonsvn.jboss.org/repos/messaging/trunk/.classpath


If the user checks out the trunk as messaging, or jbm, or jbossmessaging. The binding to JNI won' t work.



It would be better if the JNI path here was related to the project. but as that' s not possible. is there a way to use a variable that would return the project name?



I couldn't find anywhere. I couldn't find an easy documented list of pre-defined variables. Or maybe there isn' t such thing?




Thanks, and I appreciate for any help.


Clebert