You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Christopher Oliver <re...@verizon.net> on 2003/02/27 22:45:38 UTC
Support for Eclipse JDT Compiler
I've just committed changes to support using the Eclipse JDT compiler
(http://www.eclipse.org/documentation/html/plugins/org.eclipse.jdt.doc.isv/doc/reference/api/index.html)
as an embedded Java compiler for Cocoon.
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.JstyleFormatter"/-->
<!-- 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.EclipseJavaCompiler"/>
</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.
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.
Regards,
Chris
Re: Support for Eclipse JDT Compiler
Posted by Vadim Gritsenko <va...@verizon.net>.
Stefano Mazzocchi wrote:
> Christopher Oliver wrote:
>
>> Please test it and let me know of any problems.
>
>
> I can report it works like a charm here. It handles also star imports,
> wow!
>
> I think we can blast pizza now.
You can remove pizza jar from the CVS but please leave ability to switch
to pizza for some time (do we still have optional compilation feature?).
Vadim
> What do you think?
RE: Support for Eclipse JDT Compiler
Posted by Marc Fleischeuers <Ma...@ordina.nl>.
> -----Oorspronkelijk bericht-----
> Van: Stefano Mazzocchi [mailto:stefano@apache.org]
> Verzonden: vrijdag 28 februari 2003 1:47
> Aan: cocoon-dev@xml.apache.org
> Onderwerp: Re: Support for Eclipse JDT Compiler
>
>
> Christopher Oliver wrote:
>
> > Please test it and let me know of any problems.
>
> I can report it works like a charm here. It handles also star
> imports, wow!
>
> I think we can blast pizza now.
>
> What do you think?
>
+1
I've been using Christopher's patch since he put it in the mail and only
since then I've been able to use XSPs calling EJBs and other outtathewar
stuff. Many kudos.
Marc
> --
> Stefano Mazzocchi <st...@apache.org>
> Pluralitas non est ponenda sine necessitate [William of Ockham]
> --------------------------------------------------------------------
>
Re: Support for Eclipse JDT Compiler
Posted by Stefano Mazzocchi <st...@apache.org>.
Christopher Oliver wrote:
> Please test it and let me know of any problems.
I can report it works like a charm here. It handles also star imports, wow!
I think we can blast pizza now.
What do you think?
--
Stefano Mazzocchi <st...@apache.org>
Pluralitas non est ponenda sine necessitate [William of Ockham]
--------------------------------------------------------------------
Re: Support for Eclipse JDT Compiler
Posted by Christopher Oliver <re...@verizon.net>.
Stefano Mazzocchi wrote:
> 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/doc/reference/api/index.html)
>> as an embedded Java compiler for Cocoon.
>
>
> yyyyyyyyyyyyyyyyeeeeeeeeeeeeeeeeessssssssssssssss!!!!
>
> You are becoming my personal hero, Chris :)
Thanks, but I really didn't do much. The thanks should really go to the
authors of the eclipse compiler.
>
>>
>
> 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.
>
Done.
Re: Support for Eclipse JDT Compiler
Posted by Stefano Mazzocchi <st...@apache.org>.
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/doc/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.JstyleFormatter"/-->
>
> <!-- 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.EclipseJavaCompiler"/>
>
>
> </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 <st...@apache.org>
Pluralitas non est ponenda sine necessitate [William of Ockham]
--------------------------------------------------------------------