-----Original Message-----
From: M White [mailto:tc1...@yahoo.com] 
Sent: Monday, August 31, 2009 12:42 PM
To: ant user
Subject: Reg: Code too large

/*
Hi,
    I am compiling some files .... and i am getting the error - 
 
Code too large for try .
Code too large for catch
 
But ultimately in the logs its printing ... Build Successful.
 
What are these errors about  ... " Code too large .." 
What should i do ?
                     Thanks & Regards
 */

you need a fail in your catch block to make it fail, f.e. =

<trycatch>
      <try>
        <exec dir="C:/notexistent/path" executable="cmd.exe">
          <arg line="/c foobar" />
        </exec>
      </try>
      <catch>
      ... other stuff ...
        <fail message="...."/> <<<<<<<<<<<<<<
      </catch>
    </trycatch>

without that fail your errrors get catched and it's always
BUILD SUCCESSFUL



Regards, Gilbert


      
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to