public class InputJob extends PropertiesJobBase
The medium with which Oddjob asks for input will depend on how it's running. When running in Oddjob Explorer a GUI dialogue will be used. When running from the console, input from the console will be requested.
<oddjob> <job> <sequential> <jobs> <input> <requests> <input-file prompt="Install Directory" default="/home/oddjob/foo" property="config.install"/> <input-text prompt="System" default="Development" property="config.system"/> <input-text prompt="Username" property="config.username"/> <input-password prompt="Password" property="config.password"/> <input-confirm prompt="Agree To Licence" default="false" property="config.agree"/> </requests> </input> <check value="${config.agree}" eq="true"/> <echo>Password for ${config.username} is ${config.password}</echo> <input> <requests> <input-message>Logging On to ${config.system} Now!</input-message> </requests> </input> </jobs> </sequential> </job> </oddjob>
Constructor and Description |
---|
InputJob() |
Modifier and Type | Method and Description |
---|---|
protected int |
execute()
Execute this job.
|
InputHandler |
getInputHandler() |
InputRequest |
getRequests(int index) |
protected boolean |
isOverride()
Are the properties override properties.
|
void |
setInputHandler(InputHandler inputHandler) |
void |
setRequests(int index,
InputRequest request) |
addPropertyLookup, createPropertyLookup, getLookup, getProperties, onDestroy, onReset, setArooaContext, setProperties
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onStop, run, sleep, softReset, stateHandler, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener
protected int execute()
SimpleJob
public InputHandler getInputHandler()
@Inject public void setInputHandler(InputHandler inputHandler)
public InputRequest getRequests(int index)
public void setRequests(int index, InputRequest request)
protected boolean isOverride()
PropertiesJobBase
isOverride
in class PropertiesJobBase