Examples of Taskdef


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

     *
     */
    public static void registerCloverAntTasks(Project antProject, Log log)
    {
        antProject.addBuildListener(new MvnLogBuildListener(log));
        Taskdef taskdef = (Taskdef) antProject.createTask( "taskdef" );
        taskdef.init();
        taskdef.setResource( "cloverlib.xml" );
        taskdef.execute();
    }
View Full Code Here

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

  public void parse(Project project, Object source) throws BuildException {
    if (getImportStack().size() == 0) {
      project.log("configuring moxie tasks", Project.MSG_DEBUG);
     
      // automatically define Moxie tasks
      Taskdef def = new Taskdef();
      def.setProject(project);
      def.setURI("antlib:org.moxie");
      def.setResource("org/moxie/antlib.xml");
      def.execute();
     
      // add Moxie targets
      project.log("adding Moxie phases", Project.MSG_DEBUG);
      newInitPhase(project);
      newCompilePhase(project);
View Full Code Here

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

     *
     */
    public static void registerCloverAntTasks(Project antProject, Log log)
    {
        antProject.addBuildListener(new MvnLogBuildListener(log));
        Taskdef taskdef = (Taskdef) antProject.createTask( "taskdef" );
        taskdef.init();
        taskdef.setResource( "cloverlib.xml" );
        taskdef.execute();
    }
View Full Code Here

Examples of org.xtext.builddsl.lib.TaskDef

    return BuildScript.OK;
  }
 
  public void _executeTask(final String name) {
    Map<String, TaskDef> _tasks = this.getTasks();
    final TaskDef task = _tasks.get(name);
    boolean _equals = Objects.equal(task, null);
    if (_equals) {
      throw new UnsupportedOperationException((("A task \'" + name) + "\' does not exist."));
    }
    boolean _isExecuted = task.isExecuted();
    if (_isExecuted) {
      return;
    }
    boolean _isIsExecuting = task.isIsExecuting();
    if (_isIsExecuting) {
      throw new IllegalStateException((("Recursion detected : The task \'" + name) + "\' already running."));
    }
    try {
      task.setIsExecuting(true);
      List<String> _prerequisitedTasks = task.getPrerequisitedTasks();
      final Procedure1<String> _function = new Procedure1<String>() {
        public void apply(final String it) {
          BuildScript.this._executeTask(it);
        }
      };
      IterableExtensions.<String>forEach(_prerequisitedTasks, _function);
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("[Task \'");
      _builder.append(name, "");
      _builder.append("\']");
      InputOutput.<String>println(_builder.toString());
      Procedure0 _runnable = task.getRunnable();
      if (_runnable!=null) {
        _runnable.apply();
      }
    } finally {
      task.setExecuted(true);
      task.setIsExecuting(false);
    }
  }
View Full Code Here

Examples of org.xtext.builddsl.lib.TaskDef

    Map<String, TaskDef> _tasks = this.getTasks();
    boolean _containsKey = _tasks.containsKey(name);
    if (_containsKey) {
      throw new IllegalArgumentException((("A task \'" + name) + "\' is laready registered."));
    }
    final TaskDef task = new TaskDef();
    init.apply(task);
    Map<String, TaskDef> _tasks_1 = this.getTasks();
    _tasks_1.put(name, task);
  }
View Full Code Here

Examples of sbt.testing.TaskDef

  @Override
  public Task[] tasks(TaskDef[] taskDefs) {
   int length = taskDefs.length;
    Task[] tasks = new Task[length];
    for (int i = 0; i < length; i++) {
      TaskDef taskDef = taskDefs[i];
      tasks[i] = createTask(taskDef);
    }
    return tasks;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.