MCPcopy Create free account
hub / github.com/apache/pig / markPredeployedJarsFromProperties

Method markPredeployedJarsFromProperties

src/org/apache/pig/PigServer.java:355–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353 }
354
355 private void markPredeployedJarsFromProperties() throws ExecException {
356 // mark jars as predeployed from properties
357 String jar_str = pigContext.getProperties().getProperty("pig.predeployed.jars");
358
359 if(jar_str != null){
360 // Use File.pathSeparator (":" on Linux, ";" on Windows)
361 // to correctly handle path aggregates as they are represented
362 // on the Operating System.
363 for(String jar : jar_str.split(File.pathSeparator)){
364 if (jar.length() > 0) {
365 pigContext.markJarAsPredeployed(jar);
366 }
367 }
368 }
369 }
370
371 public PigContext getPigContext(){
372 return pigContext;

Callers 1

PigServerMethod · 0.95

Calls 5

getPropertyMethod · 0.80
splitMethod · 0.80
lengthMethod · 0.80
markJarAsPredeployedMethod · 0.80
getPropertiesMethod · 0.45

Tested by

no test coverage detected