org.flexunit.ant.launcher.commands.player
Class CustomPlayerCommand

java.lang.Object
  extended by org.flexunit.ant.launcher.commands.player.CustomPlayerCommand
All Implemented Interfaces:
PlayerCommand

public class CustomPlayerCommand
extends java.lang.Object
implements PlayerCommand


Field Summary
private  java.io.File executable
           
private  DefaultPlayerCommand proxiedCommand
           
 
Constructor Summary
CustomPlayerCommand()
           
 
Method Summary
 java.io.File getExecutable()
           
 java.io.File getFileToExecute()
           
private  java.lang.String[] getJointEnvironment()
          Combine process environment variables and command's environment to emulate the default behavior of the Execute task.
 PlayerCommand getProxiedCommand()
           
 java.lang.String getUrl()
           
 java.lang.Process launch()
           
 void prepare()
           
 void setEnvironment(java.lang.String[] variables)
           
 void setExecutable(java.io.File executable)
           
 void setProject(org.apache.tools.ant.Project project)
           
 void setProxiedCommand(DefaultPlayerCommand playerCommand)
           
 void setSwf(java.io.File swf)
           
 void setUrl(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxiedCommand

private DefaultPlayerCommand proxiedCommand

executable

private java.io.File executable
Constructor Detail

CustomPlayerCommand

public CustomPlayerCommand()
Method Detail

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).