Package com.alexecollins.vbox.core

Examples of com.alexecollins.vbox.core.Work


  public void setContext(String context) {
    this.context = context;
  }

  protected Work work() {
    return new Work(new Context(context));
  }
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

  }

  protected abstract void execute(VBox box) throws Exception;

  public Work getWork() {
    return new Work(new Context(project.getGroupId() + ":" + project.getArtifactId()));
  }
View Full Code Here

    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

public class ImageUtilsTestTest {
    @Test
    public void testCreateImage() throws Exception {
        final File dest = new File("src.iso");
        ImageUtils.createImage(new Work(new TestContext()), new File("src"), dest);
        assertTrue(dest.exists());
      FileUtils.forceDelete(dest);
    }
View Full Code Here

TOP

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

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.