コード例 #1
0
 public GradleExecuter withEnvironmentVars(Map<String, ?> environment) {
   environmentVars.clear();
   for (Map.Entry<String, ?> entry : environment.entrySet()) {
     if (entry.getKey().equals("GRADLE_OPTS")) {
       throw new IllegalArgumentException(
           "GRADLE_OPTS cannot be set via withEnvironmentVars(), use withGradleOpts()");
     }
     environmentVars.put(entry.getKey(), entry.getValue().toString());
   }
   return this;
 }
コード例 #2
0
 public GradleExecuter reset() {
   args.clear();
   tasks.clear();
   initScripts.clear();
   workingDir = null;
   projectDir = null;
   buildScript = null;
   settingsFile = null;
   quiet = false;
   taskList = false;
   dependencyList = false;
   searchUpwards = false;
   executable = null;
   javaHome = null;
   environmentVars.clear();
   stdin = null;
   defaultCharacterEncoding = null;
   noDefaultJvmArgs = false;
   deprecationChecksOn = true;
   stackTraceChecksOn = true;
   return this;
 }