Package org.apache.tools.ant.types.Commandline

Examples of org.apache.tools.ant.types.Commandline.Argument


      return;
    }
   
    // add the dump trigger class if present
    if(triggerclass!=null) {
      Argument arg=createArg();
      arg.setValue("-dumptrigger");
      arg=createArg();
      arg.setValue(triggerclass);
    }
    // config for what we want to execute
   
    configureScenerios();
   
    // set home dir given
    if(configdir!=null) {
     
      Argument arg=createArg();
      arg.setValue("-configdir");
      arg=createArg();
      arg.setFile(configdir);
    }
    else {
      configdir=new File(home,".tck");
     
    }
    // add a parameter to ask for the env setup etc
    Argument arg=createArg();
    arg.setValue("-mode");
    arg=createArg();
    arg.setValue("config");
    super.execute();
   
    // load in required files..
    try {
      applyEnvVarSettings();
      applyJVMArgSettings();
    } catch (IOException e) {
      throw new BuildException(e);
    }
   
   
    // change param to run
    arg.setValue("run");
    super.execute();
 
  }
View Full Code Here


    DataInputStream dis=new DataInputStream(fis);
   
    while(true) {
      String line=dis.readLine();
      if(line==null) break;
      Argument a=createJvmarg();
      a.setValue(line);
    }
   
    dis.close();
   
  }
View Full Code Here

  private void configureScenerios() {
   
    // add scenerios defs to arguments
    if(scenerios.isEmpty()) {
     
      Argument arg=createArg();
      arg.setValue("-scenario");
      arg=createArg();
      arg.setValue("142");
    }
    else {
      Iterator i=scenerios.iterator();
      while(i.hasNext()) {
        Scenario scenerio=(Scenario) i.next();
        if(scenerio.classname==null && scenerio.scenerio==null) {
          throw new BuildException("scenario tag must have a name or classname attribute");
        }
        if(scenerio.scenerio==null) {
          Argument arg=createArg();
          arg.setValue("-class");
          arg=createArg();
          arg.setValue(scenerio.classname);
        } else {
          Argument arg=createArg();
          arg.setValue("-scenario");
          arg=createArg();
          arg.setValue(scenerio.scenerio);
        }
      }
    }
   
 
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.types.Commandline.Argument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.