attrib4j.ant
Class Attrib4jCompilerAdapter

java.lang.Object
  |
  +--attrib4j.ant.Attrib4jCompilerAdapter
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.compilers.CompilerAdapter

public class Attrib4jCompilerAdapter
extends java.lang.Object
implements org.apache.tools.ant.taskdefs.compilers.CompilerAdapter

A first shot at implementing a compiler adapter so that compiling with attributes very easy to invoke from within Ant. This might also be implemented using an an build listener when the javac task finishes.

Author:
Mark Pollack

Constructor Summary
Attrib4jCompilerAdapter()
           
 
Method Summary
 boolean execute()
          Run the normal javac task, then extract parameters from the javac task and run the attrib4j task.
 void setJavac(org.apache.tools.ant.taskdefs.Javac javac)
          Set the Javac task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attrib4jCompilerAdapter

public Attrib4jCompilerAdapter()
Method Detail

setJavac

public void setJavac(org.apache.tools.ant.taskdefs.Javac javac)
Set the Javac task.

Specified by:
setJavac in interface org.apache.tools.ant.taskdefs.compilers.CompilerAdapter
See Also:
CompilerAdapter.setJavac(org.apache.tools.ant.taskdefs.Javac)

execute

public boolean execute()
                throws org.apache.tools.ant.BuildException
Run the normal javac task, then extract parameters from the javac task and run the attrib4j task.

Specified by:
execute in interface org.apache.tools.ant.taskdefs.compilers.CompilerAdapter
org.apache.tools.ant.BuildException
See Also:
CompilerAdapter.execute()


Copyright © 2002-2003 Mark Pollack. All Rights Reserved.