Wednesday, February 09, 2011

Bad Ant Build Script Leads to Doubled file size

I couldn't figure out why my war file was so damn big, until I realized that by specifying the webinf folder in the war task, I was compressing/including it twice.  Since my  fileset already included WEB-INF, I didn't need to specify it twice.  Just deleting the <webinf/> element fixed my problem and I no longer have files which are twice as big as needed.

No comments: