I was still getting the "ZIP file must have at least one entry" issue. I found a couple possible fixes though.
On my local copy I found you can do two things to correct it in FlexFrameworkGenerator.writeDummyResourceBundleSWC(): Remove any reference to ZipOutputstream and just create and close the FileOutputStream. This will create a file with the .swc extension the only down side is its not a valid zip file. OR Create the ZipOutputStream as is done now and add a single dummy entry to it. Like this *out.putNextEntry(new ZipEntry("zips-cant-be-empty.txt")); *This will create a valid zip file with a single entry in it. On Monday, November 26, 2012 3:39:15 PM UTC-5, Christofer Dutz wrote: > > Hi Remi, > thanks for that report ... strange thing is that I am not getting any > errors on my Windows machine. But I did find out that closing the > ZipOutputStream is bad and I should Close the FileInputStream instead. > Initially I had a "binary" empty Zip file which I simply copied everywhere, > but it was considered bad to add binary stuff to the apache repo. I was > promoted Committer a few days ago .. as soon as I have everything setup, > I'll give fixing that a shot. > > Chris > > > 2012/11/15 Remi P <rpat...@gmail.com <javascript:>> > >> Hi Chris, >> >> I'm trying to use your Mavenizer to generate the FDK structure but I'm >> getting the following exception: >> --------------------------------------------- >> --------------------------------------------- >> --------------------------------------------- >> -- Generating Air SDK version: 3.1 >> --------------------------------------------- >> --------------------------------------------- >> --------------------------------------------- >> -- Generating Flex SDK version: 4.6.0.23201 >> --------------------------------------------- >> Exception in thread "main" java.util.zip.ZipException: ZIP file must have >> at least one entry >> at java.util.zip.ZipOutputStream.finish(Unknown Source) >> at java.util.zip.DeflaterOutputStream.close(Unknown Source) >> at java.util.zip.ZipOutputStream.close(Unknown Source) >> at >> flex.FlexFrameworkGenerator.writeDummyResourceBundleSwc(FlexFrameworkGenerator.java:577) >> at >> flex.FlexFrameworkGenerator.process(FlexFrameworkGenerator.java:175) >> at SDKGenerator.generateFlex(SDKGenerator.java:120) >> at SDKGenerator.generateAllFlex(SDKGenerator.java:108) >> at SDKGenerator.main(SDKGenerator.java:148) >> >> It seems that the error is thrown when the target file is: >> >> {home}\fdktarget\com\adobe\flex\framework\air\airspark\4.6.0.23201\airspark-4.6.0.23201.rb.swc >> >> I guess I did something wrong, but what? >> >> Regards, >> >> Remi >> >> On Fri, Nov 9, 2012 at 11:15 AM, Christofer Dutz >> <christo...@gmail.com<javascript:> >> > wrote: >> >>> Hi guys, >>> >>> sorry for me being a little overloaded in the last weeks, but I have >>> been working hard on my Flex SDK Mavenizer and the Flexmojos 6.x branch. >>> After more than one month of full time work (if a add all up) we are ready >>> to go. I just contributed the code for the Generator to Apache Flex and >>> it's available for download at: >>> https://svn.apache.org/repos/asf/incubator/flex/utilities/trunk/mavenizer/ >>> In a few hours I think that will have an updated README.txt explaining >>> how to use it. >>> >>> Flexmojos 6.x is currently available in my Github Repo at >>> https://github.com/chrisdutz/flexmojos but I will push those changes >>> back to velos repo soon. Just if you want to start testing, give it a go >>> :-) Really hoping on some feedback. >>> >>> Additionally you might be interested that rP and I were really busy on >>> the new Confluence at >>> https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Home >>> Now most of the content of the old sonatype wiki is available at the new >>> destination and I merged in all of my finished documents from my companies >>> Wiki. Currently we are workin on updating those pages, but a lot has been >>> done. So give it a try and give us some feedback at what you think and >>> where things have to be corrected. Reall looking forward to turning off all >>> of the old sites so the web is not polluted with outdated information, so >>> if your're looking for information, you'll be guided to the most recent >>> source. >>> >>> So much for now, >>> Chris >>> >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Flex Mojos" group. >>> To post to this group, send email to flex-...@googlegroups.com<javascript:> >>> To unsubscribe from this group, send email to >>> flex-mojos+...@googlegroups.com <javascript:> >>> For more options, visit this group at >>> http://groups.google.com/group/flex-mojos >>> >>> http://flexmojos.sonatype.org/ >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Flex Mojos" group. >> To post to this group, send email to flex-...@googlegroups.com<javascript:> >> To unsubscribe from this group, send email to >> flex-mojos+...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/flex-mojos >> >> http://flexmojos.sonatype.org/ >> > > -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to flex-mojos@googlegroups.com To unsubscribe from this group, send email to flex-mojos+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/