protoj.core.internal
Class AjcCommand

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

public final class AjcCommand
extends java.lang.Object

Compiles the project code using the ajc compiler. Typically this command is invoked from inside a shell script as an alternative to invoking the ajc 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.AspectjCompileTask parent. First an example of an ajc command that configures the ant source property and includes filter using the protoj -opt option that accepts name=value pairs:

 "ajc -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.aspectj.tools.ant.taskdefs.AjcTask and org.apache.tools.ant.types.DirSet respectively and so consult the ant and aspectj reference to determine the available set of properties that are available for configuration.

Author:
Ashley Williams

Constructor Summary
AjcCommand(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

AjcCommand

public AjcCommand(CoreProject core)
Method Detail

getDelegate

public Command getDelegate()