fixes for 137235 (contributed by Ron): more intelligent logic for determining if a path entry is a jar/zip (don't just rely on suffix, some new .bndl files seem to be becoming popular...)
Use ant's TaskLogger for all output from our task, rather than writing directly to sys out / err. This commit also fixes the issue that running ant -verbose did not produce verbose output from iajc (it does now). I ran into this with a client yesterday, and it had me stumped for a while!
- copies resources by default when using the Javac adapter
- does not copy resources unless specified when invoked via AjcTask
- copies injar resources always
updated fix for 40807 - compiler adapter was supplying destDir when not specified
Also adding warning for resource-copying (36071; copyInJars, sourceRootCopyFilter)
I would like to disable entirely, but don't see and haven't gotten confirmation of behavior from last week's telephone call.
- permitting fork in incremental mode only when using tag file
- pulling aspectjtools also from the task classpath
also failonerror default was not true as stated in the docs
fixing 2 bugs disclosed by running ajcTests.xml with -ajctaskCompiler: (1) compliance set incorrectly (-1.3 instead of 1.4) and (2) warn:... form was ignored.
These would break only when running from a Javac compiler adapter and using <compilerarg>
updates mainly to support maven but also to support new ICommand wrapper for AjcTask:
- findToolsJar now accepts versioned jars
- supporting a forkclasspath to permit user to explicitly set
- upgrades for testing
- so multiple iterations work,
- not altering cmd in execute()
- only fixing up outjar once
- reset() complete
- so incremental compile tests work,
- passing quit through to main
- when forking on windows, use javaw rather than java
if possible to avoid popping up a console window
Usage is now emitted as an abort message, so AjcTask now ignores usage when determining whether to throw a BuildException after getting an abort message. This fixes 3 tests.