[Rock-dev] about AUTOPROJ_PROJECT_BASE and code

Sylvain Joyeux sylvain.joyeux at dfki.de
Wed Jun 8 10:32:54 CEST 2011


AUTOPROJ_PROJECT_BASE is an environment variable that has been 
(sneakily) added recently to some builds.

It should NOT be used in code. EVER. It makes the packages dependent on 
having the whole build being done by autoproj, which is something we 
must avoid.

If you *really* need it, in C++ code, there is a "standard" 
configuration search tool in utilmm: ConfigurationFinder

   
http://rock-robotics.org/api/utilmm/classutilmm_1_1ConfigurationFinder.html

which depends on a ROCK_CONFIG_PATH variable.

In any case, this should not be used in orogen code. If you want a 
property to point to a location, just let the people write it ! That's 
the whole point of properties !

Sylvain


More information about the Rock-dev mailing list