|Problem during packaging: empty jar in \.mtj.tmp\emulation [message #577715]
||Sun, 13 September 2009 11:19
Registered: July 2009
After 4 years successfully using EclipseME, today I upgraded to MTJ. I
have encountered a problem generating packaged builds, both obfuscated and
For some reason, the packaging process creates a fresh file in
\.mtj.tmp\emulation\ABC.jar that contains only the mainfest, ie all
classes and resources are missing. Perhaps the PackageBuilderVisitor class
isnt operating correctly?
Another thing: the error is detected late and indirectly by MTJ. The
actual error in the logs is "failed to inflate jar file", and it occurs
much later in the build process. Before that, Proguard had failed, and yet
MTJ just shows a popup and continues on heedless. I had to download and
read the MTJ source code to trace the cause back to the empty jar in the
emulation folder. Fail fast!
In PackageBuilder.updatePackage(), why not validate that the created Jar
has >= 1 classfile, before continuing to the next step, so as to detect
error states closer to where they happen?
Powered by FUDForum
. Page generated in 0.01481 seconds