protoj.core.internal
Class JavacCommand

java.lang.Object
  extended by protoj.core.internal.JavacCommand

public final class JavacCommand
extends java.lang.Object

Compiles the project code using the javac compiler. Typically this command is invoked from inside a shell script as an alternative to invoking the javac compiler in an os-specific way. For example the logic that detects whether or not the source directory exists would be hard to replicate across batch files and bash scripts.

In order to configure the underlying ant task, beans introspection is used on the protoj.core.JavacCompileTask parent. First an example of a javac command that configures the ant source property and includes filter using the protoj -opt option that accepts name=value pairs:

 "javac -opt compileTask.source=1.5 -opt dirSet.includes=org/foo/core"
 
That parent contains two properties called compileTask and dirSet that are instances of org.apache.tools.ant.taskdefs.Javac and org.apache.tools.ant.types.DirSet respectively and so consult the ant reference to determine the available set of properties that are available for configuration.

Author:
Ashley Williams

Constructor Summary
JavacCommand(CoreProject core)
           
 
Method Summary
 Command getDelegate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavacCommand

public JavacCommand(CoreProject core)
Method Detail

getDelegate

public Command getDelegate()