Sublime Forum

Is there anything like shell variables?

#1

I am writing a package for Apache Pig but I am hitting my head on the ceiling on the build script. I need to specify both the Pig binary path and JAVA_HOME somewhere or the build won’t work system to system. Not many people have the Pig binary in their system path and it’s a real pain to do in OS X.

PigLatin.sublime-build

{
	"cmd": "/Users/chris/Developer/pig/bin/pig", "-x local", "$file"],
	"file_regex" : "file (...*?), line ([0-9]*), column ([0-9]*)\\s+(...*?)$",
	"env" : { "JAVA_HOME" : "/System/Library/Frameworks/JavaVM.framework/Home" },
	"selector" : "source.pig" 
}

Any way to externalize the path to the executable and JAVA_HOME?

github.com/chrislongo/PigLatin

0 Likes