ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48829] New: Javac task only accepts *.java files
Date Mon, 01 Mar 2010 04:49:57 GMT

           Summary: Javac task only accepts *.java files
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core tasks

The javac task explicitly filters from the compiler all files that do not end
in *.java.

This is a problem for CompilerAdapters classes that can compile more than just
Java, for example compiler adapters for Groovy or AspectJ.  As an example of
where this is important, Eclipse's pde build will soon support custom compiler
adapters to be specified and we have just written one for AspectJ (and will
soon do one for Groovy):

I propose that the Javac task accept a new attribute such as
sourceFileExtensions that can take a comma separated list of source file
extensions (eg- "*.java,*.aj,*.groovy").  And these are the source file
extensions accepted by the Javac task.

An example is something like this:

<javac destdir="dest"

And if the sourceFileExtensions attribute is not used, then the default is
*.java (ie- the current behavior).

I believe that this is a fairly small fix to the javac task and if you think
this is a reasonable proposal, I can probably submit a patch.


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message