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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to