Fellow Rubyists!
I am working with Apache Accumulo, which uses ProcessBuilder to launch a
separate JVM that hosts a mini-cluster. The Accumulo code uses the
“java.class.path” System property to propagate dependencies to the child
process:
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.accumulo/accumulo-minicluster/1.5.0/org/apache/accumulo/minicluster/MiniAccumuloCluster.java#MiniAccumuloCluster.exec(java.lang.Class%2Cjava.lang.String[])
As part of my code I require all of the necessary jars however they are
not
added to the System property “java.class.path”, which results in me
having
to add them explicitly:
full_classpath = [java.lang.System.properties[‘java.class.path’],
File.join(File.expand_path(‘…/…/vendor/jars-test’, FILE), ‘*’)]
java.lang.System.properties[‘java.class.path’] =
full_classpath.join(‘:’)
Is there a better way to do this?
Thanks,
Ariel V.
e-mail: [email protected]
website: http://blog.arielvalentin.com
skype: ariel.s.valentin
twitter: arielvalentin
linkedin: Sign Up | LinkedIn