Home Download Buy Blog Forum Support

Is there anything like shell variables?

Is there anything like shell variables?

Postby chrisnyc on Sun Nov 20, 2011 11:02 pm

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

Code: Select all
{
   "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?

https://github.com/chrislongo/PigLatin
chrisnyc
 
Posts: 7
Joined: Sun Nov 20, 2011 10:56 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 5 guests