How could I get an .ear's filesize at runtime?

Posted by adam on Stack Overflow See other posts from Stack Overflow or by adam
Published on 2010-01-29T16:36:43Z Indexed on 2010/05/02 1:07 UTC
Read the original article Hit count: 309

Filed under:
|
|
|
|

I started out attempting to do this with the Length ant task, but realized that that would be done before the ear is packaged. Packaging the ear, then checking the file size, and then placing it in the ear would effect the size of the ear.

Is there a way to get the ear's size programmatically at run-time? Or perhaps an MBean that would have that information?

© Stack Overflow or respective owner

Related posts about j2ee

Related posts about java