From 73495e3408a5bd1fad6223113d79f2b96f22eae4 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 00:08:20 +0100 Subject: [PATCH] rebuilt with java-gcj-compat support [release 1.2-4mamba;Fri Mar 25 2011] --- README.md | 11 + java-msv-1.2-build_xmls.patch | 179 +++++++++ java-msv-1.2-disable-crimson.patch | 23 ++ java-msv-1.2-jdk15.patch | 36 ++ java-msv-1.2-noclasspathsinmanifests.patch | 26 ++ java-msv.spec | 420 +++++++++++++++++++++ msv-1.2-20090226.svn.DateType.java | 32 ++ 7 files changed, 727 insertions(+) create mode 100644 java-msv-1.2-build_xmls.patch create mode 100644 java-msv-1.2-disable-crimson.patch create mode 100644 java-msv-1.2-jdk15.patch create mode 100644 java-msv-1.2-noclasspathsinmanifests.patch create mode 100644 java-msv.spec create mode 100644 msv-1.2-20090226.svn.DateType.java diff --git a/README.md b/README.md index 0705bce..0c6dd3b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ # java-msv +The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate XML documents against several kinds of XML schemata. It supports RELAX NG, +RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1. This latest (version 1.2) release includes several bug fixes and adds better conformance to RELAX NG/W3C XML standards and JAXP masquerading. + +This tool is: + +* A command line tool that can read XML documents and validate them against a schema (DTD/RELAX/TREX/W3C). +If an error is found, error messages are provided. +* A library that can be incorporated into Java applications as a validator. + +See the included commandline.html file for details on how to use MSV from the command line. See the included developer.html file for details on how to use it as a library. + diff --git a/java-msv-1.2-build_xmls.patch b/java-msv-1.2-build_xmls.patch new file mode 100644 index 0000000..a247b0b --- /dev/null +++ b/java-msv-1.2-build_xmls.patch @@ -0,0 +1,179 @@ +--- ./xsdlib/build.xml.sav 2005-07-22 19:19:12.000000000 -0400 ++++ ./xsdlib/build.xml 2007-02-15 09:58:46.000000000 -0500 +@@ -51,21 +51,19 @@ + +- +- +- +- ++ ++ ++ ++ ++ ++ + + + +@@ -160,15 +158,16 @@ + sourcepath="dist/src" + destdir="dist/javadoc" + windowtitle="Sun XML Datatypes Library" ++ classpath="${xerces.jar}:${relaxngDatatype.jar}:${junit.jar}:${jdom.jar}:${isorelax.jar}:${xalan.jar}" + public="yes" + author="yes" + > +- +- +- ++ ++ ++ ++ ++ ++ + + + +--- ./generator/build.xml.sav 2003-07-18 18:09:42.000000000 -0400 ++++ ./generator/build.xml 2007-02-15 09:59:06.000000000 -0500 +@@ -142,12 +142,18 @@ + public="yes" + author="yes" + > +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +--- ./msv/build.xml.sav 2005-07-22 19:19:11.000000000 -0400 ++++ ./msv/build.xml 2007-02-15 09:59:45.000000000 -0500 +@@ -73,19 +73,17 @@ + sourcepath="./src" + classpath="${java.class.path}" + destdir="javadoc" +- windowtitle="Internal Use Only --- Sun Multi Schema XML Validator" ++ windowtitle="Sun Multi Schema XML Validator" + public="yes" + author="yes" + overview="src/com/sun/msv/overview.html" + > +- +- +- +- ++ ++ ++ ++ ++ ++ + + + +@@ -207,6 +205,7 @@ + > + + ++ + + + +@@ -215,14 +214,13 @@ + if you have encountered error around here, + please remove all offline="true" and packagelistLoc="...". + --> +- +- +- +- ++ ++ ++ ++ ++ ++ ++ + + + +--- ./relames/build.xml.sav 2005-07-22 19:19:11.000000000 -0400 ++++ ./relames/build.xml 2007-02-15 09:59:59.000000000 -0500 +@@ -75,14 +75,34 @@ + + + ++ manifest="dist/src/META-INF/MANIFEST.MF"> + + + + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/java-msv-1.2-disable-crimson.patch b/java-msv-1.2-disable-crimson.patch new file mode 100644 index 0000000..e4345fe --- /dev/null +++ b/java-msv-1.2-disable-crimson.patch @@ -0,0 +1,23 @@ +--- ./relames/src/com/sun/msv/schematron/verifier/RelmesVerifier.java.orig 2007-02-14 15:38:34.000000000 -0500 ++++ ./relames/src/com/sun/msv/schematron/verifier/RelmesVerifier.java 2007-02-14 15:39:44.000000000 -0500 +@@ -94,13 +94,13 @@ + } catch( Throwable t ) { + ; // ignore any error. it wasn't Xerces. + } +- try { +- // Crimson? +- ((org.apache.crimson.tree.ElementNode2)super.parent) +- .setIdAttributeName(atts.getQName(i)); +- } catch( Throwable t ) { +- ; // ignore any error. it wasn't Crimson. +- } ++// try { ++// // Crimson? ++// ((org.apache.crimson.tree.ElementNode2)super.parent) ++// .setIdAttributeName(atts.getQName(i)); ++// } catch( Throwable t ) { ++// ; // ignore any error. it wasn't Crimson. ++// } + } + } + } diff --git a/java-msv-1.2-jdk15.patch b/java-msv-1.2-jdk15.patch new file mode 100644 index 0000000..95763ae --- /dev/null +++ b/java-msv-1.2-jdk15.patch @@ -0,0 +1,36 @@ +--- generator/src/com/sun/msv/generator/DataTypeGeneratorImpl.java 2005-06-14 17:08:35+0000 1.20 ++++ generator/src/com/sun/msv/generator/DataTypeGeneratorImpl.java 2006-08-14 17:19:11+0000 1.21 +@@ -1,5 +1,5 @@ + /* +- * @(#)$Id: DataTypeGeneratorImpl.java,v 1.20 2005/06/14 17:08:35 kohsuke Exp $ ++ * @(#)$Id: DataTypeGeneratorImpl.java,v 1.21 2006/08/14 17:19:11 kohsuke Exp $ + * + * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. + * +@@ -45,6 +45,7 @@ + import com.sun.msv.datatype.xsd.XSDatatypeImpl; + import com.sun.msv.datatype.xsd.XmlNames; + import com.sun.msv.datatype.xsd.Base64BinaryType; ++import com.sun.msv.datatype.xsd.ByteType; + import com.sun.xml.util.XmlChars; + + /** +@@ -158,7 +159,7 @@ + if( dt.getClass()==UnsignedIntType.class ) + return Long.toString( random.nextLong()&0x7FFFFFFF ); + +- if( dt.getClass()==Byte.class ) return Long.toString( random.nextInt(256) ); ++ if( dt.getClass()== ByteType.class ) return Long.toString( random.nextInt(256) ); + if( dt.getClass()==ShortType.class ) return Long.toString( (short)random.nextInt() ); + if( dt.getClass()==IntType.class ) return Long.toString( random.nextInt() ); + if( dt.getClass()==LongType.class ) return Long.toString( random.nextLong() ); +@@ -196,7 +197,7 @@ + for( int i=0; i<10; i++ ) { + try { + return dti.convertToLexicalValue(items[random.nextInt(items.length)],context); +- } catch( Exception x ) { ; } ++ } catch( Exception x ) { } + } + } + + diff --git a/java-msv-1.2-noclasspathsinmanifests.patch b/java-msv-1.2-noclasspathsinmanifests.patch new file mode 100644 index 0000000..967d63e --- /dev/null +++ b/java-msv-1.2-noclasspathsinmanifests.patch @@ -0,0 +1,26 @@ +diff -ur generator/MANIFEST.MF generator/MANIFEST.MF +--- generator/MANIFEST.MF 2007-02-16 11:25:22.000000000 -0500 ++++ generator/MANIFEST.MF 2007-02-16 11:26:31.000000000 -0500 +@@ -1,5 +1,2 @@ + Manifest-Version: 1.0 + Main-Class: com.sun.msv.generator.Driver +-Created-By: 1.2.2 (Sun Microsystems Inc.) +-Class-Path: msv.jar xsdlib.jar relaxngDatatype.jar isorelax.jar xercesImpl.jar xmlParserAPIs.jar +- +diff -ur msv/MANIFEST.MF msv/MANIFEST.MF +--- msv/MANIFEST.MF 2007-02-16 11:27:27.000000000 -0500 ++++ msv/MANIFEST.MF 2007-02-16 11:26:20.000000000 -0500 +@@ -1,4 +1,2 @@ + Manifest-Version: 1.0 + Main-Class: com.sun.msv.driver.textui.Driver +-Created-By: 1.2.2 (Sun Microsystems Inc.) +-Class-Path: xercesImpl.jar isorelax.jar relaxngDatatype.jar xsdlib.jar xmlParserAPIs.jar resolver.jar +diff -ur rngconverter/MANIFEST.MF rngconverter/MANIFEST.MF +--- rngconverter/MANIFEST.MF 2007-02-16 11:26:55.000000000 -0500 ++++ rngconverter/MANIFEST.MF 2007-02-16 11:27:05.000000000 -0500 +@@ -1,5 +1,2 @@ + Manifest-Version: 1.0 + Main-Class: com.sun.msv.writer.relaxng.Driver +-Created-By: 1.2.2 (Sun Microsystems Inc.) +-Class-Path: msv.jar xerces.jar +- diff --git a/java-msv.spec b/java-msv.spec new file mode 100644 index 0000000..0955038 --- /dev/null +++ b/java-msv.spec @@ -0,0 +1,420 @@ +%define javahome %{_jvmdir}/jdk +Name: java-msv +Version: 1.2 +Release: 4mamba +Summary: Sun Multi-Schema Validator +Group: Development/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://msv.dev.java.net +# cvs -d :pserver:guest@cvs.dev.java.net:/cvs export -r msv-20050722 msv-%{version}-20090226.svn +# tar zcf msv-%{version}-20090226.svn.tar.gz msv-%{version}-20090226.svn +Source0: msv-%{version}-20090226.svn.tar.gz +# cvs -d :pserver:guest@cvs.dev.java.net:/cvs co -r msv-20060821 msv/xsdlib/src/com/sun/msv/datatype/xsd/DateType.java +# mv DateType.java msv-%{version}-20090226.svn.DateType.java +Source1: msv-%{version}-20090226.svn.DateType.java +Patch0: java-msv-1.2-build_xmls.patch +Patch1: java-msv-1.2-disable-crimson.patch +Patch2: java-msv-1.2-noclasspathsinmanifests.patch +Patch3: java-msv-1.2-jdk15.patch +License: BSD +BuildRequires: apache-ant +BuildRequires: apache-ant-junit +%if "%{stage1}" != "1" +BuildRequires: apache-ant-regexp +BuildRequires: apache-ant-trax +BuildRequires: apache-tomcat5-servletapi5 +BuildRequires: java-dom +BuildRequires: java-saxon6 +%endif +BuildRequires: java-isorelax +BuildRequires: java-isorelax-javadoc +BuildRequires: java-relaxngDatatype +BuildRequires: java-relaxngDatatype-javadoc +BuildRequires: java-junit3 +BuildRequires: jpackage-utils +BuildRequires: xalan-j2 +BuildRequires: xerces-j2 +BuildRequires: xerces-j2-javadoc-impl +BuildRequires: xerces-j2-javadoc-xni +BuildRequires: xerces-j2-javadoc-apis +BuildRequires: xml-commons-apis +BuildRequires: xml-commons-resolver +Requires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate XML documents against several kinds of XML schemata. It supports RELAX NG, +RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1. This latest (version 1.2) release includes several bug fixes and adds better conformance to RELAX NG/W3C XML standards and JAXP masquerading. + +This tool is: + +* A command line tool that can read XML documents and validate them against a schema (DTD/RELAX/TREX/W3C). +If an error is found, error messages are provided. +* A library that can be incorporated into Java applications as a validator. + +See the included commandline.html file for details on how to use MSV from the command line. See the included developer.html file for details on how to use it as a library. + +%package msv +Summary: MSV proper +Group: Development/Libraries/Java +%if "%{stage1}" != "1" +Requires: apache-tomcat5-servletapi5 +%endif +Requires: java-isorelax +Requires: java-relaxngDatatype +Requires: xerces-j2 +Requires: xml-commons-apis +Requires: xml-commons-resolver +Requires: java-msv-xsdlib +Requires: jpackage-utils + +%description msv +Sun Multi-Schema Validator + +%package msv-javadoc +Summary: Javadoc for MSV proper +Group: Documentation +Requires: jpackage-utils + +%description msv-javadoc +Sun Multi-Schema Validator + +%package demo +Summary: Samples for msv +Group: Documentation +Requires: java-msv-msv +Requires: java-msv-xsdlib +Requires: jpackage-utils + +%description demo +Sun Multi-Schema Validator + +%package relames +Summary: Relames +Group: Development/Libraries/Java +Requires: java-isorelax +Requires: java-relaxngDatatype +Requires: xalan-j2 +Requires: xerces-j2 +Requires: xml-commons-apis +Requires: xml-commons-resolver +Requires: java-msv-msv +Requires: java-msv-xsdlib +Requires: jpackage-utils + +%description relames +Sun Multi-Schema Validator + +%package relames-javadoc +Summary: Javadoc for relames +Group: Documentation +Requires: jpackage-utils + +%description relames-javadoc +Sun Multi-Schema Validator + +%package rngconv +Summary: Rngconv +Group: Development/Libraries/Java +Requires: java-isorelax +Requires: java-relaxngDatatype +Requires: xerces-j2 +Requires: xml-commons-apis +Requires: java-msv-msv +Requires: java-msv-xsdlib +Requires: jpackage-utils + +%description rngconv +Sun Multi-Schema Validator + +%package xmlgen +Summary: XmlGen +Group: Development/Libraries/Java +Requires: java-isorelax +Requires: java-relaxngDatatype +Requires: xml-commons-apis +Requires: xerces-j2 +Requires: java-msv-msv +Requires: java-msv-xsdlib +Requires: jpackage-utils + +%description xmlgen +Sun Multi-Schema Validator + +%package xmlgen-javadoc +Summary: Javadoc for xmlgen +Group: Documentation +Requires: jpackage-utils + +%description xmlgen-javadoc +Sun Multi-Schema Validator + +%package xsdlib +Summary: Xsdlib +Group: Development/Libraries/Java +Requires: java-relaxngDatatype +Requires: jpackage-utils + +%description xsdlib +Sun Multi-Schema Validator + +%package xsdlib-javadoc +Summary: Javadoc for xsdlib +Group: Documentation +Requires: jpackage-utils + +%description xsdlib-javadoc +Sun Multi-Schema Validator + +%package manual +Summary: Documents for msv +Group: Documentation +Requires: jpackage-utils + +%description manual +Sun Multi-Schema Validator + +%prep +%setup -q -n msv-%{version}-20090226.svn +cp %{S:1} xsdlib/src/com/sun/msv/datatype/xsd/DateType.java + +for j in $(find . -name "*.jar"); do + mv $j $j.no +done + + + +for m in $(find . -name MANIFEST.MF); do + sed -e '/^Class-path:/d' $m > tempf + cp tempf $m +done +rm tempf + +# fix encoding +iconv msv/doc/copyright.txt -f iso-8859-1 -t utf-8 -o msv/doc/copyright.txt.utf8 +mv msv/doc/copyright.txt.utf8 msv/doc/copyright.txt +iconv relames/doc/copyright.txt -f iso-8859-1 -t utf-8 -o relames/doc/copyright.txt.utf8 +mv relames/doc/copyright.txt.utf8 relames/doc/copyright.txt +iconv rngconverter/doc/copyright.txt -f iso-8859-1 -t utf-8 -o rngconverter/doc/copyright.txt.utf8 +mv rngconverter/doc/copyright.txt.utf8 rngconverter/doc/copyright.txt +iconv generator/doc/copyright.txt -f iso-8859-1 -t utf-8 -o generator/doc/copyright.txt.utf8 +mv generator/doc/copyright.txt.utf8 generator/doc/copyright.txt +iconv xsdlib/doc/copyright.txt -f iso-8859-1 -t utf-8 -o xsdlib/doc/copyright.txt.utf8 +mv xsdlib/doc/copyright.txt.utf8 xsdlib/doc/copyright.txt + +%patch0 -p0 -b .sav +%patch1 -p0 -b .sav2 +%patch2 +%patch3 -p0 -b .sav + +%build +pushd shared/lib + ln -sf $(build-classpath ant-1.7.1) ant.jar + ln -sf $(build-classpath relaxngDatatype) relaxngDatatype.jar + ln -sf $(build-classpath isorelax) isorelax.jar +%if "%{stage1}" != "1" + ln -sf $(build-classpath ant/ant-trax) ant-trax.jar +# ln -sf $(build-classpath crimson) crimson.jar +# ln -sf $(build-classpath dom4j) dom4j.jar + ln -sf $(build-classpath jdom-1.1) jdom.jar + ln -sf $(build-classpath saxon) saxon.jar + ln -sf $(build-classpath servletapi5) servlet.jar +%endif + ln -sf $(build-classpath junit-3.8.2) junit.jar + ln -sf $(build-classpath xml-commons-resolver) resolver.jar + ln -sf $(build-classpath xercesImpl) xercesImpl.jar +# ln -sf $(build-classpath javacc) javacc.jar + ln -sf $(build-classpath xalan-j2) xalan.jar + ln -sf $(build-classpath xml-commons-apis) xmlParserAPIs.jar +popd +export JAVA_HOME=%javahome +%if "%{stage1}" != "1" +export CLASSPATH=$(build-classpath xalan-j2 xercesImpl ant/ant-apache-regexp ant/ant-junit ant/ant-trax xml-commons-resolver) +%else +mv shared/lib/servlet.jar.no shared/lib/servlet.jar +export CLASSPATH=$(build-classpath xalan-j2 xercesImpl ant/ant-junit xml-commons-resolver) +%endif +ant release + +# cleans classes served for prebuild +pushd msv/dist/examples + find . -name "*.class" -exec rm -f {} \; +popd + +pushd xsdlib/dist/examples + find . -name "*.class" -exec rm -f {} \; +popd + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_javadir} + +install -m 644 package/msv.jar \ + %{buildroot}%{_javadir}/msv-msv-%{version}.jar +install -m 644 package/relames.jar \ + %{buildroot}%{_javadir}/msv-relames-%{version}.jar +install -m 644 package/rngconv.jar \ + %{buildroot}%{_javadir}/msv-rngconv-%{version}.jar +install -m 644 package/xmlgen.jar \ + %{buildroot}%{_javadir}/msv-xmlgen-%{version}.jar +install -m 644 package/xsdlib.jar \ + %{buildroot}%{_javadir}/msv-xsdlib-%{version}.jar +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}.jar; do + ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` + done +) + +( + cd %{buildroot}%{_javadir} + ln -sf msv-msv.jar msv-strict.jar + ln -sf msv-xsdlib.jar xsdlib.jar +) + + +mkdir -p %{buildroot}%{_javadocdir}/msv +mkdir -p %{buildroot}%{_javadocdir}/msv/msv +cp -pr msv/dist/javadoc/* \ + %{buildroot}%{_javadocdir}/msv/msv +mkdir -p %{buildroot}%{_javadocdir}/msv/relames +cp -pr relames/dist/javadoc/* \ + %{buildroot}%{_javadocdir}/msv/relames +mkdir -p %{buildroot}%{_javadocdir}/msv/xmlgen +cp -pr generator/dist/javadoc/* \ + %{buildroot}%{_javadocdir}/msv/xmlgen +mkdir -p %{buildroot}%{_javadocdir}/msv/xsdlib +cp -pr xsdlib/dist/javadoc/* \ + %{buildroot}%{_javadocdir}/msv/xsdlib + + +mkdir -p %{buildroot}%{_docdir}/msv +mkdir -p %{buildroot}%{_docdir}/msv/msv +install -m 644 msv/doc/* \ + %{buildroot}%{_docdir}/msv/msv +rm %{buildroot}%{_docdir}/msv/msv/Apache-LICENSE-1.1.txt +mkdir -p %{buildroot}%{_docdir}/msv/relames +install -m 644 relames/doc/* \ + %{buildroot}%{_docdir}/msv/relames +rm %{buildroot}%{_docdir}/msv/relames/Apache-LICENSE-1.1.txt +mkdir -p %{buildroot}%{_docdir}/msv/rngconv +install -m 644 rngconverter/doc/* \ + %{buildroot}%{_docdir}/msv/rngconv +rm %{buildroot}%{_docdir}/msv/rngconv/Apache-LICENSE-1.1.txt +mkdir -p %{buildroot}%{_docdir}/msv/xmlgen +install -m 644 generator/doc/* \ + %{buildroot}%{_docdir}/msv/xmlgen +rm %{buildroot}%{_docdir}/msv/xmlgen/Apache-LICENSE-1.1.txt +mkdir -p %{buildroot}%{_docdir}/msv/xsdlib +install -m 644 xsdlib/doc/* \ + %{buildroot}%{_docdir}/msv/xsdlib +rm %{buildroot}%{_docdir}/msv/xsdlib/Apache-LICENSE-1.1.txt + + +mkdir -p %{buildroot}%{_datadir}/msv-%{version}/msv +cp -pr msv/dist/examples/* %{buildroot}%{_datadir}/msv-%{version}/msv +mkdir -p %{buildroot}%{_datadir}/msv-%{version}/xsdlib +cp -pr xsdlib/dist/examples/* %{buildroot}%{_datadir}/msv-%{version}/xsdlib + + +#export CLASSPATH=$(build-classpath gnu-crypto) +#%{_bindir}/aot-compile-rpm + + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files msv +%defattr(-,root,root) +%{_javadir}/msv-msv-%{version}.jar +%{_javadir}/msv-msv.jar +%{_javadir}/msv-strict.jar +%dir %{_docdir}/msv/msv +%doc %{_docdir}/msv/msv/license.txt +%doc %{_docdir}/msv/msv/copyright.txt + +%files msv-javadoc +%defattr(-,root,root) +%dir %{_javadocdir}/msv +%doc %{_javadocdir}/msv/msv + +%files demo +%defattr(-,root,root) +%dir %{_datadir}/msv-%{version} +%{_datadir}/msv-%{version}/msv +%{_datadir}/msv-%{version}/xsdlib + +%files relames +%defattr(-,root,root) +%{_javadir}/msv-relames-%{version}.jar +%{_javadir}/msv-relames.jar +%doc %{_docdir}/msv/relames/copyright.txt + +%files relames-javadoc +%defattr(-,root,root) +%doc %{_javadocdir}/msv/relames + +%files rngconv +%defattr(-,root,root) +%{_javadir}/msv-rngconv-%{version}.jar +%{_javadir}/msv-rngconv.jar +%doc %{_docdir}/msv/rngconv/license.txt +%doc %{_docdir}/msv/rngconv/copyright.txt + +%files xmlgen +%defattr(-,root,root) +%{_javadir}/msv-xmlgen-%{version}.jar +%{_javadir}/msv-xmlgen.jar +%doc %{_docdir}/msv/xmlgen/license.txt +%doc %{_docdir}/msv/xmlgen/copyright.txt + +%files xmlgen-javadoc +%defattr(-,root,root) +%doc %{_javadocdir}/msv/xmlgen + +%files xsdlib +%defattr(-,root,root) +%{_javadir}/msv-xsdlib-%{version}.jar +%{_javadir}/msv-xsdlib.jar +%{_javadir}/xsdlib.jar +%doc %{_docdir}/msv/xsdlib/license.txt +%doc %{_docdir}/msv/xsdlib/copyright.txt + +%files xsdlib-javadoc +%defattr(-,root,root) +%doc %{_javadocdir}/msv/xsdlib + +%files manual +%defattr(-,root,root) +%dir %{_docdir}/msv/msv +%doc %{_docdir}/msv/msv/ChangeLog.txt +%doc %{_docdir}/msv/msv/*.html +%doc %{_docdir}/msv/msv/*.gif +%doc %{_docdir}/msv/msv/README.txt +%dir %{_docdir}/msv/relames +%doc %{_docdir}/msv/relames/README.txt +%dir %{_docdir}/msv/rngconv +%doc %{_docdir}/msv/rngconv/README.txt +%dir %{_docdir}/msv/xmlgen +%doc %{_docdir}/msv/xmlgen/*.html +%doc %{_docdir}/msv/xmlgen/README.txt +%dir %{_docdir}/msv/xsdlib +%doc %{_docdir}/msv/xsdlib/*.html +%doc %{_docdir}/msv/xsdlib/README.txt + + +%changelog +* Fri Mar 25 2011 gil 1.2-4mamba +- rebuilt with java-gcj-compat support + +* Thu Dec 02 2010 gil 1.2-3mamba +- rebuilt devel + +* Mon Mar 09 2009 gil 1.2-2mamba +- rebuilt + +* Thu Feb 26 2009 gil 1.2-1mamba +- package created by autospec diff --git a/msv-1.2-20090226.svn.DateType.java b/msv-1.2-20090226.svn.DateType.java new file mode 100644 index 0000000..53f745d --- /dev/null +++ b/msv-1.2-20090226.svn.DateType.java @@ -0,0 +1,32 @@ +/* + * @(#)$Id: DateType.java,v 1.1 2006/08/14 17:08:07 kohsuke Exp $ + * + * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. + * + * This software is the proprietary information of Sun Microsystems, Inc. + * Use is subject to license terms. + * + */ +package com.sun.msv.datatype.xsd; + + +/** + * "date" type. + * + * type of the value object is {@link com.sun.msv.datatype.xsd.datetime.IDateTimeValueType}. + * See http://www.w3.org/TR/xmlschema-2/#dateTime for the spec + * + * @author Kohsuke KAWAGUCHI + */ +public class DateType extends DateTimeBaseType { + + public static final DateType theInstance = new DateType(); + private DateType() { super("date"); } + + protected final String getFormat() { + return "%Y-%M-%D%z"; + } + + // serialization support + private static final long serialVersionUID = 1; +}