My timing is just wrong, somebody Adam Murdoch already beat me but here it is anyway.
I was developing this on work time, but have since been shifted to another
project. If you all like this task I don't mind doing maintenance on it in
my own time, but it is limited.
The task I build combines both link & compile into one task but if it's
decided that it should be seperate, it wouldn't be very difficult to split
them. I modeled this task after the Javac task using adapters and a
factory. It currently supports Sun Workshop 4.2 (maybe the newer ones too,
but haven't tested those.), AIX xlC_r, and VStudio 6.0
Current known limitations:
- The Sun Workshop compiler adapter doesn't handle building static libs
that have templates. This was an oversight on my part.
- Does not handle header dependency checking. At most this task
currently
does a time stamp check between the source (.c or .cpp) and the object file
(.o or .obj)
There does exist a stubbed version of the GCC task which shouldn't take more
then a few minutes to flesh out (just copy one of the other unix compiler
types and make sure its all good)
I tried to design this in such a way as to be easily extended. If the
compiler you need doesn't exist you can roll your own by either extending
the DefaultCPPCompileTask class or implementing the CPPCompilerAdapter
interface. Then just put the fully qualified class name as the compiler in
your buildfile.
Questions/Comments are welcome
Mark A Russell
NextGen Software Engineer
CSG Systems, Inc.
E-Mail: [EMAIL PROTECTED]
<<attachment: antextensions.zip>>
