org.apache.sling.launchpad.base.impl.bootstrapcommands
Class BootstrapCommandFile

java.lang.Object
  extended by org.apache.sling.launchpad.base.impl.bootstrapcommands.BootstrapCommandFile

public class BootstrapCommandFile
extends Object


Field Summary
static String COMMENT_PREFIX
          Prefix for comments in command files
static String DATA_FILENAME
          Name of file used to store our execution timestamp
 
Constructor Summary
BootstrapCommandFile(org.apache.felix.framework.Logger logger, File cmdFile)
          Will load our commands from specified file, if found
 
Method Summary
 int execute(org.osgi.framework.BundleContext ctx)
          Execute commands if needed, and store execution timestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_FILENAME

public static final String DATA_FILENAME
Name of file used to store our execution timestamp


COMMENT_PREFIX

public static final String COMMENT_PREFIX
Prefix for comments in command files

See Also:
Constant Field Values
Constructor Detail

BootstrapCommandFile

public BootstrapCommandFile(org.apache.felix.framework.Logger logger,
                            File cmdFile)
Will load our commands from specified file, if found

Method Detail

execute

public int execute(org.osgi.framework.BundleContext ctx)
            throws IOException
Execute commands if needed, and store execution timestamp

Returns:
number of commands executed
Throws:
IOException


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.