Save This Page
Home » org.apache.sling.launchpad.base-2.2.0-source-release » org.apache.sling.launchpad.base.impl.bootstrapcommands » [javadoc | source]
org.apache.sling.launchpad.base.impl.bootstrapcommands
public class: BootstrapCommandFile [javadoc | source]
java.lang.Object
   org.apache.sling.launchpad.base.impl.bootstrapcommands.BootstrapCommandFile
Field Summary
public static final  String DATA_FILENAME    Name of file used to store our execution timestamp 
public static final  String COMMENT_PREFIX    Prefix for comments in command files 
Constructor:
 public BootstrapCommandFile(Logger logger,
    File cmdFile) 
    Will load our commands from specified file, if found
Method from org.apache.sling.launchpad.base.impl.bootstrapcommands.BootstrapCommandFile Summary:
anythingToExecute,   execute,   parse
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.sling.launchpad.base.impl.bootstrapcommands.BootstrapCommandFile Detail:
 boolean anythingToExecute(BundleContext ctx) 
    True if we have a command file that needs to be executed, based on its file timestamp and stored timstamp
 public int execute(BundleContext ctx) throws IOException 
    Execute commands if needed, and store execution timestamp
 List<Command> parse(InputStream is) throws IOException 
    Parse commands from supplied input stream. Does not close the stream