Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-374

Make <apt> ant task respect the fork attribute

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V1Alpha, V1Beta, v1m1, 1.0, 1.0.1
    • None
    • Controls
    • None

    Description

      The <apt> ant task is built on top of the built-in <javac> task, which includes a "fork" attribute enabling in-proc invocation of the compiler. Currently, the apt task ignores this attribute and will always launch the apt executable in a seperate process.

      The Javac ant task has a pluggable architecture for invoking different compilers and already has support built in for the various jdk compilers, jikes, sj, etc.

      I think doing this would only involve writing one of these CompilerAdaptor classes for in-proc APT invocations, then modifying AptTask to configure it.

      Sample compiler adaptors can be found in the ant source distribution under src/main/org/apache/tools/ant/taskdefs/compilers.

      Attachments

        1. BEEHIVE-374.diff
          6 kB
          Chad Schoettger
        2. BEEHIVE-374.zip
          1 kB
          Chad Schoettger

        Activity

          People

            Unassigned Unassigned
            kylem Kyle Marvin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: