Package com.alexecollins.vbox.ant

Source Code of com.alexecollins.vbox.ant.CreateTask

package com.alexecollins.vbox.ant;

import com.alexecollins.vbox.core.VBox;
import com.alexecollins.vbox.core.task.Create;
import org.apache.tools.ant.BuildException;

/**
* @author alexec (alex.e.c@gmail.com)
*/
public class CreateTask extends AbstractTask {
  @Override
  public void execute() throws BuildException {
    if (dir == null) {
      throw new BuildException("dir is null");
    }

    try {
      new Create(work(), new VBox(context(), dir.toURI())).call();
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
}
TOP

Related Classes of com.alexecollins.vbox.ant.CreateTask

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.