From: peter murray-r. <pm...@ca...> - 2006-12-13 21:34:13
|
At 20:03 13/12/2006, Egon Willighagen wrote: >I checked in only at schema25: Egon, please change anything that you feel suitable and fits the spec. >$ cvs commit -m "Added missing @start and @end attribs (as given in the >CMLSpec article, needs verification by PMR)" array.xsd >Checking in array.xsd; >/cvsroot/cml/schema25/elements/array.xsd,v <-- array.xsd >new revision: 1.3; previous revision: 1.2 >done >$ cvs commit -m "Added missing parameterList and substanceList as possible >childs (as stated in the CMLSpec article)" spectrum.xsd >Checking in spectrum.xsd; >/cvsroot/cml/schema25/elements/spectrum.xsd,v <-- spectrum.xsd >new revision: 1.3; previous revision: 1.2 >done Thanks >$ cvs commit -m "Three more examples from the CMLSpec article" >cvs commit: Examining . >RCS file: /cvsroot/cml/schema25/examples/complex/spectrum5.xml,v >done >Checking in spectrum5.xml; >/cvsroot/cml/schema25/examples/complex/spectrum5.xml,v <-- spectrum5.xml >initial revision: 1.1 >done >RCS file: /cvsroot/cml/schema25/examples/complex/spectrum6.xml,v >done >Checking in spectrum6.xml; >/cvsroot/cml/schema25/examples/complex/spectrum6.xml,v <-- spectrum6.xml >initial revision: 1.1 >done >RCS file:= /cvsroot/cml/schema25/examples/complex/spectrum_and_structure3.xml,v >done >Checking in spectrum_and_structure3.xml; >/cvsroot/cml/schema25/examples/complex/spectrum_and_structure3.xml,v <-- >spectrum_and_structure3.xml >initial revision: 1.1 >done > > > > The main check on correctness of schema is thus: > > * autogenerating JUMBO > > * running JUMBO over examples. > >OK, can't get that working: I'll try tomorrow >$ ant >Buildfile: build.xml > >compileAll: > >compileEuclid: > [echo] COMPILING EUCLID > [javac] Compiling 38 source files >to /home/egonw/var/Projects/SourceForge/CML/jumbo53/bin > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Eucl= idConstants.java:54:=20 > >warning: unmappable character for encoding UTF8 > [javac] char C_POUND =3D '=EF=BF=BD'; > [javac] ^ I removed this - its seems to have come back from sourceforge > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Eucl= idConstants.java:178:=20 > >warning: unmappable character for encoding UTF8 > [javac] String S_POUND =3D "=EF=BF=BD"; > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Eucl= idConstants1.java:63:=20 > >warning: unmappable character for encoding UTF8 > [javac] public final static String S_POUND =3D "=EF=BF=BD"; > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:28:=20 > >package org.xmlcml.cml.base does not exist > [javac] import org.xmlcml.cml.base.CMLRuntimeException; > [javac] ^ > This is obviously a bug. It should be EuclidRuntimeException >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:29:=20 > >package org.xmlcml.cml.base does not exist > [javac] import org.xmlcml.cml.base.CMLUtil; > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:30:=20 > >package org.xmlcml.cml.base.CMLUtil does not exist > [javac] import org.xmlcml.cml.base.CMLUtil.Message; > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:55:=20 > >cannot find symbol > [javac] symbol : class CMLRuntimeException > [javac] location: class org.xmlcml.euclid.Util > [javac] throw new CMLRuntimeException("Cannot create >temporary directory : " > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:75:=20 > >cannot find symbol > [javac] symbol : class CMLRuntimeException > [javac] location: class org.xmlcml.euclid.Util > [javac] throw new CMLRuntimeException("Cannot create >temporary class directory : " > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:131:=20 > >cannot find symbol > [javac] symbol : class CMLRuntimeException > [javac] location: class org.xmlcml.euclid.Util > [javac] throw new CMLRuntimeException("BUG: "+msg+"should= never >throw", e); > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:150:=20 > >cannot find symbol > [javac] symbol : class CMLRuntimeException > [javac] location: class org.xmlcml.euclid.Util > [javac] throw new CMLRuntimeException(Message.NYI.value); > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:150:=20 > >package Message does not exist > [javac] throw new CMLRuntimeException(Message.NYI.value); > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:208:=20 > >cannot find symbol > [javac] symbol : class CMLRuntimeException > [javac] location: class org.xmlcml.euclid.Util > [javac] throw new CMLRuntimeException("No resource= with >name " + filename); > [javac] ^ > >[javac]=20 >/home/egonw/var/Projects/SourceForge/CML/jumbo53/src/org/xmlcml/euclid/Util= .java:222:=20 > >cannot find symbol > [javac] symbol : class CMLUtil > [javac] location: class org.xmlcml.euclid.Util > [javac] File f =3D new File(CMLUtil.class.getClassLoader() > [javac] ^ > [javac] 10 errors > [javac] 3 warnings > >I'll try again. These are all strange >BUILD FAILED > >Where did that fix for those non-ASCII chars go?? Am I working at the right >spot? I think so! > > I know there are one or two glitches (trow was superseded by > > tableRow, but the old example still seems to be in SF). I think that > > start and end attributes may have got deleted - I will check. I will > > also fix the validation failure to throw a fail rather than simply emit > > syserr. > > > > This is the first time I have actively supported both a release jar > > and continued to develop and so it's easy to get muddled. Are there > > any useful tools to help maintain consistency for simple bugfixes? > >Maybe I should revert these changes... please advice... Egon - I suggest you try and make it work at your=20 end. We are clearly fighting CVS (which is why we=20 changed to SVN). The spec defines the schema=20 which defines the examples which validate the code. P. >Egon > >-- >CUBIC >blog: http://chem-bla-ics.blogspot.com/ Peter Murray-Rust Unilever Centre for Molecular Sciences Informatics University of Cambridge, Lensfield Road, Cambridge CB2 1EW, UK +44-1223-763069=20 |