org.flexunit.ant.launcher.commands.player
Class CustomPlayerCommand
java.lang.Object
org.flexunit.ant.launcher.commands.player.CustomPlayerCommand
- All Implemented Interfaces:
- PlayerCommand
public class CustomPlayerCommand
- extends java.lang.Object
- implements PlayerCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxiedCommand
private DefaultPlayerCommand proxiedCommand
executable
private java.io.File executable
CustomPlayerCommand
public CustomPlayerCommand()
getProxiedCommand
public PlayerCommand getProxiedCommand()
setProxiedCommand
public void setProxiedCommand(DefaultPlayerCommand playerCommand)
getExecutable
public java.io.File getExecutable()
setExecutable
public void setExecutable(java.io.File executable)
setProject
public void setProject(org.apache.tools.ant.Project project)
- Specified by:
setProject
in interface PlayerCommand
setSwf
public void setSwf(java.io.File swf)
- Specified by:
setSwf
in interface PlayerCommand
getUrl
public java.lang.String getUrl()
setUrl
public void setUrl(java.lang.String url)
- Specified by:
setUrl
in interface PlayerCommand
getFileToExecute
public java.io.File getFileToExecute()
- Specified by:
getFileToExecute
in interface PlayerCommand
prepare
public void prepare()
- Specified by:
prepare
in interface PlayerCommand
launch
public java.lang.Process launch()
throws java.io.IOException
- Specified by:
launch
in interface PlayerCommand
- Throws:
java.io.IOException
setEnvironment
public void setEnvironment(java.lang.String[] variables)
- Specified by:
setEnvironment
in interface PlayerCommand
getJointEnvironment
private java.lang.String[] getJointEnvironment()
- Combine process environment variables and command's environment to emulate the default
behavior of the Execute task. Needed especially when user expects environment to be
available to custom command (e.g. - xvnc with player not on path).