org.ops4j.pax.construct.clone
Class PaxScriptImpl

java.lang.Object
  extended by org.ops4j.pax.construct.clone.PaxScriptImpl
All Implemented Interfaces:
PaxScript

public class PaxScriptImpl
extends java.lang.Object
implements PaxScript

Builder implementation for Pax-Construct based build scripts


Field Summary
 
Fields inherited from interface org.ops4j.pax.construct.clone.PaxScript
CREATE_BUNDLE, CREATE_PROJECT, EMBED_JAR, IMPORT_BUNDLE, WRAP_JAR
 
Constructor Summary
PaxScriptImpl()
          Create a new Pax-Construct script builder
 
Method Summary
 PaxCommandBuilder call(java.lang.String command)
          Add a call to a Pax-Construct command
 void write(java.lang.String title, java.io.File scriptFile, java.util.List setupCommands)
          Write the current script to a file, the file extension is used to customize the contents for the target system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaxScriptImpl

public PaxScriptImpl()
Create a new Pax-Construct script builder

Method Detail

call

public PaxCommandBuilder call(java.lang.String command)
Add a call to a Pax-Construct command

Specified by:
call in interface PaxScript
Parameters:
command - name of a Pax-Construct command
Returns:
builder for the Pax-Construct command

write

public void write(java.lang.String title,
                  java.io.File scriptFile,
                  java.util.List setupCommands)
           throws java.io.IOException
Write the current script to a file, the file extension is used to customize the contents for the target system

Specified by:
write in interface PaxScript
Parameters:
title - descriptive name for the script
scriptFile - where the script should be saved
setupCommands - sequence of setup commands
Throws:
java.io.IOException


Copyright © 2007-2008 OPS4J. All Rights Reserved.