Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

system class not laod #4544

freecode82 ·

hi.

When I run the groovy script in script format, the code below works well without any quirks and system class loading errors. however
If you run the groovy script with groovy test.grooy as an external file or batch/shell command, it will say that the system class cannot be found.
Can you tell me how to load this system class?

<< >>>
import com.pmease.quickbuild.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

def targetConf = system.configurationManager.get("root/test");
if (targetConf == null)
throw new QuickbuildException("Unable to find target configuration.");
def builds = system.buildManager.getBuilds(targetConf);

  • solved #2
  • replies 2
  • views 359
  • stars 0
robinshen ADMIN ·
freecode82 ·

:thumbsup: