Package com.alexecollins.vbox.core.task

Examples of com.alexecollins.vbox.core.task.CreateDefinition


    }
    if (dir == null) {
      throw new BuildException("dir is null");
    }
    try {
      new CreateDefinition(context(), name, dir).call();
    } catch (Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here


  private String name;

  public void execute() throws MojoExecutionException, MojoFailureException {

    try {
      new CreateDefinition(getContext(), templateName, new File(project.getBasedir(), "src/main/vbox/" + name)).call();
    } catch (Exception e) {
      throw new MojoExecutionException("failed to create definition", e);
    }
  }
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.task.CreateDefinition

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.