Class BootstrapCommandFile
java.lang.Object
org.apache.sling.launchpad.base.impl.bootstrapcommands.BootstrapCommandFile
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBootstrapCommandFile(org.apache.felix.framework.Logger logger, File cmdFile) Will load our commands from specified file, if found -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(org.osgi.framework.BundleContext ctx) Execute commands if needed, and store execution timestamp
-
Field Details
-
DATA_FILENAME
Name of file used to store our execution timestamp -
COMMENT_PREFIX
Prefix for comments in command files- See Also:
-
-
Constructor Details
-
BootstrapCommandFile
Will load our commands from specified file, if found- Parameters:
logger- Logger to usecmdFile- File to load commands from, or null
-
-
Method Details
-
execute
Execute commands if needed, and store execution timestamp- Parameters:
ctx- BundleContext to use- Returns:
- If system bundle needs a restart.
- Throws:
IOException- If an error occurs
-