On Jul 8, 2008, at 4:13 PM, Ian Roberts wrote:

Daniel Kulp wrote:
On Jul 7, 2008, at 1:52 PM, Marcus Redeker wrote:
Dan,

Thanks for the clarification. That makes sense.
But this means that the user must have a JDK if he uses the DynamicClient.
Is that somewhere in the docs?
I added it to the docs:
http://cwiki.apache.org/confluence/display/CXF20DOC/Dynamic+Clients
What about the eclipse compiler which is used by some jsp container?
A patch to enable that would be great.   :-)

http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/JDTCompiler.java is the class that does the work in Tomcat.

Based on that I wrote http://gate.svn.sourceforge.net/viewvc/gate/gate/trunk/src/gate/util/compilers/Eclipse.java which has a more useful API (just give it a Map with class names as keys and their Java source code as values), and it would probably not be too hard to adapt that for CXF. The only problem is that GATE (and in particular my class above) is released under the LGPL, so I don't know what's the legal position on merging code based on it into an Apache project?

Short answer: not allowed.   No LGPL stuff allowed.

Long answer: if you wrote it and wrote ALL of it and we able to keep the copyright (does gate require copyright assignment?) you could provide a new version under whatever license you want, perferrably ASL. :-)


Someone else starting from the Tomcat codebase rather than mine wouldn't have that problem.


I think both Ant and Maven also have callouts to eclipse compiler. sxc (sxc.codehaus.org) also does. Probably more. There are definitely options if someone wants to pursue it.

Dan


Ian

--
Ian Roberts               | Department of Computer Science
[EMAIL PROTECTED]  | University of Sheffield, UK

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to