Sublime Forum

Access a project's root from a custom Build-System

#1

Hi,

I’m currently evaluating Sublime Text and so far I’ve been mightly impressed !!

However, there is one thing I need to do and haven’t been able to manage easily.

We’re developing Java application which implies a great number of packages with the subsequent directory structure. Therefore, I’m trying to devise a build command to build the whole project at once. (if there is another way to do that I’d take it anytime :smile:). In order not to mess up the SVN repository, and to keep the project structure independent from the IDE used i’dd like to store the sublime-project file somewhere else than in the project’s root directory.

I noticed that in the sublime-project file there was this “path” variable in the “folders” section. Is there any way to access this variable in the “build-systems” section ? I tried to use $project_path but it actually references the path of the sublime-project file and not the project’s path itself.

Thanks for any help you could provide.

And my apologies if this has already been discussed, I didn’t find it during my research.

Take care,
Marco.

0 Likes