ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48829] New: Javac task only accepts *.java files
Date Mon, 01 Mar 2010 04:49:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48829

           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
        AssignedTo: notifications@ant.apache.org
        ReportedBy: andrew@eisenberg.as


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):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=303960

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"
compiler="org.eclipse.ajdt.core.ant.AJDT_AjcCompilerAdapter"
sourceFileExtensions="*.java,*.aj">
...

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.

thanks.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message