Package com.alexecollins.vbox.core

Examples of com.alexecollins.vbox.core.VBox$Version


  public void execute() throws BuildException {
    if (dir == null) {
      throw new BuildException("dir is null");
    }
    try {
      new Stop(new VBox(context(), dir.toURI())).call();
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here


    if (dir == null) {
      throw new BuildException("dir is null");
    }
    try {
      if (dir.exists()) {
        new DeleteDefinition(work(), new VBox(context(), dir.toURI())).call();
      }
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here

    if (dir == null) {
      throw new BuildException("dir is null");
    }

    try {
      new PatchDefinition(work(), new VBox(context(), dir.toURI()), patches).call();
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here

  public void execute() throws MojoExecutionException, MojoFailureException {
    try {
      final File file = new File(project.getBasedir(), "src/main/vbox/" + name);
      if (file.exists()) {
        new DeleteDefinition(new Work(getContext()), new VBox(getContext(), file.toURI())).call();
      }
    } catch (Exception e) {
      throw new MojoExecutionException("failed to create definition", e);
    }
  }
View Full Code Here

  public void execute() throws BuildException {
    if (dir == null) {
      throw new BuildException("dir is null");
    }
    try {
      System.out.println(new Status(new VBox(context(), dir.toURI())).call());
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here

    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);
    }
  }
View Full Code Here

  public void execute() throws BuildException {
    if (dir == null) {
      throw new BuildException("dir is null");
    }
    try {
      new Start(new VBox(context(), dir.toURI())).call();
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here

  public void execute() throws BuildException {
    if (dir == null) {
      throw new BuildException("dir is null");
    }
    try {
      new Clean(work(), new VBox(context(), dir.toURI())).call();
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here

        names.addAll(Arrays.asList(this.names.split(",")));
        }

    for (final String n : names) {
      try {
                execute(new VBox(getContext(), new File(src, n).toURI()));
      } catch (Exception e) {
        throw new MojoExecutionException("failed to create " + n, e);
      }
    }
  }
View Full Code Here

  public String getName() {
    return name;
  }

  public VBox getBox() throws IOException, JAXBException, SAXException, URISyntaxException {
    return new VBox(context, src.toURI());
  }
View Full Code Here

TOP

Related Classes of com.alexecollins.vbox.core.VBox$Version

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.