Let’s say I had a simple ant script which looked a little something like this:
<project name=”unzipstuff” default=”unzip”>
<unzip src=”/home/webapps/edwinstarr.war” dest=”/home/webapps/edwin/starr/” >
Why oh why oh why oh why (etc and so on) would it fail with the following error?
java.lang.RuntimeException: data starting at 0 is in unknown format
Is the .war file screwed up? If so, why does it extract ok if I do it manually? I wasted approximately 4 hours of my life on this before embarking on a convoluted and silly workaround which is leaving me feeling defeated.
ANT Error Message – java.lang.RuntimeException: data starting at XXX is in unknown format
I just wasted entire day on stupid error from ANT:
java.lang.RuntimeException: data starting at 14600 is in unknown format
Finally I found the simple solution – just run ‘clean’ target from the ANT file and run the main target again. So simple, so frustrating.