You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ma...@apache.org on 2005/08/19 16:10:29 UTC

svn commit: r233486 - in /webservices/jaxme/branches/MAVEN: ./ common-build/ projects/api/xdocs/ projects/jm/ projects/jm/src/main/java/org/apache/ws/jaxme/examples/misc/address/ projects/jm/src/test/java/org/apache/ws/jaxme/examples/ projects/jm/src/t...

Author: mac
Date: Fri Aug 19 07:10:04 2005
New Revision: 233486

URL: http://svn.apache.org/viewcvs?rev=233486&view=rev
Log:
JaxMeCore is now mavenized. Created the maven-plugin project with Marcus Crafter's contribution

Added:
    webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/examples/
    webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/examples/misc/
    webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/examples/misc/address/
      - copied from r233455, webservices/jaxme/branches/MAVEN/projects/jm/src/main/java/org/apache/ws/jaxme/examples/misc/address/
    webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/junit/PrintParse.java
    webservices/jaxme/branches/MAVEN/projects/mp/
    webservices/jaxme/branches/MAVEN/projects/mp/LICENSE.txt
    webservices/jaxme/branches/MAVEN/projects/mp/README.txt
    webservices/jaxme/branches/MAVEN/projects/mp/plugin.jelly
    webservices/jaxme/branches/MAVEN/projects/mp/plugin.properties
    webservices/jaxme/branches/MAVEN/projects/mp/project.properties
    webservices/jaxme/branches/MAVEN/projects/mp/project.xml
Removed:
    webservices/jaxme/branches/MAVEN/maven.xml
    webservices/jaxme/branches/MAVEN/projects/jm/src/main/java/org/apache/ws/jaxme/examples/misc/address/AddressCreator.java
    webservices/jaxme/branches/MAVEN/projects/jm/src/main/java/org/apache/ws/jaxme/examples/misc/address/AddressPrinter.java
    webservices/jaxme/branches/MAVEN/src/test/README
    webservices/jaxme/branches/MAVEN/src/test/java/org/apache/ws/jaxme/junit/PrintParse.java
    webservices/jaxme/branches/MAVEN/src/test/jaxb/.cvsignore
Modified:
    webservices/jaxme/branches/MAVEN/common-build/project.properties
    webservices/jaxme/branches/MAVEN/common-build/project.xml
    webservices/jaxme/branches/MAVEN/common-build/xdocs.properties
    webservices/jaxme/branches/MAVEN/project.properties
    webservices/jaxme/branches/MAVEN/project.xml
    webservices/jaxme/branches/MAVEN/projects/api/xdocs/index.xml
    webservices/jaxme/branches/MAVEN/projects/jm/maven.xml
    webservices/jaxme/branches/MAVEN/projects/jm/project.xml
    webservices/jaxme/branches/MAVEN/projects/js/src/main/java/org/apache/ws/jaxme/js/pattern/Ant.java
    webservices/jaxme/branches/MAVEN/projects/xs/xdocs/generic.xml
    webservices/jaxme/branches/MAVEN/projects/xs/xdocs/index.xml

Modified: webservices/jaxme/branches/MAVEN/common-build/project.properties
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/common-build/project.properties?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/common-build/project.properties (original)
+++ webservices/jaxme/branches/MAVEN/common-build/project.properties Fri Aug 19 07:10:04 2005
@@ -17,7 +17,7 @@
 # -------------------------------------------------------------------
 # P R O J E C T  P R O P E R T I E S
 # -------------------------------------------------------------------
-maven.xdoc.jsl=../../common-build/site.jsl
+maven.xdoc.jsl=file:/${basedir}/../../common-build/site.jsl
 maven.xdoc.bundle.src=${basedir}/../../common-build/
 maven.xdoc.bundle=xdocs
 maven.xdoc.locale.default=en
@@ -52,11 +52,7 @@
 
 # Display the version the web site is documenting
 #maven.xdoc.version = 
- 
-#------------------------------------------------------------------
-# H T M L 2 X D O C   P R O P E R T I E S
-#------------------------------------------------------------------
-maven.html2xdoc.enable=true
+
 
 #------------------------------------------------------------------
 # P D F   P R O P E R T I E S
@@ -67,5 +63,5 @@
 
 # jdk1.3 compat
 maven.junit.fork=no
-maven.test.failure.ignore=true
+maven.test.failure.ignore=false
 

Modified: webservices/jaxme/branches/MAVEN/common-build/project.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/common-build/project.xml?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/common-build/project.xml (original)
+++ webservices/jaxme/branches/MAVEN/common-build/project.xml Fri Aug 19 07:10:04 2005
@@ -38,8 +38,9 @@
     <siteAddress>http://ws.apache.org/jaxme/</siteAddress>
     <distributionSite>http://ws.apache.org/jaxme/downloads.cgi</distributionSite>
     <repository>
-        <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:ws-jaxme</connection>
-        <url>http://cvs.apache.org/viewcvs.cgi/ws-jaxme/</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/jaxme/</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservices/jaxme/</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/webservices/jaxme/</url>
     </repository>
     <versions>
         <version>
@@ -78,7 +79,7 @@
             <name>jaxme-dev@ws.apache.org</name>
             <subscribe>jaxme-dev-subscribe@ws.apache.org</subscribe>
             <unsubscribe>jaxme-dev-unsubscribe@ws.apache.org</unsubscribe>
-            <archive>http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=172</archive>
+            <archive>http://mail-archives.apache.org/mod_mbox/ws-jaxme-dev/</archive>
         </mailingList>
     </mailingLists>
     <developers>
@@ -116,7 +117,6 @@
         </license>
     </licenses>
     <build>
-        <defaultGoal>jar:jar</defaultGoal>
         <nagEmailAddress>jaxme-dev@ws.apache.org</nagEmailAddress>
         <sourceDirectory>src/main/java</sourceDirectory>
         <unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>
@@ -131,8 +131,8 @@
         <report>maven-changes-plugin</report>
         <report>maven-junit-report-plugin</report>
         <!--
-        <report>maven-javadoc-plugin</report>
-        <report>maven-findbugs-plugin</report>
+        <report>maven-javadoc-plugin</report>
+        <report>maven-findbugs-plugin</report>
         <report>maven-linkcheck-plugin</report>
         <report>maven-checkstyle-plugin</report>
         <report>maven-jcoverage-plugin</report>

Modified: webservices/jaxme/branches/MAVEN/common-build/xdocs.properties
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/common-build/xdocs.properties?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/common-build/xdocs.properties (original)
+++ webservices/jaxme/branches/MAVEN/common-build/xdocs.properties Fri Aug 19 07:10:04 2005
@@ -14,4 +14,43 @@
 # limitations under the License.
 # -------------------------------------------------------------------
 
+
+link.jaxb=http://java.sun.com/xml/jaxb/
+link.ant=http://ant.apache.org
+
+
+#api/xdocs/index.xml
 link.ext-ri=http://java.sun.com/webservices/downloads/webservicespack.html
+link.jaxb-si=https://jaxb.dev.java.net/
+link.open-source-definition=http://www.opensource.org/docs/definition.php
+link.jaxme2=/jaxme/
+link.apache-license=./license.html
+
+#xs/xdocs/generic.xml
+link.antwritingowntask=
+
+
+
+#xdocs/index.xml
+link-JAXB=https://jaxb.dev.java.net/
+link-exist=http://exist.sf.net/
+link-xindice=http://xml.apache.org/xindice/
+link-tamino=http://www.softwareag.com/tamino/
+link-mysql=http://www.mysql.com/
+#xdocs/related.xml
+link-jaxme1=http://jaxme.sourceforge.net
+link-hsqldb=http://hsqldb.sourceforge.net
+#xdocs/misc.xml
+link-clover=http://www.cenqua.com/
+link-cloverkey=http://www.cenqua.com/clover/dl.jsp?key=0e65b4c0eea09ff233b124771
+#xdocs/news.xml
+link-incubator=http://incubator.apache.org/
+link-apachews=http://ws.apache.org/
+#xdocs/release.xml
+link-freshmeat=http://freshmeat.net/
+#xdocs/resources.xml
+link-jelly=http://jakarta.apache.org/commons/jelly/
+link-jaxme-jelly-tags=http://jakarta.apache.org/commons/jelly/libs/jaxme/tags.html
+link-jaxme-jelly-tag-library=http://jakarta.apache.org/commons/jelly/libs/jaxme/index.html
+link-wiki=http://wiki.apache.org/ws/JaxMe
+link-wiki-faq=http://wiki.apache.org/ws/JaxMe/FrequentlyAskedQuestions

Modified: webservices/jaxme/branches/MAVEN/project.properties
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/project.properties?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/project.properties (original)
+++ webservices/jaxme/branches/MAVEN/project.properties Fri Aug 19 07:10:04 2005
@@ -1,39 +1,26 @@
+# -------------------------------------------------------------------
+# Copyright 2001-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.
+# -------------------------------------------------------------------
+
 maven.xdoc.date=left
-maven.proxy.host=194.140.11.77
-maven.proxy.port=80
-maven.docbook.dtd=D:\eclipse\workspace\ws-jaxme\src\docbook\sdocbook.dtd
 
-maven.subprojects.pom=projects/api/project.xml,projects/xs/project.xml,projects/js/project.xml
-#,projects/jm/project.xml
+maven.subprojects.pom=projects/api/project.xml,projects/xs/project.xml,projects/js/project.xml,projects/jm/project.xml
 maven.multiproject.aggregateDir=projects/
-maven.multiproject.includes=projects/api/project.xml,projects/xs/project.xml,projects/js/project.xml
-#,projects/jm/project.xml
+maven.multiproject.includes=projects/api/project.xml,projects/xs/project.xml,projects/js/project.xml,projects/jm/project.xml
 maven.multiproject.navigation=aggregate
-maven.multiproject.site.goals=clean,jar
+maven.multiproject.site.goals=clean,jar:install,site
 
 maven.linkcheck.exclude=projects
 
-
-#xdocs/index.xml
-link-JAXB=https://jaxb.dev.java.net/
-link-exist=http://exist.sf.net/
-link-xindice=http://xml.apache.org/xindice/
-link-tamino=http://www.softwareag.com/tamino/
-link-mysql=http://www.mysql.com/
-#xdocs/related.xml
-link-jaxme1=http://jaxme.sourceforge.net
-link-hsqldb=http://hsqldb.sourceforge.net
-#xdocs/misc.xml
-link-clover=http://www.cenqua.com/
-link-cloverkey=http://www.cenqua.com/clover/dl.jsp?key=0e65b4c0eea09ff233b124771
-#xdocs/news.xml
-link-incubator=http://incubator.apache.org/
-link-apachews=http://ws.apache.org/
-#xdocs/release.xml
-link-freshmeat=http://freshmeat.net/
-#xdocs/resources.xml
-link-jelly=http://jakarta.apache.org/commons/jelly/
-link-jaxme-jelly-tags=http://jakarta.apache.org/commons/jelly/libs/jaxme/tags.html
-link-jaxme-jelly-tag-library=http://jakarta.apache.org/commons/jelly/libs/jaxme/index.html
-link-wiki=http://wiki.apache.org/ws/JaxMe
-link-wiki-faq=http://wiki.apache.org/ws/JaxMe/FrequentlyAskedQuestions

Modified: webservices/jaxme/branches/MAVEN/project.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/project.xml?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/project.xml (original)
+++ webservices/jaxme/branches/MAVEN/project.xml Fri Aug 19 07:10:04 2005
@@ -18,8 +18,8 @@
 -->
 <project>
     <pomVersion>3</pomVersion>
-    <id>jaxme:jaxme2</id>
-    <artifactId>jaxme2</artifactId>
+    <id>jaxme:JaxMeAll</id>
+    <artifactId>JaxMeAll</artifactId>
     <name>JaxMe2</name>
     <groupId>jaxme</groupId>
     <currentVersion>0.5beta</currentVersion>

Modified: webservices/jaxme/branches/MAVEN/projects/api/xdocs/index.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/api/xdocs/index.xml?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/api/xdocs/index.xml (original)
+++ webservices/jaxme/branches/MAVEN/projects/api/xdocs/index.xml Fri Aug 19 07:10:04 2005
@@ -31,7 +31,7 @@
 				<a hrefkey="link.ext-ri">reference implementation</a>
 				this one comes under a very moderate open source
 				license, the
-				<link href="site:license">Apache License</link>.
+				<a hrefkey="link.apache-license">Apache License</a>.
 			</p>
 			<table border="1">
 				<tr>
@@ -41,13 +41,13 @@
 					<td>
 						The reference implementation is now distributed
 						from
-						<link href='ext:jaxb-si'>Java Dot Net</link>. 
+						<a hrefkey='link.jaxb-si'>Java Dot Net</a>. 
 						Though the source may be viewed, the license
 						model used does not really seem to be open
 						source (in the usual sense of
-						<link href='ext:open-source-definition'>
+						<a hrefkey='link.open-source-definition'>
 							The Open Source Initiative
-						</link>
+						</a>
 						definition). Our implementation (of the basic
 						API) is licensed under the Apache License a
 						truly open source license allowing easy
@@ -66,8 +66,8 @@
 				<li>namespace.jar</li>
 			</ol>
 			<p>
-				JaxMeAPI was written as a part of the
-				<link href="site:jaxme2">JaxMe 2</link>
+				JaxMeAPI was written as a part of the 
+				<a hrefkey="link.jaxme2">JaxMe 2</a>
 				project. It is available as a separate module to be
 				included in source distributions of JAXB client
 				applications. Perhaps other JAXB provider

Modified: webservices/jaxme/branches/MAVEN/projects/jm/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/jm/maven.xml?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/jm/maven.xml (original)
+++ webservices/jaxme/branches/MAVEN/projects/jm/maven.xml Fri Aug 19 07:10:04 2005
@@ -17,7 +17,6 @@
 
 -->
 <project xmlns:ant="jelly:ant" xmlns:maven="jelly:maven">
-<preGoal name="java:compile">
 
     <ant:property name="build.jm.src" location="${maven.build.dir}/build"/>	
     <ant:property name="src.jm" location="${pom.build.sourceDirectory}"/>	
@@ -28,6 +27,8 @@
 	</ant:path>
 
 
+<preGoal name="java:compile">
+
 	<ant:mkdir dir="${build.jm.src}"/>
 	
    	<ant:taskdef name="chainGenerator" classname="org.apache.ws.jaxme.js.pattern.Ant$AntChainGenerator"
@@ -102,9 +103,46 @@
     <maven:addPath id="maven.compile.src.set"
                    refid="generated.src"/>	
                    
+</preGoal>
 
+<postGoal name="test:test-resources">
 	
-</preGoal>
+	<ant:taskdef name="xjc" classname="org.apache.ws.jaxme.generator.XJCTask" classpathref="jm.class.path"/>
+	<ant:xjc target="${maven.test.dest}">
+      <ant:schema dir="${maven.test.dest}">
+        <ant:include name="*.xsd"/>
+        <ant:include name="jira/*.xsd"/>
+        <ant:exclude name="enumeration.xsd"/>
+        <ant:exclude name="wildcards.xsd"/>
+        <ant:exclude name="rss.xsd"/>
+        <ant:exclude name="**/xjc*.xsd"/>
+      </ant:schema>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/address/*"/>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/defaults/*"/>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/group/*"/>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/jaxb/*"/>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/rss/*"/>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/types/*"/>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/recursion/*"/>
+    </ant:xjc>
+    <ant:xjc target="${maven.test.dest}" extension="true">
+      <ant:schema dir="${maven.test.dest}">
+        <ant:include name="enumeration.xsd"/>
+        <ant:include name="wildcards.xsd"/>
+		<!--  <include name="rss.xsd"/>  -->
+        <ant:include name="**/xjc*.xsd"/> 
+      </ant:schema>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/enumeration/*"/>
+      <ant:produces dir="${maven.test.dest}" includes="org/apache/ws/jaxme/test/misc/wildcards/*"/>
+    </ant:xjc>
+    
+	<ant:path id="generated.test.src"
+              location="${maven.test.dest}"/>
+
+    <maven:addPath id="maven.test.compile.src.set"
+                   refid="generated.test.src"/>
+                       
+</postGoal>
 </project>
 
 

Modified: webservices/jaxme/branches/MAVEN/projects/jm/project.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/jm/project.xml?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/jm/project.xml (original)
+++ webservices/jaxme/branches/MAVEN/projects/jm/project.xml Fri Aug 19 07:10:04 2005
@@ -32,16 +32,68 @@
     * A Java bean class compatible with the schema description. (If the schema was obtained via Java reflection, then the original Java bean class.)&#xD;
     * An unmarshaller that converts a conforming XML document into the equivalent Java bean.&#xD;
     * Vice versa, a marshaller that converts the Java bean back into the original XML document.</description>
+    <contributors>
+        <contributor>
+            <name>Geert Barentsen</name>
+            <email>geert.barentsen at telenet.be</email>
+        </contributor>
+        <contributor>
+            <name>Doru Sular</name>
+            <email>dorus at savatech.ro</email>
+        </contributor>
+        <contributor>
+            <name>Fredrik Vraalsen</name>
+            <email>fredrik at vraalsen.no</email>
+        </contributor>
+        <contributor>
+            <name>Dogan Atay</name>
+            <email>doganatay at yahoo.com</email>
+        </contributor>
+        <contributor>
+            <name>Marcin Kuthan</name>
+            <email>mkuthan at pit.edu.pl</email>
+        </contributor>
+        <contributor>
+            <name>Peter Nagy</name>
+            <email>peter.1.nagy at nokia.com</email>
+        </contributor>
+        <contributor>
+            <name>Chris Kirk</name>
+            <email>mrck1996 at yahoo.co.uk</email>
+        </contributor>
+        <contributor>
+            <name>Colin Bendell</name>
+            <email>cbendell at point2.com</email>
+        </contributor>
+        <contributor>
+            <name>David Holscher</name>
+            <email>David.Holscher at Nav-International.com</email>
+        </contributor>
+        <contributor>
+            <name>Nicolas De Loof</name>
+            <email>nicolas.deloof at cgey.com</email>
+        </contributor>
+        <contributor>
+            <name>Veniamin Fichin</name>
+            <email>3ca28f66 at mail.ru</email>
+        </contributor>
+    </contributors>    
     <build>
-        <resources>
-            <resource>
-                <directory>${pom.build.sourceDirectory}</directory>
-                <excludes>
-                    <exclude>**/address/*.java</exclude>
-                </excludes>
-                <filtering>true</filtering>
-            </resource>
-        </resources>
+        <unitTest>
+            <includes>
+                <include>**/*Test.java</include>
+            </includes>
+            <excludes>
+                <exclude>**/address/*.java</exclude>
+            </excludes>
+            <resources>
+                <resource>
+                    <directory>src/test/resources/</directory>
+                    <targetPath>./</targetPath>
+                    <filtering>false</filtering>
+                </resource>
+            </resources>
+        </unitTest>
     </build>
     <extend>../../common-build/project.xml</extend>
     <dependencies>
@@ -71,12 +123,6 @@
             <version>${pom.currentVersion}</version>
             <type>jar</type>
             <url>http://ws.apache.org/jaxme/js/</url>
-        </dependency>
-        <dependency>
-            <groupId>antlr</groupId>
-            <artifactId>antlr</artifactId>
-            <version>2.7.5</version>
-            <type>jar</type>
         </dependency>
         <dependency>
             <groupId>ant</groupId>

Added: webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/junit/PrintParse.java
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/junit/PrintParse.java?rev=233486&view=auto
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/junit/PrintParse.java (added)
+++ webservices/jaxme/branches/MAVEN/projects/jm/src/test/java/org/apache/ws/jaxme/junit/PrintParse.java Fri Aug 19 07:10:04 2005
@@ -0,0 +1,38 @@
+/*
+ * 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.junit;
+
+
+public class PrintParse {
+    /** Converts a boolean value into 0 (false) or 1 (true).
+     */
+    public static String printBoolean(boolean pValue) {
+        return pValue ? "1" : "0";
+    }
+
+    /** Converts the values 0 (false) or 1 (true) into a
+     * boolean value.
+     */
+    public static boolean parseBoolean(String pValue) {
+        if ("1".equals(pValue)) {
+            return true;
+        } else if ("0".equals(pValue)) {
+            return false;
+        } else {
+            throw new IllegalArgumentException("Illegal argument: " + pValue);
+        }
+    }
+}

Modified: webservices/jaxme/branches/MAVEN/projects/js/src/main/java/org/apache/ws/jaxme/js/pattern/Ant.java
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/js/src/main/java/org/apache/ws/jaxme/js/pattern/Ant.java?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/js/src/main/java/org/apache/ws/jaxme/js/pattern/Ant.java (original)
+++ webservices/jaxme/branches/MAVEN/projects/js/src/main/java/org/apache/ws/jaxme/js/pattern/Ant.java Fri Aug 19 07:10:04 2005
@@ -230,6 +230,7 @@
     	ClassLoader cl = Thread.currentThread().getContextClassLoader();
     	if (cl == null) {
     		cl = ClassLoader.getSystemClassLoader();
+    	}
     	InterfaceDescription result = new InterfaceDescription(cl);
     	implementedInterfaces.add(result);
     	return result;

Added: webservices/jaxme/branches/MAVEN/projects/mp/LICENSE.txt
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/mp/LICENSE.txt?rev=233486&view=auto
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/mp/LICENSE.txt (added)
+++ webservices/jaxme/branches/MAVEN/projects/mp/LICENSE.txt Fri Aug 19 07:10:04 2005
@@ -0,0 +1,201 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.

Added: webservices/jaxme/branches/MAVEN/projects/mp/README.txt
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/mp/README.txt?rev=233486&view=auto
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/mp/README.txt (added)
+++ webservices/jaxme/branches/MAVEN/projects/mp/README.txt Fri Aug 19 07:10:04 2005
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------------
+# Copyright 2001-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.
+# -------------------------------------------------------------------
+
+The JaxMe plugin for Maven.
+

Added: webservices/jaxme/branches/MAVEN/projects/mp/plugin.jelly
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/mp/plugin.jelly?rev=233486&view=auto
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/mp/plugin.jelly (added)
+++ webservices/jaxme/branches/MAVEN/projects/mp/plugin.jelly Fri Aug 19 07:10:04 2005
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>  
+
+<!-- 
+/*
+ * Copyright 2001-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.
+ */
+ -->
+
+<!--
+  Maven JaxMe2 Plugin.
+  
+  @author Marcus Crafter <cr...@apache.org>
+  @date 10 August 2005
+  -->
+<project
+  xmlns:j="jelly:core"
+  xmlns:util="jelly:util"
+  xmlns:maven="jelly:maven"
+  xmlns:ant="jelly:ant"> 
+  
+     <!-- Default Goal -->
+    <goal name="jaxme2" description="Generates JaxMe2 Stubs"
+          prereqs="jaxme2:generate"/>
+    
+    <!-- Generates jaxme stubs into build source directory -->
+    <goal name="jaxme2:generate" description="Generates JaxMe2 Stubs" prereqs="init">
+    
+        <echo>Starting JaxMe2 Generator</echo> 
+
+        <ant:path id="maven.jaxme2.compile.src.set"
+            location="${maven.jaxme2.target.dir}"/>
+
+        <maven:addPath id="maven.compile.src.set"
+                    refid="maven.jaxme2.compile.src.set"/>
+
+        <util:tokenize var="grammars" delim=" ">
+           ${maven.jaxme2.grammar}
+        </util:tokenize>
+
+        <j:forEach var="grammar" items="${grammars.iterator()}">
+          <jaxme2-xjc schema="${grammar}" target="${maven.jaxme2.target.dir}"/>
+        </j:forEach>
+
+    </goal> 
+
+    <!-- Initialization -->
+    <goal name="init" description="Initializes Plugin">
+    
+      <!-- Create an ant task definition for the stub generator -->
+      <ant:taskdef name="jaxme2-xjc"
+        classname="org.apache.ws.jaxme.generator.XJCTask">
+        <ant:classpath>
+          <ant:pathelement location="${plugin.getDependencyPath('jaxme:jaxme2')}"/>
+          <ant:pathelement location="${plugin.getDependencyPath('jaxme:jaxmejs')}"/>
+          <ant:pathelement location="${plugin.getDependencyPath('jaxme:jaxmexs')}"/>
+          <ant:pathelement location="${plugin.getDependencyPath('jaxme:jaxmeapi')}"/>
+        </ant:classpath>
+      </ant:taskdef>
+
+      <ant:mkdir dir="${maven.jaxme2.target.dir}"/>
+
+    </goal>    
+    
+</project> 

Added: webservices/jaxme/branches/MAVEN/projects/mp/plugin.properties
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/mp/plugin.properties?rev=233486&view=auto
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/mp/plugin.properties (added)
+++ webservices/jaxme/branches/MAVEN/projects/mp/plugin.properties Fri Aug 19 07:10:04 2005
@@ -0,0 +1,25 @@
+# -------------------------------------------------------------------
+# Copyright 2001-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.
+# -------------------------------------------------------------------
+
+# -------------------------------------------------------------------
+# P L U G I N  P R O P E R I E S
+# -------------------------------------------------------------------
+# JaxMe plugin.
+# -------------------------------------------------------------------
+
+# Specify one or more XSD grammars separated by a space character
+maven.jaxme2.grammar=
+maven.jaxme2.target.dir=${maven.build.dir}/jaxme2

Added: webservices/jaxme/branches/MAVEN/projects/mp/project.properties
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/mp/project.properties?rev=233486&view=auto
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/mp/project.properties (added)
+++ webservices/jaxme/branches/MAVEN/projects/mp/project.properties Fri Aug 19 07:10:04 2005
@@ -0,0 +1,17 @@
+# -------------------------------------------------------------------
+# Copyright 2001-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.
+# -------------------------------------------------------------------
+
+

Added: webservices/jaxme/branches/MAVEN/projects/mp/project.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/mp/project.xml?rev=233486&view=auto
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/mp/project.xml (added)
+++ webservices/jaxme/branches/MAVEN/projects/mp/project.xml Fri Aug 19 07:10:04 2005
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+	
+	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.
+	
+-->
+<project>
+    <pomVersion>3</pomVersion>
+    <id>jaxme:maven-jaxme2-plugin</id>
+    <artifactId>maven-jaxme-plugin</artifactId>
+    <name>Maven JaxMe Plugin</name>
+    <groupId>jaxme</groupId>
+    <description>JaxMe Maven Plugin</description>
+    <inceptionYear>2005</inceptionYear>
+    <contributors>
+        <contributor>
+            <name>Marcus Crafter</name>
+            <email>crafterm at apache.org</email>
+            <url>http://blogs.cocoondev.org/crafterm/</url>
+            <timezone>CET</timezone>
+        </contributor>
+    </contributors>
+    <dependencies>
+        <dependency>
+            <groupId>jaxme</groupId>
+            <artifactId>jaxme2</artifactId>
+            <version>${pom.currentVersion}</version>
+            <url>http://ws.apache.org/jaxme</url>
+        </dependency>
+        <dependency>
+            <groupId>jaxme</groupId>
+            <artifactId>jaxmejs</artifactId>
+            <version>${pom.currentVersion}</version>
+            <url>http://ws.apache.org/jaxme</url>
+        </dependency>
+        <dependency>
+            <groupId>jaxme</groupId>
+            <artifactId>jaxmexs</artifactId>
+            <version>${pom.currentVersion}</version>
+            <url>http://ws.apache.org/jaxme</url>
+        </dependency>
+        <dependency>
+            <groupId>jaxme</groupId>
+            <artifactId>jaxmeapi</artifactId>
+            <version>${pom.currentVersion}</version>
+            <url>http://ws.apache.org/jaxme</url>
+        </dependency>
+    </dependencies>
+    <build>
+        <resources>
+            <resource>
+                <directory>${basedir}/plugin-resources</directory>
+                <targetPath>plugin-resources</targetPath>
+                <filtering>false</filtering>
+            </resource>
+            <resource>
+                <directory>${basedir}</directory>
+                <includes>
+                    <include>plugin.jelly</include>
+                    <include>plugin.properties</include>
+                    <include>project.properties</include>
+                    <include>project.xml</include>
+                </includes>
+                <filtering>false</filtering>
+            </resource>
+        </resources>
+    </build>
+    <extend>../../common-build/project.xml</extend>
+    <shortDescription>JaxMe Maven Plugin</shortDescription>
+</project>
+

Modified: webservices/jaxme/branches/MAVEN/projects/xs/xdocs/generic.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/xs/xdocs/generic.xml?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/xs/xdocs/generic.xml (original)
+++ webservices/jaxme/branches/MAVEN/projects/xs/xdocs/generic.xml Fri Aug 19 07:10:04 2005
@@ -31,11 +31,11 @@
         safely skip to the <a href="syntax.html">next section</a>, which is basically
         self contained. However, some details are best described here.</p>
       <p>The generic parser follows an idea from the
-        <link href="ext:ant">Ant</link> project: A SAX parser is responsible for the
+        <a hrefkey="link.ant">Ant</a> project: A SAX parser is responsible for the
         configuration of a bean. Any XML element is mapped to a Java bean. The XML
         elements attributes are mapped to properties of the bean and the child
         elements are mapped to other beans, which are part of the parent bean. If
-        you know <link href="ext:antwritingowntask">how to write an Ant task</link>,
+        you know <a hrefkey="link.antwritingowntask">how to write an Ant task</a>,
         you know how the generic parser works.</p>
       <p>The generic parser is specified by the interface
         <a href="./apidocs/org/apache/ws/jaxme/xs/parser/XsSAXParser.html">XsSAXParser</a> and

Modified: webservices/jaxme/branches/MAVEN/projects/xs/xdocs/index.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/projects/xs/xdocs/index.xml?rev=233486&r1=233485&r2=233486&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/projects/xs/xdocs/index.xml (original)
+++ webservices/jaxme/branches/MAVEN/projects/xs/xdocs/index.xml Fri Aug 19 07:10:04 2005
@@ -32,7 +32,7 @@
         goal.</p>
 
       <p>The main purpose of JaxMeXS is being extensible. It is written with XML languages
-        in mind, that extend XML schema. The best example is <link href="ext:jaxb">JAXB</link>,
+        in mind, that extend XML schema. The best example is <a hrefkey="link.jaxb">JAXB</a>,
         the XML binding specification for Java. It extends XML schema by adding some more tags,
         for example like this:</p>
       <source>
@@ -55,7 +55,7 @@
         The above example demonstrates how JAXB uses an additional tag
         <code>jaxb:package</code> to specify it.</p>
       <p>This is exactly where JaxMeXS fits in. Quite unsurprising, because it was
-        written as the XML schema parser for <link href="ext:jaxme">JaxMe</link>,
+        written as the XML schema parser for <a hrefkey="link.jaxme2">JaxMe</a>,
         which aims to be a JAXB implementation and extends the JAXB language by even
         more tags. The main idea of JaxMeXS is:</p>
       <ul>



---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org