com.borland.jbuilder.runtime
Class JavaRunner
java.lang.Object
|
+--com.borland.jbuilder.runtime.JavaRunner
- All Implemented Interfaces:
- Runner
- public abstract class JavaRunner
- extends java.lang.Object
- implements Runner
Method Summary |
java.lang.String |
getClassPath(JBProject project,
java.util.Map propertyMap)
|
java.lang.String |
getDebugClassName(JBProject project,
java.util.Map propertyMap)
|
abstract java.lang.String |
getMainClassName(JBProject project,
java.util.Map propertyMap)
|
java.lang.String |
getParameters(JBProject project,
java.util.Map propertyMap)
|
java.lang.String |
getRemoteDebugClassName(JBProject project,
java.util.Map propertyMap)
|
java.lang.String |
getVMParameters(JBProject project,
java.util.Map propertyMap)
Provides a VM parameter that defines user.dir to point to the project's
directory. |
java.io.File |
getWorkingDirectory(JBProject project,
java.util.Map propertyMap)
|
void |
run(Browser browser,
Project project,
java.util.Map propertyMap,
boolean debug)
Runner implementations that provide a testbed environment will
typically substitute their main class for the first class name and
supply custom parameters to control the testbed as the final parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaRunner
public JavaRunner()
getMainClassName
public abstract java.lang.String getMainClassName(JBProject project,
java.util.Map propertyMap)
getDebugClassName
public java.lang.String getDebugClassName(JBProject project,
java.util.Map propertyMap)
getRemoteDebugClassName
public java.lang.String getRemoteDebugClassName(JBProject project,
java.util.Map propertyMap)
getVMParameters
public java.lang.String getVMParameters(JBProject project,
java.util.Map propertyMap)
- Provides a VM parameter that defines user.dir to point to the project's
directory.
getParameters
public java.lang.String getParameters(JBProject project,
java.util.Map propertyMap)
getClassPath
public java.lang.String getClassPath(JBProject project,
java.util.Map propertyMap)
getWorkingDirectory
public java.io.File getWorkingDirectory(JBProject project,
java.util.Map propertyMap)
run
public void run(Browser browser,
Project project,
java.util.Map propertyMap,
boolean debug)
Runner implementations that provide a testbed environment will
typically substitute their main class for the first class name and
supply custom parameters to control the testbed as the final parameter.
- Specified by:
run
in interface Runner
- Parameters:
className
- The class selected by the user as the "main" class for
the project.classPath
- The full classpath for the project, including all library
and JDK-defined path entries.vmParams
- Any Java VM parameters specified by the user on the
project's Run property page.- See Also:
JavaProcessTracker