Package com.alexecollins.vbox.core

Examples of com.alexecollins.vbox.core.VBox


    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

public class DeleteDefinitionIT {
  @Test
  public void testCall() throws Exception {
    final File tmp = Files.createTempDir();
    final File target = new File(tmp, "test");
    final VBox box = new CreateDefinition(new TestContext(), "CentOS_6_5", target).call();

    System.out.println("src="+box.getSrc());

    assertTrue(target.exists());
    new DeleteDefinition(new Work(new TestContext()), box).call();
    assertFalse(target.exists());
  }
View Full Code Here

  @Test
  public void testApply() throws Exception {
    final File tmp = Files.createTempDir();
    final Context context = new TestContext();
    new CreateDefinition(context, "CentOS_6_5", tmp).call();
    new PredefinedPatch("CentOS_6_5--tomcat6", ImmutableMap.of("hostname", "localhost")).apply(new VBox(context, tmp.toURI()));
    assertTrue(FileUtils.readFileToString(new File(tmp, "floppy0/post-install.sh")).contains("tomcat6"));
  }
View Full Code Here

TOP

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

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.