One more observation: applying the attached patch to build.xml produces
an xmlpublic.jar that satisfies the simple compilation of
samples/Validation in my original message. I can also compile all my own
code against it.

This may not be the way you would want to actually fix the issue, but
just for information....

Regards,
Peter.

On Thu, 2012-07-19 at 11:13 +0100, Peter Keller wrote:
> On Wed, 2012-07-18 at 15:07 -0700, Cezar Andrei wrote:
> 
> > I think you're right. Peter, do you know if
> > org.apache.xmlbeans.xml.stream.* classes are the only ones required or
> > do you have a list of missing classes?
> 
> The contents of org.apache.xmlbeans.xml.stream are the only missing ones
> that my own code needs, and I have not attempted to find any others.
> Perhaps the best thing to do (so as not to hold up the release of 2.6.0
> too much) would be to add org.apache.xmlbeans.xml.stream into
> xmlpublic.jar for the 2.6.0 release, now that we know it should be
> there. A more comprehensive review of the contents of xmlpublic.jar
> could be done for a future (2.6.1?) release.
> 
> On a related note, if we are targetting jdk6, maybe we don't need
> jsr173_1.0_api any longer?
> 
> Regards,
> Peter.
> 
> > 
> > Cezar
> > 
> > ----- Original Message -----
> > From: pkel...@globalphasing.com
> > To: dev@xmlbeans.apache.org
> > Sent: Friday, July 13, 2012 8:49:04 AM GMT -06:00 US/Canada Central
> > Subject: Which methods are meant to be supported by xmlpublic.jar?
> > 
> > Dear all,
> > 
> > The announcement of 2.6.0-RC1 reminds me that I had meant to ask about 
> > something that I found in version 2.5.0, but still exists in 2.6.0-RC1, 
> > namely that xmlpublic.jar does not support at least some of the public 
> > XmlObject.Factory methods. Is this deliberate? Going by 
> > <http://wiki.apache.org/xmlbeans/XmlBeansFaq#whatJars> it seems to me that 
> > compiling code that uses these methods against xmlpublic.jar should succeed.
> > 
> > For example, after building the XMLBeans distribution, the following 
> > commands:
> > 
> >    cd samples/Validation
> >    ant build
> >    javac -cp $XMLBEANS_HOME/build/lib/xmlpublic.jar:build/classes \
> >       src/org/apache/xmlbeans/samples/validation/Validation.java
> > 
> > output:
> > 
> > src/org/apache/xmlbeans/samples/validation/Validation.java:178: cannot 
> > access org.apache.xmlbeans.xml.stream.XMLInputStream
> > class file for org.apache.xmlbeans.xml.stream.XMLInputStream not found
> >              xml = XmlObject.Factory.parse(xmlFile, validationOptions);
> >                                     ^
> > 1 error
> > 
> > Thanks for any comments/clarification.
> > 
> > Regards,
> > Peter.
> > 
> 

-- 
Peter Keller                                     Tel.: +44 (0)1223 353033
Global Phasing Ltd.,                             Fax.: +44 (0)1223 366889
Sheraton House,
Castle Park,
Cambridge CB3 0AX
United Kingdom

--- build.xml.orig	2012-07-19 13:01:35.335096047 +0100
+++ build.xml	2012-07-19 13:07:34.118842995 +0100
@@ -541,11 +541,10 @@
 
     <!-- xmlpublic target ============================================== -->
 
-    <target name="xmlpublic.classes" depends="dirs, xmlinputstream.classes, jsr173_1.0.jars">
+    <target name="xmlpublic.classes" depends="dirs, jsr173_1.0.jars">
         <mkdir dir="build/classes/xmlpublic"/>
-        <javac srcdir="src/xmlpublic" destdir="build/classes/xmlpublic" source="${javac.source}" target="${javac.target}" debug="on">
+        <javac srcdir="src/xmlpublic" sourcepath="src/xmlinputstream" destdir="build/classes/xmlpublic" source="${javac.source}" target="${javac.target}" debug="on">
             <classpath>
-                <pathelement location="build/classes/xmlinputstream"/>
                 <pathelement location="build/lib/jsr173_1.0_api.jar"/>
             </classpath>
         </javac>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: dev-h...@xmlbeans.apache.org

Reply via email to