ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28142] New: - No attribute for -X option with javac compiler
Date Thu, 01 Apr 2004 21:25:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28142>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28142

No attribute for -X option with javac compiler

           Summary: No attribute for -X option with javac compiler
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: lucille.wilson@jenzabar.net
                CC: lucille.wilson@jenzabar.net


I would like to change the -X maxerrs option on the javac compiler.  I can't 
figure out a way to add the attribute for this option in Ant.

I have a target that looks like this:

<target name="jxntm.compile" depends="prepare">
        <javac -Xmaxerrs 950 srcdir="${srcdir}" destdir="${build.classes}" 
classpathref="javac.classpath" includes="com/jenzabar/**/**.java"/>   
        <copy flatten="true" todir="${build.classes}">
	   	<fileset dir="${srcdir}">
	     	<include name="**/*.properties"/>
        </fileset>
	</copy>
    </target>

When I take out the -Xmaxerrs 950 (on line 2 of my example) I compile but my 
compile stops at 100 errors (the default).  I'd like to override the default 
so that the compiler stops when it counts 950 errors (or even more!).  How do 
I code the -X maxerrs param?

If I go to the command line and type:
javac -Xmaxerrs 950 *.java 
this works just fine.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message