Fw: Support for Eclipse JDT Compiler
"Gregor J. Rothfuss" <[email protected]> Fri, 28 Feb 2003 00:17:54 +0100
| Newsgroups | gmane.comp.cms.wyona.devel |
|---|---|
| Message-ID | <06c801c2deb6$86c88ea0$2200a8c0@tarantula> |
heh, i guess thats one more reason to migrate to a current build of cocoon :) -gregor (who is quickly becoming a huge eclipse fan) "Stefano Mazzocchi" <[email protected]> wrote in message news:<[email protected]>... > Christopher Oliver wrote: > > I've just committed changes to support using the Eclipse JDT compiler > > (http://www.eclipse.org/documentation/html/plugins/org.eclipse.jdt.doc.isv/d oc/reference/api/index.html) > > as an embedded Java compiler for Cocoon. > > yyyyyyyyyyyyyyyyeeeeeeeeeeeeeeeeessssssssssssssss!!!! > > You are becoming my personal hero, Chris :) > > > To use this compiler modify your cocoon.xconf like this: > > > > <programming-languages> > > <java-language logger="core.language.java" name="java"> > > <!-- Specifies which formatter to use to format source code. > > This parameter is optional. > > It is commented out because of bug #5689: Java > > "code-formatter" incorrectly formats double values --> > > <!--parameter name="code-formatter" > > value="org.apache.cocoon.components.language.programming.java.JstyleFormatte r"/--> > > > > <!-- A singleton-like implementation of a ClassLoader --> > > <parameter name="class-loader" > > value="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/> > > <!-- Compiler parameter specifies which class to use to compile Java. > > <parameter name="compiler" > > value="org.apache.cocoon.components.language.programming.java.EclipseJavaCom piler"/> > > > > > > </java-language> > > > > This compiler has no dependency on the CLASSPATH environment variable > > but instead relies on the thread context class loader to load dependent > > classes. > > Sweeeeeeeeeeeeeeeeet! > > Finally, after years and years no more shitty classpaths. > > > I think this will solve > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16580> > > > > Please test it and let me know of any problems. > > Right away. > > You forgot a couple of things: the license in the /legal folder and the > jar description in the /lib/jars.xml file. Can you take care of those? > thanks. > > -- > Stefano Mazzocchi <[email protected]> > Pluralitas non est ponenda sine necessitate [William of Ockham] > -------------------------------------------------------------------- > > >