package init
This commit is contained in:
parent
871e65efd2
commit
ba25456b3c
57
jaxme2-0.5.2.pom
Normal file
57
jaxme2-0.5.2.pom
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0"?><project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxme2</artifactId>
|
||||||
|
<name>JaxMe 2</name>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
<url>http://ws.apache.org/jaxme</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
</organization>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmeapi</artifactId>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmexs</artifactId>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmejs</artifactId>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven</id>
|
||||||
|
<name>Apache Maven Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<uniqueVersion>false</uniqueVersion>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<status>deployed</status>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
57
jaxme2-rt-0.5.2.pom
Normal file
57
jaxme2-rt-0.5.2.pom
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0"?><project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxme2-rt</artifactId>
|
||||||
|
<name>JaxMe 2 Runtime</name>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
<url>http://ws.apache.org/jaxme</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
</organization>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmeapi</artifactId>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmexs</artifactId>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmejs</artifactId>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven</id>
|
||||||
|
<name>Apache Maven Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<uniqueVersion>false</uniqueVersion>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<status>deployed</status>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
40
jaxmeapi-0.5.2.pom
Normal file
40
jaxmeapi-0.5.2.pom
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0"?><project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmeapi</artifactId>
|
||||||
|
<name>JaxMe API</name>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
<url>http://ws.apache.org/jaxme</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
</organization>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven</id>
|
||||||
|
<name>Apache Maven Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<uniqueVersion>false</uniqueVersion>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<status>deployed</status>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
40
jaxmejs-0.5.2.pom
Normal file
40
jaxmejs-0.5.2.pom
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0"?><project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmejs</artifactId>
|
||||||
|
<name>JaxMe Java Source framework</name>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
<url>http://ws.apache.org/jaxme</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
</organization>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven</id>
|
||||||
|
<name>Apache Maven Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<uniqueVersion>false</uniqueVersion>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<status>deployed</status>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
47
jaxmepm-0.5.2.pom
Normal file
47
jaxmepm-0.5.2.pom
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?xml version="1.0"?><project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmepm</artifactId>
|
||||||
|
<name>JaxMe Persistence Management</name>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
<url>http://ws.apache.org/jaxme</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
</organization>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxme2</artifactId>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven</id>
|
||||||
|
<name>Apache Maven Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<uniqueVersion>false</uniqueVersion>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<status>deployed</status>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
40
jaxmexs-0.5.2.pom
Normal file
40
jaxmexs-0.5.2.pom
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0"?><project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.apache.ws.jaxme</groupId>
|
||||||
|
<artifactId>jaxmexs</artifactId>
|
||||||
|
<name>JaxMe parser for XML Schema</name>
|
||||||
|
<version>0.5.2</version>
|
||||||
|
<url>http://ws.apache.org/jaxme</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
</organization>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>apache-maven</id>
|
||||||
|
<name>Apache Maven Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<uniqueVersion>false</uniqueVersion>
|
||||||
|
<id>apache-maven-snapshots</id>
|
||||||
|
<name>Apache Maven Snapshot Repository</name>
|
||||||
|
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<status>deployed</status>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
75
ws-jaxme-0.5.2-class-version15.patch
Normal file
75
ws-jaxme-0.5.2-class-version15.patch
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
diff -up ws-jaxme-0.5.2/ant/jm.xml~ ws-jaxme-0.5.2/ant/jm.xml
|
||||||
|
--- ws-jaxme-0.5.2/ant/jm.xml~ 2012-07-27 12:18:59.000000000 +0200
|
||||||
|
+++ ws-jaxme-0.5.2/ant/jm.xml 2012-07-27 16:07:58.924849227 +0200
|
||||||
|
@@ -128,7 +128,7 @@
|
||||||
|
<target name="JM.compile" depends="dirs,JM.precompile">
|
||||||
|
<javac classpathref="jaxme.class.path" debug="${debug}"
|
||||||
|
optimize="${optimize}" destdir="${build.jm.classes}"
|
||||||
|
- source="1.3" target="1.3"
|
||||||
|
+ source="1.5" target="1.5"
|
||||||
|
failonerror="true">
|
||||||
|
<src>
|
||||||
|
<pathelement location="${src.jm}"/>
|
||||||
|
@@ -185,7 +185,7 @@
|
||||||
|
<target name="JM.localtest" depends="JM.generate">
|
||||||
|
<javac debug="${debug}"
|
||||||
|
optimize="${optimize}" destdir="${build.jm.classes}"
|
||||||
|
- source="1.3" target="1.3"
|
||||||
|
+ source="1.5" target="1.5"
|
||||||
|
failonerror="true">
|
||||||
|
<src>
|
||||||
|
<pathelement location="${src.jm}"/>
|
||||||
|
diff -up ws-jaxme-0.5.2/ant/js.xml~ ws-jaxme-0.5.2/ant/js.xml
|
||||||
|
--- ws-jaxme-0.5.2/ant/js.xml~ 2012-07-27 12:18:59.000000000 +0200
|
||||||
|
+++ ws-jaxme-0.5.2/ant/js.xml 2012-07-27 16:08:26.538504008 +0200
|
||||||
|
@@ -71,7 +71,7 @@
|
||||||
|
|
||||||
|
<target name="JS.compile" depends="JS.antlr,init">
|
||||||
|
<javac destdir="${build.js.classes}" debug="${debug}"
|
||||||
|
- source="1.3" target="1.3"
|
||||||
|
+ source="1.5" target="1.5"
|
||||||
|
optimize="${optimize}" classpathref="js.class.path">
|
||||||
|
<src>
|
||||||
|
<pathelement location="${src.js}"/>
|
||||||
|
@@ -160,7 +160,7 @@
|
||||||
|
<javac destdir="${build.js.test.classes}"
|
||||||
|
debug="${debug}" optimize="${optimize}"
|
||||||
|
includes="org/apache/ws/jaxme/js/junit/**/*"
|
||||||
|
- source="1.3" target="1.3"
|
||||||
|
+ source="1.5" target="1.5"
|
||||||
|
classpathref="js.test.path">
|
||||||
|
<src path="${src.js}"/>
|
||||||
|
<src path="${build.js.src}"/>
|
||||||
|
diff -up ws-jaxme-0.5.2/ant/macros.xml~ ws-jaxme-0.5.2/ant/macros.xml
|
||||||
|
--- ws-jaxme-0.5.2/ant/macros.xml~ 2005-07-14 20:32:17.000000000 +0200
|
||||||
|
+++ ws-jaxme-0.5.2/ant/macros.xml 2012-07-27 16:08:37.033372804 +0200
|
||||||
|
@@ -54,7 +54,7 @@
|
||||||
|
<mkdir dir="@{destdir}"/>
|
||||||
|
<javac destdir="@{destdir}" srcdir="@{srcdir}" debug="${debug}"
|
||||||
|
optimize="${optimize}" classpathref="@{classpathref}"
|
||||||
|
- excludes="@{excludes}" source="1.3" target="1.3">
|
||||||
|
+ excludes="@{excludes}" source="1.5" target="1.5">
|
||||||
|
<exclude name="@{java14classes}" unless="have14"/>
|
||||||
|
</javac>
|
||||||
|
</sequential>
|
||||||
|
diff -up ws-jaxme-0.5.2/ant/pm.xml~ ws-jaxme-0.5.2/ant/pm.xml
|
||||||
|
--- ws-jaxme-0.5.2/ant/pm.xml~ 2012-07-27 12:18:59.000000000 +0200
|
||||||
|
+++ ws-jaxme-0.5.2/ant/pm.xml 2012-07-27 16:08:42.912299308 +0200
|
||||||
|
@@ -70,7 +70,7 @@
|
||||||
|
<target name="PM.compile" depends="dirs,JM.all">
|
||||||
|
<javac classpathref="pm.class.path" debug="${debug}"
|
||||||
|
optimize="${optimize}" destdir="${build.pm.classes}"
|
||||||
|
- source="1.3" target="1.3"
|
||||||
|
+ source="1.5" target="1.5"
|
||||||
|
srcdir="${src.pm}">
|
||||||
|
<exclude name="org/apache/ws/jaxme/pm/junit/**/*"/>
|
||||||
|
<exclude name="org/apache/ws/jaxme/**/api4j/*" unless="have.inoapi4j"/>
|
||||||
|
@@ -112,7 +112,7 @@
|
||||||
|
|
||||||
|
<target name="PM.generate.compile" depends="PM.generate">
|
||||||
|
<javac debug="${debug}"
|
||||||
|
- source="1.3" target="1.3"
|
||||||
|
+ source="1.5" target="1.5"
|
||||||
|
optimize="${optimize}" destdir="${build.pm.test.classes}">
|
||||||
|
<classpath>
|
||||||
|
<path refid="pm.class.path"/>
|
||||||
BIN
ws-jaxme-0.5.2-src.tar.gz
Normal file
BIN
ws-jaxme-0.5.2-src.tar.gz
Normal file
Binary file not shown.
93
ws-jaxme-ant-scripts.patch
Normal file
93
ws-jaxme-ant-scripts.patch
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
--- ./ant/js.xml.sav 2005-08-12 03:39:29.000000000 -0400
|
||||||
|
+++ ./ant/js.xml 2007-02-12 12:31:25.000000000 -0500
|
||||||
|
@@ -35,16 +35,16 @@
|
||||||
|
<property name="src.js" location="${basedir}/src/js"/>
|
||||||
|
|
||||||
|
<path id="js.class.path">
|
||||||
|
- <pathelement location="${preqs}/log4j-1.2.8.jar"/>
|
||||||
|
- <pathelement location="${preqs}/ant-1.5.4.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/log4j.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/ant.jar"/>
|
||||||
|
<pathelement location="${preqs}/junit.jar"/>
|
||||||
|
<pathelement location="${preqs}/antlr.jar"/>
|
||||||
|
<pathelement location="${dist}/jaxmeapi-${version}.jar"/>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path id="js.test.path">
|
||||||
|
<path refid="js.class.path"/>
|
||||||
|
- <pathelement location="${preqs}/hsqldb-1.7.1.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/hsqldb.jar"/>
|
||||||
|
<pathelement location="${dist}/jaxmejs-${version}.jar"/>
|
||||||
|
<pathelement location="${build.js.test.classes}"/>
|
||||||
|
</path>
|
||||||
|
@@ -132,6 +132,7 @@
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="JS.generate.version" depends="JS.generate.db">
|
||||||
|
+
|
||||||
|
<versionGenerator
|
||||||
|
driver="${jdbc.driver}"
|
||||||
|
url="${jdbc.url}"
|
||||||
|
--- ./ant/pm.xml.sav 2005-08-12 03:39:29.000000000 -0400
|
||||||
|
+++ ./ant/pm.xml 2007-02-12 12:31:25.000000000 -0500
|
||||||
|
@@ -37,11 +37,11 @@
|
||||||
|
<pathelement location="${dist}/jaxmexs-${version}.jar"/>
|
||||||
|
<pathelement location="${dist}/jaxme2-${version}.jar"/>
|
||||||
|
<pathelement location="${preqs}/beaver.jar"/>
|
||||||
|
- <pathelement location="${preqs}/hsqldb-1.7.1.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/hsqldb.jar"/>
|
||||||
|
<pathelement location="${preqs}/ant.jar"/>
|
||||||
|
- <pathelement location="${preqs}/xml-apis-1.3.02.jar"/>
|
||||||
|
- <pathelement location="${preqs}/xercesImpl.jar"/>
|
||||||
|
- <pathelement location="${preqs}/xmldb-api-20021118.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/xml-commons-apis.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/xerces-j2.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/xmldb-api.jar"/>
|
||||||
|
<!-- These aren't in the CVS and aren't necessary for the build -->
|
||||||
|
<pathelement location="${preqs}/TaminoAPI4J.jar"/>
|
||||||
|
<pathelement location="${preqs}/TaminoJCA.jar"/>
|
||||||
|
--- ./ant/jm.xml.sav 2005-08-12 03:39:29.000000000 -0400
|
||||||
|
+++ ./ant/jm.xml 2007-02-12 12:31:41.000000000 -0500
|
||||||
|
@@ -34,9 +34,10 @@
|
||||||
|
<pathelement location="${dist}/jaxmejs-${version}.jar"/>
|
||||||
|
<pathelement location="${dist}/jaxmexs-${version}.jar"/>
|
||||||
|
<pathelement location="${preqs}/ant.jar"/>
|
||||||
|
- <pathelement location="${preqs}/xml-apis-1.3.02.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/xml-commons-apis.jar"/>
|
||||||
|
<pathelement location="${preqs}/beaver.jar"/>
|
||||||
|
<pathelement location="${preqs}/antlr.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/commons-codec.jar"/>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path id="jaxme.test.path">
|
||||||
|
--- ./ant/xs.xml.sav 2005-08-12 03:39:29.000000000 -0400
|
||||||
|
+++ ./ant/xs.xml 2007-02-12 12:31:25.000000000 -0500
|
||||||
|
@@ -23,7 +23,7 @@
|
||||||
|
<property name="src.xs" location="${basedir}/src/xs"/>
|
||||||
|
|
||||||
|
<path id="xs.class.path">
|
||||||
|
- <pathelement location="${preqs}/xml-apis-1.3.02.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/xml-commons-apis.jar"/>
|
||||||
|
<pathelement location="${preqs}/junit.jar"/>
|
||||||
|
<pathelement location="${dist}/jaxmeapi-${version}.jar"/>
|
||||||
|
</path>
|
||||||
|
@@ -48,7 +48,7 @@
|
||||||
|
<path id="xs.test.path">
|
||||||
|
<path refid="xs.class.path"/>
|
||||||
|
<pathelement location="${dist}/jaxmexs-${version}.jar"/>
|
||||||
|
- <pathelement location="${preqs}/xercesImpl.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/xerces-j2.jar"/>
|
||||||
|
</path>
|
||||||
|
<runtests reportsdir="${build.xs.reports}" classpathref="xs.test.path">
|
||||||
|
<tests>
|
||||||
|
--- ./ant/api.xml.sav 2005-08-12 03:39:29.000000000 -0400
|
||||||
|
+++ ./ant/api.xml 2007-02-12 12:31:25.000000000 -0500
|
||||||
|
@@ -25,7 +25,7 @@
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<path id="api.class.path">
|
||||||
|
- <pathelement location="${preqs}/xml-apis-1.3.02.jar"/>
|
||||||
|
+ <pathelement location="${preqs}/xml-commons-apis.jar"/>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<target name="API.compile" depends="init">
|
||||||
29
ws-jaxme-catalog.patch
Normal file
29
ws-jaxme-catalog.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--- ./ant/docs.xml.sav 2006-05-19 20:00:29.000000000 -0400
|
||||||
|
+++ ./ant/docs.xml 2006-05-19 20:01:01.000000000 -0400
|
||||||
|
@@ -165,7 +165,9 @@
|
||||||
|
force="${force}"
|
||||||
|
style="${docbookxsl.home}/html/chunk.xsl">
|
||||||
|
<xmlcatalog>
|
||||||
|
- <dtd publicid="-//OASIS//DTD DocBook XML V4.1.2//EN" location="${docbook.home}/docbookx.dtd"/>
|
||||||
|
+ <catalogpath>
|
||||||
|
+ <pathelement location="/usr/share/sgml/docbook/xmlcatalog"/>
|
||||||
|
+ </catalogpath>
|
||||||
|
</xmlcatalog>
|
||||||
|
</style>
|
||||||
|
</target>
|
||||||
|
@@ -180,10 +182,12 @@
|
||||||
|
force="${force}"
|
||||||
|
style="${docbookxsl.home}/html/chunk.xsl">
|
||||||
|
<xmlcatalog>
|
||||||
|
- <dtd publicid="-//OASIS//DTD DocBook XML V4.1.2//EN" location="${docbook.home}/docbookx.dtd"/>
|
||||||
|
+ <catalogpath>
|
||||||
|
+ <pathelement location="/usr/share/sgml/docbook/xmlcatalog"/>
|
||||||
|
+ </catalogpath>
|
||||||
|
</xmlcatalog>
|
||||||
|
<factory name="org.apache.xalan.processor.TransformerFactoryImpl"/>
|
||||||
|
</style>
|
||||||
|
</target>
|
||||||
|
</project>
|
||||||
|
-
|
||||||
|
\ No newline at end of file
|
||||||
|
+
|
||||||
11
ws-jaxme-docs_xml.patch
Normal file
11
ws-jaxme-docs_xml.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- ./ant/docs.xml.sav 2006-05-19 19:59:02.000000000 -0400
|
||||||
|
+++ ./ant/docs.xml 2006-05-19 19:59:07.000000000 -0400
|
||||||
|
@@ -69,7 +69,7 @@
|
||||||
|
<fail>Missing DocBook, terminating.</fail>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
- <target name="Docs.all" depends="javadoc,docbook.html,old.releases,forrest,replace"
|
||||||
|
+ <target name="Docs.all" depends="javadoc,docbook.html,old.releases"
|
||||||
|
description="Generates the documentation"/>
|
||||||
|
|
||||||
|
<target name="javadoc" depends="all"
|
||||||
176
ws-jaxme-jdk16.patch
Normal file
176
ws-jaxme-jdk16.patch
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
--- ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java.orig 2008-07-08 11:31:43.000000000 -0400
|
||||||
|
+++ ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java 2008-07-09 05:54:23.000000000 -0400
|
||||||
|
@@ -21,16 +21,22 @@
|
||||||
|
import java.io.OutputStreamWriter;
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
|
import java.io.Writer;
|
||||||
|
+import java.io.File;
|
||||||
|
|
||||||
|
import javax.xml.bind.JAXBException;
|
||||||
|
import javax.xml.bind.MarshalException;
|
||||||
|
import javax.xml.bind.Marshaller;
|
||||||
|
import javax.xml.bind.PropertyException;
|
||||||
|
+import javax.xml.bind.attachment.AttachmentMarshaller;
|
||||||
|
+import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||||
|
import javax.xml.namespace.QName;
|
||||||
|
import javax.xml.transform.Result;
|
||||||
|
import javax.xml.transform.dom.DOMResult;
|
||||||
|
import javax.xml.transform.sax.SAXResult;
|
||||||
|
import javax.xml.transform.stream.StreamResult;
|
||||||
|
+import javax.xml.stream.XMLStreamWriter;
|
||||||
|
+import javax.xml.stream.XMLEventWriter;
|
||||||
|
+import javax.xml.validation.Schema;
|
||||||
|
|
||||||
|
import org.apache.ws.jaxme.*;
|
||||||
|
import org.apache.ws.jaxme.JMElement;
|
||||||
|
@@ -430,4 +436,55 @@
|
||||||
|
public Node getNode(java.lang.Object contentTree) throws JAXBException {
|
||||||
|
throw new UnsupportedOperationException("JaxMe doesn't support live DOM views");
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+// added to support JDK6
|
||||||
|
+
|
||||||
|
+ public void marshal(Object jaxbElement, File output) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void marshal(Object jaxbElement, XMLStreamWriter writer) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void marshal(Object jaxbElement, XMLEventWriter writer) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setAdapter(XmlAdapter adapter) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setAdapter(Class type, XmlAdapter adapter) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public XmlAdapter getAdapter(Class type) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setAttachmentMarshaller(AttachmentMarshaller am) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public AttachmentMarshaller getAttachmentMarshaller() {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setSchema(Schema schema) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public Schema getSchema() {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setListener(Listener listener) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public Listener getListener() {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
--- ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java.orig 2008-07-08 11:34:58.000000000 -0400
|
||||||
|
+++ ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java 2008-07-09 05:52:39.000000000 -0400
|
||||||
|
@@ -26,6 +26,10 @@
|
||||||
|
import javax.xml.bind.JAXBException;
|
||||||
|
import javax.xml.bind.UnmarshalException;
|
||||||
|
import javax.xml.bind.UnmarshallerHandler;
|
||||||
|
+import javax.xml.bind.JAXBElement;
|
||||||
|
+import javax.xml.bind.Unmarshaller;
|
||||||
|
+import javax.xml.bind.attachment.AttachmentUnmarshaller;
|
||||||
|
+import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||||
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
|
import javax.xml.parsers.SAXParser;
|
||||||
|
import javax.xml.parsers.SAXParserFactory;
|
||||||
|
@@ -33,6 +37,9 @@
|
||||||
|
import javax.xml.transform.dom.DOMSource;
|
||||||
|
import javax.xml.transform.sax.SAXSource;
|
||||||
|
import javax.xml.transform.stream.StreamSource;
|
||||||
|
+import javax.xml.stream.XMLStreamReader;
|
||||||
|
+import javax.xml.stream.XMLEventReader;
|
||||||
|
+import javax.xml.validation.Schema;
|
||||||
|
|
||||||
|
import org.apache.ws.jaxme.JMUnmarshaller;
|
||||||
|
import org.apache.ws.jaxme.util.DOMSerializer;
|
||||||
|
@@ -177,4 +184,71 @@
|
||||||
|
public UnmarshallerHandler getUnmarshallerHandler() {
|
||||||
|
return new JMUnmarshallerHandlerImpl(this);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+// added to support JDK6
|
||||||
|
+
|
||||||
|
+ public Object unmarshal(Reader reader) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public JAXBElement unmarshal(Node node, Class declaredType) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public JAXBElement unmarshal(Source source, Class declaredType) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public Object unmarshal(XMLStreamReader reader) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public JAXBElement unmarshal(XMLStreamReader reader, Class declaredType) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public Object unmarshal(XMLEventReader reader) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public JAXBElement unmarshal(XMLEventReader reader, Class declaredType) throws JAXBException {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setSchema(Schema schema) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public Schema getSchema() {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setAdapter(XmlAdapter adapter) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setAdapter(Class type, XmlAdapter adapter) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public XmlAdapter getAdapter(Class type) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setAttachmentUnmarshaller(AttachmentUnmarshaller au) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public AttachmentUnmarshaller getAttachmentUnmarshaller() {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void setListener(Listener listener) {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public Listener getListener() {
|
||||||
|
+ throw new UnsupportedOperationException();
|
||||||
|
+ }
|
||||||
|
}
|
||||||
388
ws-jaxme-remove-xmldb.patch
Normal file
388
ws-jaxme-remove-xmldb.patch
Normal file
@ -0,0 +1,388 @@
|
|||||||
|
diff -rauN ws-jaxme-0.5.2.old/build.xml ws-jaxme-0.5.2/build.xml
|
||||||
|
--- ws-jaxme-0.5.2.old/build.xml 2006-10-24 17:38:01.000000000 -0400
|
||||||
|
+++ ws-jaxme-0.5.2/build.xml 2012-02-08 10:29:55.000000000 -0500
|
||||||
|
@@ -35,7 +35,6 @@
|
||||||
|
<include name="prerequisites/log4j*.jar"/>
|
||||||
|
<include name="prerequisites/xercesImpl.jar"/>
|
||||||
|
<include name="prerequisites/xml-apis-1.3.02.jar"/>
|
||||||
|
- <include name="prerequisites/xmldb-api-*.jar"/>
|
||||||
|
</tarfileset>
|
||||||
|
<tarfileset prefix="ws-jaxme-${version}/docs" dir="${build.site}"/>
|
||||||
|
<tarfileset prefix="ws-jaxme-${version}/lib" dir="dist">
|
||||||
|
diff -rauN ws-jaxme-0.5.2.old/src/pm/org/apache/ws/jaxme/pm/xmldb/package.html ws-jaxme-0.5.2/src/pm/org/apache/ws/jaxme/pm/xmldb/package.html
|
||||||
|
--- ws-jaxme-0.5.2.old/src/pm/org/apache/ws/jaxme/pm/xmldb/package.html 2004-07-23 03:18:09.000000000 -0400
|
||||||
|
+++ ws-jaxme-0.5.2/src/pm/org/apache/ws/jaxme/pm/xmldb/package.html 1969-12-31 19:00:00.000000000 -0500
|
||||||
|
@@ -1,31 +0,0 @@
|
||||||
|
-<!--
|
||||||
|
-
|
||||||
|
- Copyright 2004 The Apache Software Foundation.
|
||||||
|
-
|
||||||
|
- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
- you may not use this file except in compliance with the License.
|
||||||
|
- You may obtain a copy of the License at
|
||||||
|
-
|
||||||
|
- http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
-
|
||||||
|
- Unless required by applicable law or agreed to in writing, software
|
||||||
|
- distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
- See the License for the specific language governing permissions and
|
||||||
|
- limitations under the License.
|
||||||
|
-
|
||||||
|
--->
|
||||||
|
-<html>
|
||||||
|
- <head>
|
||||||
|
- <title>
|
||||||
|
-Package Documentation for org.apache.ws.jaxme.pm.xmldb Package
|
||||||
|
- </title>
|
||||||
|
-</head>
|
||||||
|
- <body bgcolor="white">
|
||||||
|
- <p>
|
||||||
|
-Contains an implementation of
|
||||||
|
-the <code>JaxMe</code> persistence management framework
|
||||||
|
-targeting the XML::DB API.
|
||||||
|
- </p>
|
||||||
|
-</body>
|
||||||
|
-</html>
|
||||||
|
diff -rauN ws-jaxme-0.5.2.old/src/pm/org/apache/ws/jaxme/pm/xmldb/XmlDbPM.java ws-jaxme-0.5.2/src/pm/org/apache/ws/jaxme/pm/xmldb/XmlDbPM.java
|
||||||
|
--- ws-jaxme-0.5.2.old/src/pm/org/apache/ws/jaxme/pm/xmldb/XmlDbPM.java 2005-03-04 05:41:53.000000000 -0500
|
||||||
|
+++ ws-jaxme-0.5.2/src/pm/org/apache/ws/jaxme/pm/xmldb/XmlDbPM.java 1969-12-31 19:00:00.000000000 -0500
|
||||||
|
@@ -1,338 +0,0 @@
|
||||||
|
-/*
|
||||||
|
- * Copyright 2003, 2004 The Apache Software Foundation
|
||||||
|
- *
|
||||||
|
- * Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
- * you may not use this file except in compliance with the License.
|
||||||
|
- * You may obtain a copy of the License at
|
||||||
|
- *
|
||||||
|
- * http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
- *
|
||||||
|
- * Unless required by applicable law or agreed to in writing, software
|
||||||
|
- * distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
- * See the License for the specific language governing permissions and
|
||||||
|
- * limitations under the License.
|
||||||
|
-
|
||||||
|
- */
|
||||||
|
-package org.apache.ws.jaxme.pm.xmldb;
|
||||||
|
-
|
||||||
|
-import java.lang.reflect.InvocationTargetException;
|
||||||
|
-import java.util.HashMap;
|
||||||
|
-import java.util.Iterator;
|
||||||
|
-import java.util.Map;
|
||||||
|
-
|
||||||
|
-import javax.xml.bind.Element;
|
||||||
|
-import javax.xml.bind.JAXBException;
|
||||||
|
-import javax.xml.bind.Marshaller;
|
||||||
|
-
|
||||||
|
-import org.apache.ws.jaxme.JMManager;
|
||||||
|
-import org.apache.ws.jaxme.JMUnmarshallerHandler;
|
||||||
|
-import org.apache.ws.jaxme.Observer;
|
||||||
|
-import org.apache.ws.jaxme.PMException;
|
||||||
|
-import org.apache.ws.jaxme.PMParams;
|
||||||
|
-import org.apache.ws.jaxme.pm.impl.PMIdImpl;
|
||||||
|
-import org.xml.sax.ContentHandler;
|
||||||
|
-import org.xmldb.api.DatabaseManager;
|
||||||
|
-import org.xmldb.api.base.Collection;
|
||||||
|
-import org.xmldb.api.base.Database;
|
||||||
|
-import org.xmldb.api.base.ResourceIterator;
|
||||||
|
-import org.xmldb.api.base.ResourceSet;
|
||||||
|
-import org.xmldb.api.base.XMLDBException;
|
||||||
|
-import org.xmldb.api.modules.XMLResource;
|
||||||
|
-import org.xmldb.api.modules.XPathQueryService;
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-/** This is a persistence manager for the XML::DB interface. In other
|
||||||
|
- * words, using this persistence manager you may read documents from a
|
||||||
|
- * database via the XML::DB API or write them into the database using the
|
||||||
|
- * same API.<br>
|
||||||
|
- * This persistence manager is generic: The same manager works fine for
|
||||||
|
- * any JAXB element.
|
||||||
|
- */
|
||||||
|
-public class XmlDbPM extends PMIdImpl {
|
||||||
|
- private Class driverClass;
|
||||||
|
- private String collection;
|
||||||
|
- private String user;
|
||||||
|
- private String password;
|
||||||
|
- private Map databaseProperties;
|
||||||
|
- private String xPathQueryService = "XPathQueryService";
|
||||||
|
- private String xPathQueryServiceVersion = "1.0";
|
||||||
|
-
|
||||||
|
- /** Creates a new instance of <code>XmlDbPM</code>.
|
||||||
|
- */
|
||||||
|
- public XmlDbPM() {
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- public void init(JMManager pManager) throws JAXBException {
|
||||||
|
- super.init(pManager);
|
||||||
|
-
|
||||||
|
- String driverClassName = pManager.getProperty("xmldb.driver");
|
||||||
|
- if (driverClassName == null || driverClassName.length() == 0) {
|
||||||
|
- throw new JAXBException("Missing property: 'xmldb.driver' (driver class name)");
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- String coll = pManager.getProperty("xmldb.collection");
|
||||||
|
- if (coll == null || coll.length() == 0) {
|
||||||
|
- throw new JAXBException("Missing property: 'xmldb.collection' (collection name)");
|
||||||
|
- }
|
||||||
|
- setCollection(coll);
|
||||||
|
- setUser(pManager.getProperty("xmldb.user"));
|
||||||
|
- setPassword(pManager.getProperty("xmldb.password"));
|
||||||
|
-
|
||||||
|
- for (int i = 0; ; i++) {
|
||||||
|
- String p = "xmldb.property." + i;
|
||||||
|
- String v = pManager.getProperty(p);
|
||||||
|
- if (v == null) {
|
||||||
|
- break;
|
||||||
|
- }
|
||||||
|
- int offset = v.indexOf('=');
|
||||||
|
- if (offset == -1) {
|
||||||
|
- throw new JAXBException("Invalid database property value " + p + ": Expected name=value, got " + v);
|
||||||
|
- }
|
||||||
|
- String name = v.substring(0, offset);
|
||||||
|
- String value = v.substring(offset+1);
|
||||||
|
- if (databaseProperties != null) {
|
||||||
|
- databaseProperties = new HashMap();
|
||||||
|
- }
|
||||||
|
- databaseProperties.put(name, value);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- Class c;
|
||||||
|
- try {
|
||||||
|
- c = Class.forName(driverClassName);
|
||||||
|
- } catch (ClassNotFoundException e) {
|
||||||
|
- try {
|
||||||
|
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
|
||||||
|
- if (cl == null) {
|
||||||
|
- cl = getClass().getClassLoader();
|
||||||
|
- }
|
||||||
|
- c = cl.loadClass(driverClassName);
|
||||||
|
- } catch (ClassNotFoundException f) {
|
||||||
|
- throw new JAXBException("Failed to load driver class " + driverClassName, e);
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- setDriverClass(c);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Returns the collection name.
|
||||||
|
- */
|
||||||
|
- public String getCollection() {
|
||||||
|
- return collection;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Sets the collection name.
|
||||||
|
- */
|
||||||
|
- public void setCollection(String pCollection) {
|
||||||
|
- collection = pCollection;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Returns the driver class.
|
||||||
|
- */
|
||||||
|
- public Class getDriverClass() {
|
||||||
|
- return driverClass;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Sets the driver class.
|
||||||
|
- */
|
||||||
|
- public void setDriverClass(Class pDriverClass) {
|
||||||
|
- driverClass = pDriverClass;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Returns the password.
|
||||||
|
- */
|
||||||
|
- public String getPassword() {
|
||||||
|
- return password;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Sets the password.
|
||||||
|
- */
|
||||||
|
- public void setPassword(String pPassword) {
|
||||||
|
- password = pPassword;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Returns the users name.
|
||||||
|
- */
|
||||||
|
- public String getUser() {
|
||||||
|
- return user;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Sets the users name.
|
||||||
|
- */
|
||||||
|
- public void setUser(String pUser) {
|
||||||
|
- user = pUser;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Returns the name of the XPathQueryService. Defaults to
|
||||||
|
- * "XPathQueryService".
|
||||||
|
- */
|
||||||
|
- public String getXPathQueryService() {
|
||||||
|
- return xPathQueryService;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Sets the name of the XPathQueryService. Defaults to
|
||||||
|
- * "XPathQueryService".
|
||||||
|
- */
|
||||||
|
- public void setXPathQueryService(String pXpathQueryService) {
|
||||||
|
- xPathQueryService = pXpathQueryService;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Returns the version of the XPathQueryService. Defaults to
|
||||||
|
- * "1.0".
|
||||||
|
- */
|
||||||
|
- public String getXPathQueryServiceVersion() {
|
||||||
|
- return xPathQueryServiceVersion;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Sets the version of the XPathQueryService. Defaults to
|
||||||
|
- * "1.0".
|
||||||
|
- */
|
||||||
|
- public void setXPathQueryServiceVersion(String pXpathQueryServiceVersion) {
|
||||||
|
- xPathQueryServiceVersion = pXpathQueryServiceVersion;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /** Returns the database collection by invoking
|
||||||
|
- * {@link DatabaseManager#getCollection(String)}.
|
||||||
|
- */
|
||||||
|
- protected Collection getXmlDbCollection()
|
||||||
|
- throws XMLDBException, IllegalAccessException, InstantiationException {
|
||||||
|
- Database database = (Database) getDriverClass().newInstance();
|
||||||
|
- if (databaseProperties != null) {
|
||||||
|
- for (Iterator iter = databaseProperties.entrySet().iterator(); iter.hasNext(); ) {
|
||||||
|
- Map.Entry entry = (Map.Entry) iter.next();
|
||||||
|
- database.setProperty((String) entry.getKey(), (String) entry.getValue());
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- DatabaseManager.registerDatabase(database);
|
||||||
|
- return DatabaseManager.getCollection(getCollection());
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
-
|
||||||
|
- /* (non-Javadoc)
|
||||||
|
- * @see org.apache.ws.jaxme.PM#select(org.apache.ws.jaxme.Observer, java.lang.String, org.apache.ws.jaxme.PMParams)
|
||||||
|
- */
|
||||||
|
- public void select(Observer pObserver, String pQuery, PMParams pPlaceHolderArgs) throws JAXBException {
|
||||||
|
- if (pPlaceHolderArgs != null) {
|
||||||
|
- pQuery = super.parseQuery(pQuery, pPlaceHolderArgs);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- if (pQuery == null) {
|
||||||
|
- throw new IllegalArgumentException("A query must be specified");
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- Collection col;
|
||||||
|
- try {
|
||||||
|
- col = getXmlDbCollection();
|
||||||
|
- XPathQueryService service = (XPathQueryService) col.getService(getXPathQueryService(),
|
||||||
|
- getXPathQueryServiceVersion());
|
||||||
|
- ResourceSet result = service.query(pQuery);
|
||||||
|
- if (result != null) {
|
||||||
|
- ResourceIterator i = result.getIterator();
|
||||||
|
- if (i.hasMoreResources()) {
|
||||||
|
- JMUnmarshallerHandler handler = (JMUnmarshallerHandler) getManager().getFactory().createUnmarshaller().getUnmarshallerHandler();
|
||||||
|
- handler.setObserver(pObserver);
|
||||||
|
- while(i.hasMoreResources()) {
|
||||||
|
- XMLResource r = (XMLResource) i.nextResource();
|
||||||
|
- r.getContentAsSAX(handler);
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- } catch (XMLDBException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (IllegalAccessException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (InstantiationException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /* (non-Javadoc)
|
||||||
|
- * @see org.apache.ws.jaxme.PM#insert(javax.xml.bind.Element)
|
||||||
|
- */
|
||||||
|
- public void insert(Element pElement) throws PMException {
|
||||||
|
- try {
|
||||||
|
- Collection col = getXmlDbCollection();
|
||||||
|
- String id = getId(pElement);
|
||||||
|
- XMLResource resource = (XMLResource) col.createResource(id, XMLResource.RESOURCE_TYPE);
|
||||||
|
- ContentHandler ch = resource.setContentAsSAX();
|
||||||
|
- Marshaller marshaller = getManager().getFactory().createMarshaller();
|
||||||
|
- marshaller.marshal(pElement, ch);
|
||||||
|
- col.storeResource(resource);
|
||||||
|
- } catch (XMLDBException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (IllegalAccessException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (InstantiationException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (NoSuchMethodException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (InvocationTargetException e) {
|
||||||
|
- throw new PMException(e.getTargetException());
|
||||||
|
- } catch (JAXBException e) {
|
||||||
|
- if (e instanceof PMException) {
|
||||||
|
- throw (PMException) e;
|
||||||
|
- } else {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /* (non-Javadoc)
|
||||||
|
- * @see org.apache.ws.jaxme.PM#update(javax.xml.bind.Element)
|
||||||
|
- */
|
||||||
|
- public void update(Element pElement) throws PMException {
|
||||||
|
- try {
|
||||||
|
- Collection col = getXmlDbCollection();
|
||||||
|
- String id = getId(pElement);
|
||||||
|
- XMLResource resource = (XMLResource) col.getResource(id);
|
||||||
|
- ContentHandler ch = resource.setContentAsSAX();
|
||||||
|
- Marshaller marshaller = getManager().getFactory().createMarshaller();
|
||||||
|
- marshaller.marshal(pElement, ch);
|
||||||
|
- col.storeResource(resource);
|
||||||
|
- } catch (XMLDBException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (IllegalAccessException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (InstantiationException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (NoSuchMethodException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (InvocationTargetException e) {
|
||||||
|
- throw new PMException(e.getTargetException());
|
||||||
|
- } catch (JAXBException e) {
|
||||||
|
- if (e instanceof PMException) {
|
||||||
|
- throw (PMException) e;
|
||||||
|
- } else {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- /* (non-Javadoc)
|
||||||
|
- * @see org.apache.ws.jaxme.PM#delete(javax.xml.bind.Element)
|
||||||
|
- */
|
||||||
|
- public void delete(Element pElement) throws PMException {
|
||||||
|
- try {
|
||||||
|
- Collection col = getXmlDbCollection();
|
||||||
|
- String id = getId(pElement);
|
||||||
|
- XMLResource resource = (XMLResource) col.createResource(id, XMLResource.RESOURCE_TYPE);
|
||||||
|
- col.removeResource(resource);
|
||||||
|
- } catch (XMLDBException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (IllegalAccessException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (InstantiationException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (InvocationTargetException e) {
|
||||||
|
- throw new PMException(e.getTargetException());
|
||||||
|
- } catch (NoSuchMethodException e) {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- } catch (JAXBException e) {
|
||||||
|
- if (e instanceof PMException) {
|
||||||
|
- throw (PMException) e;
|
||||||
|
- } else {
|
||||||
|
- throw new PMException(e);
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
-}
|
||||||
11
ws-jaxme-system-dtd.patch
Normal file
11
ws-jaxme-system-dtd.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- ws-jaxme/src/documentation/manual/jaxme2.xml.orig 2008-08-15 13:21:21.882649810 -0400
|
||||||
|
+++ ws-jaxme/src/documentation/manual/jaxme2.xml 2008-08-15 13:21:44.684648635 -0400
|
||||||
|
@@ -17,7 +17,7 @@
|
||||||
|
|
||||||
|
-->
|
||||||
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||||
|
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
|
||||||
|
+ "@DOCBOOKX_DTD@" [
|
||||||
|
<!ENTITY address SYSTEM "address.xml">
|
||||||
|
<!ENTITY addressxsd SYSTEM "addressxsd.xml">
|
||||||
|
<!ENTITY faq SYSTEM "faq.xml">
|
||||||
28
ws-jaxme-use-commons-codec.patch
Normal file
28
ws-jaxme-use-commons-codec.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- ./src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java.sav 2007-02-12 12:33:45.000000000 -0500
|
||||||
|
+++ ./src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java 2007-02-12 12:35:20.000000000 -0500
|
||||||
|
@@ -18,8 +18,7 @@
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
-import sun.misc.BASE64Decoder;
|
||||||
|
-import sun.misc.BASE64Encoder;
|
||||||
|
+import org.apache.commons.codec.binary.Base64;
|
||||||
|
|
||||||
|
|
||||||
|
/** A utility class for working with base64 encoding.
|
||||||
|
@@ -37,13 +36,13 @@
|
||||||
|
* base64 encoded byte array.
|
||||||
|
*/
|
||||||
|
public static byte[] decode(String pValue) throws IOException {
|
||||||
|
- return (new BASE64Decoder()).decodeBuffer(pValue);
|
||||||
|
+ return (new Base64()).decode(pValue.getBytes());
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Converts the base64 encoded byte array <code>pValue</code>
|
||||||
|
* into a string.
|
||||||
|
*/
|
||||||
|
public static String encode(byte[] pValue) {
|
||||||
|
- return (new BASE64Encoder()).encode(pValue);
|
||||||
|
+ return new String((new Base64()).encodeBase64(pValue));
|
||||||
|
}
|
||||||
|
}
|
||||||
108
ws-jaxme.spec
Normal file
108
ws-jaxme.spec
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
%bcond_without hsqldb
|
||||||
|
%global base_name jaxme
|
||||||
|
Name: ws-jaxme
|
||||||
|
Version: 0.5.2
|
||||||
|
Release: 1
|
||||||
|
Epoch: 0
|
||||||
|
Summary: Open source implementation of JAXB
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://ws.apache.org/
|
||||||
|
Source0: http://archive.apache.org/dist/ws/jaxme/source/%{name}-%{version}-src.tar.gz
|
||||||
|
Source2: https://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxme2/%{version}/jaxme2-%{version}.pom
|
||||||
|
Source3: https://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxme2-rt/%{version}/jaxme2-rt-%{version}.pom
|
||||||
|
Source4: https://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmeapi/%{version}/jaxmeapi-%{version}.pom
|
||||||
|
Source5: https://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmejs/%{version}/jaxmejs-%{version}.pom
|
||||||
|
Source6: https://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmepm/%{version}/jaxmepm-%{version}.pom
|
||||||
|
Source7: https://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmexs/%{version}/jaxmexs-%{version}.pom
|
||||||
|
Patch0: ws-jaxme-docs_xml.patch
|
||||||
|
Patch1: ws-jaxme-catalog.patch
|
||||||
|
Patch2: ws-jaxme-system-dtd.patch
|
||||||
|
Patch3: ws-jaxme-jdk16.patch
|
||||||
|
Patch4: ws-jaxme-ant-scripts.patch
|
||||||
|
Patch5: ws-jaxme-use-commons-codec.patch
|
||||||
|
Patch6: ws-jaxme-remove-xmldb.patch
|
||||||
|
Patch7: ws-jaxme-0.5.2-class-version15.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: javapackages-local ant >= 0:1.6 ant-apache-resolver antlr apache-commons-codec
|
||||||
|
BuildRequires: junit
|
||||||
|
%if %{with hsqldb}
|
||||||
|
BuildRequires: hsqldb1
|
||||||
|
%endif
|
||||||
|
BuildRequires: log4j12 xalan-j2 xerces-j2 docbook-style-xsl docbook-dtds
|
||||||
|
Requires: antlr apache-commons-codec junit
|
||||||
|
%if %{with hsqldb}
|
||||||
|
Requires: hsqldb1
|
||||||
|
%endif
|
||||||
|
Requires: log4j12 xalan-j2 xerces-j2 jpackage-utils
|
||||||
|
%description
|
||||||
|
A Java/XML binding compiler takes as input a schema
|
||||||
|
description (in most cases an XML schema, but it may
|
||||||
|
be a DTD, a RelaxNG schema, a Java class inspected
|
||||||
|
via reflection, or a database schema). The output is
|
||||||
|
a set of Java classes:
|
||||||
|
* A Java bean class matching the schema description.
|
||||||
|
(If the schema was obtained via Java reflection,
|
||||||
|
the original Java bean class.)
|
||||||
|
* Read a conforming XML document and convert it into
|
||||||
|
the equivalent Java bean.
|
||||||
|
* Vice versa, marshal the Java bean back into the
|
||||||
|
original XML document.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package manual
|
||||||
|
Summary: Documents for %{name}
|
||||||
|
%description manual
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
find . -name "*.jar" -print -delete
|
||||||
|
%patch0 -p0
|
||||||
|
%patch1 -p0
|
||||||
|
%patch2 -p1
|
||||||
|
DOCBOOKX_DTD=`xmlcatalog %{_datadir}/sgml/docbook/xmlcatalog "-//OASIS//DTD DocBook XML V4.5//EN" 2>/dev/null`
|
||||||
|
sed -i 's|@DOCBOOKX_DTD@|$DOCBOOKX_DTD|' src/documentation/manual/jaxme2.xml
|
||||||
|
%patch3 -p1
|
||||||
|
%patch4 -b .sav
|
||||||
|
%patch5 -b .sav
|
||||||
|
%patch6 -p1
|
||||||
|
%patch7 -p1
|
||||||
|
sed -i 's/\r//' NOTICE
|
||||||
|
sed -i "s|log4j.jar|log4j12-1.2.17.jar|" ant/js.xml
|
||||||
|
sed -i "s|hsqldb.jar|hsqldb1-1.jar|" ant/js.xml ant/pm.xml
|
||||||
|
%if %{without hsqldb}
|
||||||
|
rm -r src/js/org/apache/ws/jaxme/sqls/hsqldb
|
||||||
|
%pom_xpath_remove 'target[@name="JS.generate"]/@depends' ant/js.xml
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CLASSPATH=$(build-classpath antlr hsqldb1-1 commons-codec junit log4j12-1.2.17 xerces-j2 xalan-j2 xalan-j2-serializer)
|
||||||
|
ant all Docs.all \
|
||||||
|
-Dbuild.sysclasspath=first \
|
||||||
|
-Ddocbook.home=%{_datadir}/sgml/docbook \
|
||||||
|
-Ddocbookxsl.home=%{_datadir}/sgml/docbook/xsl-stylesheets
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_file ':{*}' %{base_name}/@1 %{base_name}/ws-@1
|
||||||
|
for jar in jaxme2 jaxme2-rt jaxmeapi jaxmejs jaxmepm jaxmexs; do
|
||||||
|
%mvn_artifact %{_sourcedir}/${jar}-%{version}.pom dist/${jar}-%{version}.jar
|
||||||
|
done
|
||||||
|
%mvn_install -J build/docs/src/documentation/content/apidocs
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
|
%files manual
|
||||||
|
%license LICENSE NOTICE
|
||||||
|
%doc build/docs/src/documentation/content/manual
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 20 2020 maminjie <maminjie1@huawei.com> - 0.5.2-1
|
||||||
|
- package init
|
||||||
4
ws-jaxme.yaml
Normal file
4
ws-jaxme.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: svn
|
||||||
|
src_repo: http://svn.apache.org/repos/asf/webservices/archive/jaxme
|
||||||
|
tag_prefix: "^R"
|
||||||
|
seperator: "_"
|
||||||
Loading…
x
Reference in New Issue
Block a user