org.apache.sling.launchpad.base.impl.bootstrapcommands
Class BootstrapCommandFile
java.lang.Object
org.apache.sling.launchpad.base.impl.bootstrapcommands.BootstrapCommandFile
public class BootstrapCommandFile
- extends Object
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 |
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
BootstrapCommandFile
public BootstrapCommandFile(org.apache.felix.framework.Logger logger,
File cmdFile)
- Will load our commands from specified file, if found
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.