Re: [mojo-dev] xml-maven-plugin using JDK6

2008-07-18 Thread Mark Hobson
2008/7/18 Jochen Wiedmann <[EMAIL PROTECTED]>: > On Fri, Jul 18, 2008 at 12:02 PM, Mark Hobson <[EMAIL PROTECTED]> wrote: >> I've patched the plugin to use reflection for the new JAXP 1.4 method >> so it now compiles under JDK5. Do you want me to commit the changes, >> or I can attach them to an i

Re: [mojo-dev] xml-maven-plugin using JDK6

2008-07-18 Thread Jochen Wiedmann
On Fri, Jul 18, 2008 at 12:02 PM, Mark Hobson <[EMAIL PROTECTED]> wrote: > I've patched the plugin to use reflection for the new JAXP 1.4 method > so it now compiles under JDK5. Do you want me to commit the changes, > or I can attach them to an issue if you'd like to review it? Go on. -- Look

Re: [mojo-dev] xml-maven-plugin using JDK6

2008-07-18 Thread Mark Hobson
2008/7/18 Jochen Wiedmann <[EMAIL PROTECTED]>: > Sun suggests using the endorsed directories. As the JAXP API must > typically be in the boot classpath (otherwise, it won't override the > JRE's), I can't think of another possibility. I've patched the plugin to use reflection for the new JAXP 1.4 m

Re: [mojo-dev] xml-maven-plugin using JDK6

2008-07-18 Thread Jochen Wiedmann
On Fri, Jul 18, 2008 at 11:36 AM, Mark Hobson <[EMAIL PROTECTED]> wrote: > I understand the distinction, although with today's ever-growing > monolithic JDK the two tend to go hand in hand (roll on JSR-277 :). > Since JAXP is in the JDK how can we provide an alternative version > that is 'endorsed

Re: [mojo-dev] xml-maven-plugin using JDK6

2008-07-18 Thread Mark Hobson
2008/7/17 Jochen Wiedmann <[EMAIL PROTECTED]>: > First of all, if there's a problem, that's most possibly my fault. > Nvertheless, please do not mismatch the JDK with the JAXP > implementation. Even JDK 1.4 can use a current implementation of JAXP, > assuming a proper classpath. I understand the d

Re: [mojo-dev] xml-maven-plugin using JDK6

2008-07-17 Thread Jochen Wiedmann
On Thu, Jul 17, 2008 at 2:13 PM, Trygve Laugstøl <[EMAIL PROTECTED]> wrote: >> This was added to fix MOJO-777. What's the consensus on the minimum >> JDK requirements for mojos? The vast majority seem to be written for >> JDK1.4 and slowly moving to JDK5. Is JDK6 acceptable, or should >> reflec

Re: [mojo-dev] xml-maven-plugin using JDK6

2008-07-17 Thread Trygve Laugstøl
Mark Hobson wrote: I've just tried to build the xml-maven-plugin under Java5 and noticed that TransformMojo uses a method introduced in JDK6: TransformerFactory.newInstance(String factoryClassName, ClassLoader classLoader) This was added to fix MOJO-777. What's the consensus on the minimum

[mojo-dev] xml-maven-plugin using JDK6

2008-07-17 Thread Mark Hobson
I've just tried to build the xml-maven-plugin under Java5 and noticed that TransformMojo uses a method introduced in JDK6: TransformerFactory.newInstance(String factoryClassName, ClassLoader classLoader) This was added to fix MOJO-777. What's the consensus on the minimum JDK requirements for