Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.Sequential


        Project project = new Project();
       
        ProcessTester server = new ProcessTester();
       
        MockControl ctrl = MockClassControl.createControl(Sequential.class);
        Sequential afterwards = (Sequential)ctrl.getMock();
        afterwards.execute();

        XhJavaBgTask task = new XhJavaBgTask();
        task.setProject(project);
        task.setClassname(ProcessTester.class.getName());
        task.setClasspath(new Path(project, getClassPath()));
View Full Code Here


        Project project = new Project();
       
        ProcessTester server = new ProcessTester();
       
        MockControl ctrl = MockClassControl.createControl(Sequential.class);
        Sequential afterwards = (Sequential)ctrl.getMock();
        afterwards.execute();
        ctrl.setThrowable(new BuildException());

        XhJavaBgTask task = new XhJavaBgTask();
        task.setProject(project);
        task.setClassname(ProcessTester.class.getName());
View Full Code Here

        Project project = new Project();

        ProcessTester server = new ProcessTester();

        MockControl ctrl = MockClassControl.createControl(Sequential.class);
        Sequential afterwards = (Sequential)ctrl.getMock();
        afterwards.execute();

        XhExecBgTask task = new XhExecBgTask();
        task.setProject(project);
        task.setExecutable(JVM);
        task.createArg().setValue("-cp");
View Full Code Here

        Project project = new Project();

        ProcessTester server = new ProcessTester();

        MockControl ctrl = MockClassControl.createControl(Sequential.class);
        Sequential afterwards = (Sequential)ctrl.getMock();
        afterwards.execute();
        ctrl.setThrowable(new BuildException());

        XhExecBgTask task = new XhExecBgTask();
        task.setProject(project);
        task.setExecutable(JVM);
View Full Code Here

        Project project = (Project)prCtrl.getMock();

        TaskRegistry registry = TaskRegistry.init(project);

        MockControl tkCtrl = MockClassControl.createControl(Sequential.class);
        Sequential task = (Sequential)tkCtrl.getMock();
        task.getTaskName();
        tkCtrl.setReturnValue("blah");

        MockControl evCtrl = MockClassControl.createControl(BuildEvent.class);
        BuildEvent event = (BuildEvent)evCtrl.getMock();
        event.getTask();
View Full Code Here

            applicationRun.addTask(application);
        }

        //The test run consists of the block followed by the tests.
        long testRunTimeout = 0;
        Sequential testRun = new Sequential();
        bind(testRun);
        if (block != null) {
            //waitfor is not a task, it needs to be adapted
            TaskAdapter ta = new TaskAdapter(block);
            ta.bindToOwner(this);
            validateTask(ta, "block");
            testRun.addTask(ta);
            //add the block time to the total test run timeout
            testRunTimeout = block.calculateMaxWaitMillis();
        }

        //add the tests and more delay
        if (tests != null) {
            testRun.addTask(tests);
            testRunTimeout += timeoutMillis;
        }
        //add the reporting and more delay
        if (reporting != null) {
            testRun.addTask(reporting);
            testRunTimeout += timeoutMillis;
        }

        //wrap this in a parallel purely to set up timeouts for the
        //test run
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
        task = new IfPropertyTask();
        project = new Project();
        task.setProject(project);
        sequential = new Sequential();
        sequential.setProject(project);
        dummy = new DummyTask();
        dummy.setProject(project);
        sequential.addTask(dummy);
    }
View Full Code Here

    }
    else if (countConditions() > 1) {
      throw new BuildException("There must be exactly one condition specified.");
    }
   
    Sequential sequential = (Sequential) getProject().createTask("sequential");
    Condition c = (Condition) getConditions().nextElement();
    if (! c.eval()) {
      if (failOnError) {
        Exit fail = (Exit) getProject().createTask("fail");
        fail.setMessage(message);
        sequential.addTask(fail);
      }
    }
    else {
      Iterator it = tasks.iterator();
      while (it.hasNext()) {
        sequential.addTask((Task)it.next());
      }
    }
  }
View Full Code Here

      if (m_nestedTasks != null)
      {
         throw new BuildException("Cannot have two nested Sequential elements.");
      }

      m_nestedTasks = new Sequential();

      return m_nestedTasks;
   }
View Full Code Here

      if (m_catchTasks != null)
      {
         throw new BuildException("Cannot have two nested Catch elements");
      }

      m_catchTasks = new Sequential();

      return m_catchTasks;
   }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.Sequential

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.