|
From: Vampire <Va...@jE...> - 2011-11-11 01:15:29
|
Hi, I've just made the proper fix for the doclet thingy. About the OOM, I doubt there is an endless loop eating up memory. If you do an "ant dist" the build script does a couple of times need to call itself in a new Ant process and thus Ivy will rerun if it is needed by a task that is used. That could look like an endless loop because Ivy is producing quite some output. Doing a full "ant dist" with Oracle Java 1.7.0_01 just finished in 4:15 minutes, doing 32 Ivy retrieves, while those don't download the files each time. They are downloaded once to a cache in your home directory and then always just copied to the lib folder in no time. Because of that I didn't see much need in trying to optimise / reduce that. The build is still faster than before my last rewrite with Ivy and ant-contrib. What exact Java version did you use to build? Regards Vampire Marcelo Vanzin schrieb: > I fixed the one below in svn. Still, when I run "ant dist", the build > seems to go into some sort of infinite loop download / checking / > doing who knows what using ivy, whatever that is, until I finally get: > > ------------------------ > setup: > > compile: > > build: > > init: > > check-ivy: > > download-ivy: > > init-ivy: > > retrieve: > [ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ :: > [ivy:retrieve] :: loading settings :: file = > /home/vanzin/projects/jedit/jEdit/ivysettings.xml > [ivy:retrieve] :: resolving dependencies :: org.jedit#jedit;working@coyote > [ivy:retrieve] confs: [default, master, compile, runtime, test, > provided, sources, javadoc, ant-contrib, docbook, fop, jarbundler, > launch4j, default-plugins] > Caught an exception while logging the end of the build. Exception was: > java.lang.OutOfMemoryError: PermGen space > at java.util.IdentityHashMap.keySet(IdentityHashMap.java:963) > at java.util.Collections$SetFromMap.<init>(Collections.java:3887) > at java.util.Collections.newSetFromMap(Collections.java:3871) > at java.lang.Throwable.printStackTrace(Throwable.java:648) > at java.lang.Throwable.printStackTrace(Throwable.java:642) > at java.lang.Throwable.printStackTrace(Throwable.java:633) > at org.apache.tools.ant.Main.runBuild(Main.java:836) > at org.apache.tools.ant.Main.startAnt(Main.java:217) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) > --------------------- > > That's seriously annoying and obviously something's broken. Can > someone familiar with this ivy thing take a look? Thanks! > > On Wed, Nov 9, 2011 at 7:46 PM, Marcelo Vanzin > <va...@us...> > [javac] > /home/vanzin/projects/jedit/jEdit/doclet/GenerateTocXML.java:43: > >> error: cannot find symbol >> [javac] FileWriter out = new >> FileWriter(Standard.htmlDoclet.configuration().destDirName + OUT); >> > > |