[Jpackage-commits] dist/xmlrpc/JPP-6 Makefile, NONE, 1.1 sources, NONE, 1.1 xmlrpc-build.xml, NONE, 1.1 xmlrpc-client-build.xml, NONE, 1.1 xmlrpc-common-build.xml, NONE, 1.1 xmlrpc-jpp-depmap.xml, NONE, 1.1 xmlrpc-pom_xml.patch, NONE, 1.1 xmlrpc-server-build.xml, NONE, 1.1 xmlrpc-settings.xml, NONE, 1.1 xmlrpc-site_xml.patch, NONE, 1.1 xmlrpc-tests-build.xml, NONE, 1.1 xmlrpc-tests-pom_xml.patch, NONE, 1.1 xmlrpc.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed Dec 22 10:55:32 CET 2010


Update of /home/projects/jpackage/cvs/dist/xmlrpc/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv10092/JPP-6

Added Files:
	Makefile sources xmlrpc-build.xml xmlrpc-client-build.xml 
	xmlrpc-common-build.xml xmlrpc-jpp-depmap.xml 
	xmlrpc-pom_xml.patch xmlrpc-server-build.xml 
	xmlrpc-settings.xml xmlrpc-site_xml.patch 
	xmlrpc-tests-build.xml xmlrpc-tests-pom_xml.patch xmlrpc.spec 
Log Message:
Import xmlrpc into JPP-6

--- NEW FILE: xmlrpc-jpp-depmap.xml ---
<dependencies>
	<dependency>
		<maven>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
			<version>3.1.1</version>
		</maven>
		<jpp>
			<groupId>JPP</groupId>
			<artifactId>commons-httpclient</artifactId>
			<version>3.1.1</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1</version>
		</maven>
		<jpp>
			<groupId>JPP</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.4</version>
		</maven>
		<jpp>
			<groupId>JPP</groupId>
			<artifactId>servletapi5</artifactId>
			<version>2.4</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
		</maven>
		<jpp>
			<groupId>JPP</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
			<groupId>org.apache.ws.commons.util</groupId>
			<artifactId>ws-commons-util</artifactId>
			<version>1.0.2</version>
		</maven>
		<jpp>
			<groupId>JPP</groupId>
			<artifactId>ws-commons-util</artifactId>
			<version>1.0.1</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
			<groupId>jaxme</groupId>
			<artifactId>jaxmeapi</artifactId>
			<version>0.5.1</version>
		</maven>
		<jpp>
			<groupId>JPP/jaxme</groupId>
			<artifactId>jaxmeapi</artifactId>
			<version>0.5.2</version>
		</jpp>
	</dependency>

        <dependency>
                <maven>
                        <groupId>org.apache.maven</groupId>
                        <artifactId>maven-default-skin</artifactId>
                        <version>1.0</version>
                </maven>
                <jpp>
                        <groupId>JPP/maven2</groupId>
                        <artifactId>default-skin</artifactId>
                        <version>1.0</version>
                </jpp>
        </dependency>

</dependencies>

--- NEW FILE: xmlrpc-server-build.xml ---
<project name="xmlrpc-server" default="jar" basedir=".">
  <property file="${user.home}/.m2/maven.properties"/>
  <property name="maven.build.output" value="target/classes"/>
  <property name="maven.build.directory" value="target"/>
  <property name="maven.build.final.name" value="xmlrpc-server-3.1.3"/>
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
  <property name="maven.test.output" value="target/test-classes"/>
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
  <property name="javadocdir" value="target/site/apidocs"></property>
  <path id="build.classpath">
    <fileset dir="${maven.repo.local}">
      <include name="org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar"/>
      <include name="org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar"/>
      <include name="junit/junit/3.8.1/junit-3.8.1.jar"/>
      <include name="commons-logging/commons-logging/1.1/commons-logging-1.1.jar"/>
      <include name="org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar"/>
      <include name="xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar"/>
    </fileset>
  </path>
  <target name="clean" description="Clean the output directory">
    <delete dir="${maven.build.directory}"/>
  </target>
  <target name="compile" depends="get-deps" description="Compile the code">
    <mkdir dir="${maven.build.output}"/>
    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
      <src>
        <pathelement location="src/main/java"/>
      </src>
      <classpath refid="build.classpath"/>
    </javac>
  </target>
  <target name="jar" depends="compile,test" description="Clean the JAR">
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
  </target>
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
    <mkdir dir="${maven.test.output}"/>
  </target>
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
  <target name="test-junit-present">
    <available classname="junit.framework.Test" property="junit.present"/>
  </target>
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
    <echo>================================= WARNING ================================</echo>
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
    <echo>==========================================================================</echo>
  </target>
  <target name="test-offline">
    <condition property="maven.mode.offline">
      <equals arg1="${build.sysclasspath}" arg2="only"/>
    </condition>
  </target>
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
    <mkdir dir="${maven.repo.local}"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/xmlrpc/xmlrpc-common/3.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-util/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/junit/junit/3.8.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/commons-logging/commons-logging/1.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-java5/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/xml-apis/xml-apis/2.0.2"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
  </target>
  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
    <mkdir dir="${javadocdir}"></mkdir>
    <tstamp>
      <format pattern="-yyyy" property="year"></format>
    </tstamp>
    <property name="copyright" value="Copyright &copy;  . All Rights Reserved."></property>
    <property name="title" value="Apache XML-RPC 3.1 Server API"></property>
    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main/java" packagenames="org.apache.xmlrpc.*">
      <classpath>
        <path refid="build.classpath"></path>
      </classpath>
    </javadoc>
  </target>
</project>

--- NEW FILE: xmlrpc-build.xml ---
<project name="xmlrpc" default="jar" basedir=".">
  <property file="${user.home}/.m2/maven.properties"/>
  <property name="maven.build.output" value="target/classes"/>
  <property name="maven.build.directory" value="target"/>
  <property name="maven.build.final.name" value="xmlrpc-3.1.3"/>
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
  <property name="maven.test.output" value="target/test-classes"/>
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
  <property name="javadocdir" value="target/site/apidocs"></property>
  <path id="build.classpath">
    <fileset dir="${maven.repo.local}">
      <include name="org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar"/>
      <include name="xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar"/>
    </fileset>
  </path>
  <target name="clean" description="Clean the output directory">
    <delete dir="${maven.build.directory}"/>
  </target>
  <target name="compile" depends="get-deps" description="Compile the code">
    <mkdir dir="${maven.build.output}"/>
  </target>
  <target name="jar" depends="compile,test" description="Clean the JAR">
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
  </target>
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
    <mkdir dir="${maven.test.output}"/>
  </target>
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
  <target name="test-junit-present">
    <available classname="junit.framework.Test" property="junit.present"/>
  </target>
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
    <echo>================================= WARNING ================================</echo>
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
    <echo>==========================================================================</echo>
  </target>
  <target name="test-offline">
    <condition property="maven.mode.offline">
      <equals arg1="${build.sysclasspath}" arg2="only"/>
    </condition>
  </target>
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
    <mkdir dir="${maven.repo.local}"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-java5/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/xml-apis/xml-apis/2.0.2"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
  </target>
</project>

--- NEW FILE: xmlrpc-pom_xml.patch ---
--- pom.xml.sav	2006-08-30 22:20:49.000000000 +0200
+++ pom.xml	2007-08-06 13:11:56.000000000 +0200
@@ -219,11 +219,25 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-site-plugin</artifactId>
+                <configuration>
+                    <siteDirectory>${basedir}/src/site</siteDirectory>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
     <dependencyManagement>
         <dependencies>
             <dependency>
+                <groupId>commons-codec</groupId>
+                <artifactId>commons-codec</artifactId>
+                <version>1.3</version>
+                <type>jar</type>
+                <scope>provided</scope>
+            </dependency>
+            <dependency>
                 <groupId>commons-httpclient</groupId>
                 <artifactId>commons-httpclient</artifactId>
                 <version>3.0.1</version>
@@ -270,6 +284,7 @@
 					<aggregate>true</aggregate>
 				</configuration>
             </plugin>
+<!--
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-changes-plugin</artifactId>
@@ -281,6 +296,7 @@
                     </reportSet>
                 </reportSets>
             </plugin>
+-->
         </plugins>
     </reporting>
     <distributionManagement>

--- NEW FILE: xmlrpc-common-build.xml ---
<project name="xmlrpc-common" default="jar" basedir=".">
  <property file="${user.home}/.m2/maven.properties"/>
  <property name="maven.build.output" value="target/classes"/>
  <property name="maven.build.directory" value="target"/>
  <property name="maven.build.final.name" value="xmlrpc-common-3.1.3"/>
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
  <property name="maven.test.output" value="target/test-classes"/>
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
  <property name="javadocdir" value="target/site/apidocs"></property>
  <path id="build.classpath">
    <fileset dir="${maven.repo.local}">
      <include name="org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar"/>
      <include name="junit/junit/3.8.1/junit-3.8.1.jar"/>
      <include name="org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar"/>
      <include name="xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar"/>
    </fileset>
  </path>
  <target name="clean" description="Clean the output directory">
    <delete dir="${maven.build.directory}"/>
  </target>
  <target name="compile" depends="get-deps" description="Compile the code">
    <mkdir dir="${maven.build.output}"/>
    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
      <src>
        <pathelement location="src/main/java"/>
      </src>
      <classpath refid="build.classpath"/>
    </javac>
  </target>
  <target name="jar" depends="compile,test" description="Clean the JAR">
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
  </target>
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
    <mkdir dir="${maven.test.output}"/>
  </target>
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
  <target name="test-junit-present">
    <available classname="junit.framework.Test" property="junit.present"/>
  </target>
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
    <echo>================================= WARNING ================================</echo>
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
    <echo>==========================================================================</echo>
  </target>
  <target name="test-offline">
    <condition property="maven.mode.offline">
      <equals arg1="${build.sysclasspath}" arg2="only"/>
    </condition>
  </target>
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
    <mkdir dir="${maven.repo.local}"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-util/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/junit/junit/3.8.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-java5/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/xml-apis/xml-apis/2.0.2"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
  </target>
  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
    <mkdir dir="${javadocdir}"></mkdir>
    <tstamp>
      <format pattern="-yyyy" property="year"></format>
    </tstamp>
    <property name="copyright" value="Copyright &copy;  . All Rights Reserved."></property>
    <property name="title" value="Apache XML-RPC 3.1 Common API"></property>
    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main/java" packagenames="org.apache.xmlrpc.*">
      <classpath>
        <path refid="build.classpath"></path>
      </classpath>
    </javadoc>
  </target>
</project>

--- NEW FILE: Makefile ---
# Makefile for source rpm: xmlrpc
# $Id: Makefile,v 1.1 2010/12/22 09:55:30 jpackage Exp $
NAME := xmlrpc
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: xmlrpc-tests-build.xml ---
<project name="xmlrpc-tests" default="jar" basedir=".">
  <property file="${user.home}/.m2/maven.properties"/>
  <property name="maven.build.output" value="target/classes"/>
  <property name="maven.build.directory" value="target"/>
  <property name="maven.build.final.name" value="xmlrpc-tests-3.1.3"/>
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
  <property name="maven.test.output" value="target/test-classes"/>
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
  <property name="javadocdir" value="target/site/apidocs"></property>
  <path id="build.classpath">
    <fileset dir="${maven.repo.local}">
      <include name="org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar"/>
      <include name="org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar"/>
      <include name="org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar"/>
      <include name="junit/junit/3.8.1/junit-3.8.1.jar"/>
      <include name="commons-logging/commons-logging/1.1/commons-logging-1.1.jar"/>
      <include name="org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar"/>
      <include name="xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar"/>
      <include name="org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar"/>
    </fileset>
  </path>
  <target name="clean" description="Clean the output directory">
    <delete dir="${maven.build.directory}"/>
  </target>
  <target name="compile" depends="get-deps" description="Compile the code">
    <mkdir dir="${maven.build.output}"/>
  </target>
  <target name="jar" depends="compile,test" description="Clean the JAR">
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
  </target>
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
    <mkdir dir="${maven.test.output}"/>
    <javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
      <src>
        <pathelement location="src/test/java"/>
      </src>
      <classpath>
        <path refid="build.classpath"/>
        <pathelement location="${maven.build.output}"/>
      </classpath>
    </javac>
    <copy todir="${maven.test.output}">
      <fileset dir="src/test/resources"/>
    </copy>
  </target>
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases">
    <mkdir dir="${maven.test.reports}"/>
    <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
      <sysproperty key="basedir" value="."/>
      <formatter type="xml"/>
      <formatter type="plain" usefile="false"/>
      <classpath>
        <path refid="build.classpath"/>
        <pathelement location="${maven.build.output}"/>
        <pathelement location="${maven.test.output}"/>
      </classpath>
      <batchtest todir="${maven.test.reports}">
        <fileset dir="src/test/java">
          <include name="**/*Test.java"/>
          <exclude name="**/*Abstract*Test.java"/>
          <exclude name="org/apache/xmlrpc/test/ScalabilityTest.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>
  <target name="test-junit-present">
    <available classname="junit.framework.Test" property="junit.present"/>
  </target>
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
    <echo>================================= WARNING ================================</echo>
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
    <echo>==========================================================================</echo>
  </target>
  <target name="test-offline">
    <condition property="maven.mode.offline">
      <equals arg1="${build.sysclasspath}" arg2="only"/>
    </condition>
  </target>
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
    <mkdir dir="${maven.repo.local}"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-util/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/xmlrpc/xmlrpc-client/3.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-client/3.1/xmlrpc-client-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/xmlrpc/xmlrpc-common/3.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/junit/junit/3.8.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/commons-logging/commons-logging/1.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-java5/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/xml-apis/xml-apis/2.0.2"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/xmlrpc/xmlrpc-server/3.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-server/3.1/xmlrpc-server-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
  </target>
  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
    <mkdir dir="${javadocdir}"></mkdir>
    <tstamp>
      <format pattern="-yyyy" property="year"></format>
    </tstamp>
    <property name="copyright" value="Copyright &copy;  . All Rights Reserved."></property>
    <property name="title" value="Apache WS-Commons Java5 1.0.1 API"></property>
    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/test/java" packagenames="org.apache.xmlrpc.*">
      <classpath>
        <path refid="build.classpath"></path>
      </classpath>
    </javadoc>
  </target>
</project>

--- NEW FILE: sources ---
dc69f66876a8c75824b23766d7bf0d91  apache-xmlrpc-3.1.3-src.tar.gz

--- NEW FILE: xmlrpc-site_xml.patch ---
--- src/site/site.xml.sav	2006-07-15 02:45:16.000000000 +0200
+++ src/site/site.xml	2007-08-06 12:36:50.000000000 +0200
@@ -1,4 +1,9 @@
-<project name="ws-xmlrpc">
+<project name="xmlrpc">
+  <skin>
+    <groupId>org.apache.maven</groupId>
+    <artifactId>maven-default-skin</artifactId>
+    <version>1.0</version>
+  </skin>
   <bannerLeft>
     <name>Apache XML-RPC</name>
     <src>http://ws.apache.org/xmlrpc/images/xmlrpc-logo.gif</src>
@@ -28,4 +33,5 @@
 
     ${reports}
 
-  </body></project>
+  </body>
+</project>

--- NEW FILE: xmlrpc.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

%bcond_without          maven

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section free

Name:           xmlrpc
Version:        3.1.3
Release:        1%{?dist}
Epoch:          0
Summary:        Java XML-RPC implementation
License:        ASL 2.0
Group:          Development/Java
URL:            http://ws.apache.org/xmlrpc/
Source0:        http://www.apache.org/dist/ws/xmlrpc/sources/apache-xmlrpc-3.1.3-src.tar.gz
Source1:        %{name}-settings.xml
Source2:        %{name}-jpp-depmap.xml
Source3:        %{name}-build.xml
Source4:        %{name}-client-build.xml
Source5:        %{name}-common-build.xml
Source6:        %{name}-server-build.xml
Source7:        %{name}-tests-build.xml
Patch0:         xmlrpc-pom_xml.patch
Patch1:         xmlrpc-tests-pom_xml.patch
Patch2:         xmlrpc-site_xml.patch
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant >= 0:1.7.1
BuildRequires:  junit
BuildRequires:  apache-commons-codec
BuildRequires:  apache-commons-httpclient
BuildRequires:  apache-commons-logging
BuildRequires:  servlet_2_4_api
BuildRequires:  ws-commons-java5
BuildRequires:  ws-commons-util
BuildRequires:  ws-jaxme
#BuildRequires:  xml-commons-jaxp-1.3-apis
%if %with maven
BuildRequires:  maven2 >= 2.0.8
BuildRequires:  maven2-plugin-assembly
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-eclipse
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-source
BuildRequires:  maven2-plugin-surefire
BuildRequires:  maven-release
%endif
Requires:       apache-commons-codec
Requires:       apache-commons-httpclient
Requires:       apache-commons-logging
Requires:       servlet_2_4_api
Requires:       ws-commons-java5
Requires:       ws-commons-util
Requires:       ws-jaxme
#Requires:       xml-commons-jaxp-1.3-apis
Requires(post): jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5
%if %{gcj_support}
BuildRequires:    java-gcj-compat-devel
%else
Buildarch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Apache XML-RPC is a Java implementation of XML-RPC, a popular protocol
that uses XML over HTTP to implement remote procedure calls.
Apache XML-RPC was previously known as Helma XML-RPC. If you have code
using the Helma library, all you should have to do is change the import
statements in your code from helma.xmlrpc.* to org.apache.xmlrpc.*.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%if %with maven
%package manual
Summary:        Documents for %{name}
Group:          Development/Documentation

%description manual
%{summary}.
%endif

%prep
%setup -q -n apache-%{name}-%{version}-src
cp -p %{SOURCE1} settings.xml
cp -p %{SOURCE3} build.xml
cp -p %{SOURCE4} client/build.xml
cp -p %{SOURCE5} common/build.xml
cp -p %{SOURCE6} server/build.xml
#cp -p %{SOURCE7} tests/build.xml
#%if 0
#%patch0 -p0
#%patch1 -p0
#%patch2 -p0
#%endif

perl -pi -e 's/\r$//g' LICENSE.txt

%build
%if %with maven
sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml
sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" settings.xml

export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL

mkdir external_repo
ln -s %{_javadir} external_repo/JPP

mvn-jpp \
        -e \
        -s $(pwd)/settings.xml \
        -Dmaven2.jpp.mode=true \
        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        install javadoc:aggregate site:site

%else
pushd common
export CLASSPATH=$(build-classpath junit ws-commons-java5 ws-commons-util jaxme/jaxmeapi)
export OPT_JAR_LIST=:
ant -Dbuild.sysclasspath=only jar javadoc
popd

pushd client
export CLASSPATH=$(build-classpath junit ws-commons-java5 ws-commons-util commons-httpclient)
CLASSPATH=$CLASSPATH:../common/target/%{name}-common-%{version}.jar
ant -Dbuild.sysclasspath=only jar javadoc
popd

pushd server
export CLASSPATH=$(build-classpath junit commons-logging ws-commons-java5 ws-commons-util servlet_2_4_api)
CLASSPATH=$CLASSPATH:../common/target/%{name}-common-%{version}.jar
ant -Dbuild.sysclasspath=only jar javadoc
popd

%endif
mkdir -p temp
pushd temp
%{jar} xf ../server/target/%{name}-server-%{version}.jar
%{jar} xf ../client/target/%{name}-client-%{version}.jar
%{jar} xf ../common/target/%{name}-common-%{version}.jar
%{__sed} -i -e "s|-common||g" META-INF/MANIFEST.MF
%{jar} cmf META-INF/MANIFEST.MF ../%{name}-%{version}.jar *
popd

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -m 644 %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 644 common/target/%{name}-common-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/common-%{version}.jar
install -m 644 client/target/%{name}-client-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/client-%{version}.jar
install -m 644 server/target/%{name}-server-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/server-%{version}.jar

(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done)
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done)

%add_to_maven_depmap org.apache.xmlrpc xmlrpc %{version} JPP %{name}
%add_to_maven_depmap org.apache.xmlrpc xmlrpc-client %{version} JPP/%{name} client
%add_to_maven_depmap org.apache.xmlrpc xmlrpc-common %{version} JPP/%{name} common
%add_to_maven_depmap org.apache.xmlrpc xmlrpc-server %{version} JPP/%{name} server

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
install -m 644 client/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-client.pom
install -m 644 common/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-common.pom
install -m 644 server/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-server.pom

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
%if %with maven
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
%else
for m in common client server; do
    install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/$m
    cp -pr $m/target/site/apidocs/* \
                      $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/$m
done
%endif
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
install -m 644 LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%if %with maven
# FIXME: (dwalluck): breaks -bi --short-circuit
rm -rf target/site/apidocs
cp -pr target/site $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%endif

%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(0644,root,root,0755)
%doc  %{_docdir}/%{name}-%{version}/LICENSE.txt
%{_javadir}/%{name}*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/*-%{version}.jar.*
%endif

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%if %with maven
%files manual
%defattr(0644,root,root,0755)
%dir %{_docdir}/%{name}-%{version}
%{_docdir}/%{name}-%{version}/site
%endif

%changelog
* Wed Dec 22 2010 Ralph Apel <r.apel at r-apel.de> 0:3.1.3-1
- 3.1
- Build with maven by default

* Tue Nov 11 2008 David Walluck <walluck at redhat.com> 0:3.1-1
- 3.1

* Mon Aug 06 2007 Ralph Apel <r.apel at r-apel.de> - 0:3.0-1jpp
- Upgrade to 3.0
- Add poms and depmap frags
- Make Vendor, Distribution based on macro

* Fri Aug 04 2006 Vivek Lakshmanan <vivekl at redhat.com> - 0:2.0.1-3jpp
- Add conditional native compilation for GCJ.
- Add Requires(x) sections for -javadoc sub-package.

* Mon Apr 04 2006 Ralph Apel <r.apel at r-apel.de> - 0:2.0.1-2jpp
- Fix jakarta-commons requires naming

* Wed Jan 18 2006 Igor Foox <ifoox at rehdat.com> - 0:2.0.1-1jpp
- Update to version 2.0.1.

* Thu Jan 05 2006 Fernando Nasser <fnasser at redhat.com> 0:1.2-0.b1.4jpp
- First JPP 1.7 build

* Thu Aug 26 2004 Ralph Apel <r.apel at r-apel.de> 0:1.2-0.b1.3jpp
- Build with ant-1.6.2

* Thu Apr 29 2004 David Walluck <david at jpackage.org> 0:1.2-0.b1.2jpp
- add jar symlinks
- remove %%buildroot in %%install

* Tue May 06 2003 David Walluck <david at anti-microsoft.org> 0:1.2-0.b1.1jpp
- 1.2-b1
- update for JPackage 1.5

* Mon Mar 18 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1-1jpp 
- 1.1
- generic servlet support
- used source release
- dropped patch
- added applet jar

* Mon Jan 21 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.0-3jpp 
- versioned dir for javadoc
- no dependencies for javadoc package
- dropped jsse package
- adaptation to new servlet3 package
- adaptation to new jsse package
- section macro

* Fri Dec 7 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.0-2jpp
- javadoc into javadoc package

* Sat Nov 3 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.0-1jpp
- first JPackage release

--- NEW FILE: xmlrpc-tests-pom_xml.patch ---
--- tests/pom.xml.sav	2006-08-30 22:12:43.000000000 +0200
+++ tests/pom.xml	2007-08-03 11:47:17.000000000 +0200
@@ -40,9 +40,20 @@
       <version>${project.version}</version>
     </dependency>
     <dependency>
+      <groupId>commons-codec</groupId>
+      <artifactId>commons-codec</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
       <groupId>commons-httpclient</groupId>
       <artifactId>commons-httpclient</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.4</version>
+      <scope>provided</scope>
+    </dependency>
   </dependencies>
 </project>

--- NEW FILE: xmlrpc-client-build.xml ---
<project name="xmlrpc-client" default="jar" basedir=".">
  <property file="${user.home}/.m2/maven.properties"/>
  <property name="maven.build.output" value="target/classes"/>
  <property name="maven.build.directory" value="target"/>
  <property name="maven.build.final.name" value="xmlrpc-client-3.1.3"/>
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
  <property name="maven.test.output" value="target/test-classes"/>
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
  <property name="javadocdir" value="target/site/apidocs"></property>
  <path id="build.classpath">
    <fileset dir="${maven.repo.local}">
      <include name="org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar"/>
      <include name="org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar"/>
      <include name="junit/junit/3.8.1/junit-3.8.1.jar"/>
      <include name="org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar"/>
      <include name="xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar"/>
    </fileset>
  </path>
  <target name="clean" description="Clean the output directory">
    <delete dir="${maven.build.directory}"/>
  </target>
  <target name="compile" depends="get-deps" description="Compile the code">
    <mkdir dir="${maven.build.output}"/>
    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
      <src>
        <pathelement location="src/main/java"/>
      </src>
      <classpath refid="build.classpath"/>
    </javac>
  </target>
  <target name="jar" depends="compile,test" description="Clean the JAR">
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
  </target>
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
    <mkdir dir="${maven.test.output}"/>
  </target>
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
  <target name="test-junit-present">
    <available classname="junit.framework.Test" property="junit.present"/>
  </target>
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
    <echo>================================= WARNING ================================</echo>
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
    <echo>==========================================================================</echo>
  </target>
  <target name="test-offline">
    <condition property="maven.mode.offline">
      <equals arg1="${build.sysclasspath}" arg2="only"/>
    </condition>
  </target>
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
    <mkdir dir="${maven.repo.local}"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-util/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-util/1.0.1/ws-commons-util-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/xmlrpc/xmlrpc-common/3.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" dest="${maven.repo.local}/org/apache/xmlrpc/xmlrpc-common/3.1/xmlrpc-common-3.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/junit/junit/3.8.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-java5/1.0.1"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/xml-apis/xml-apis/2.0.2"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://svn.apache.org/maven-snapshot-repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/>
  </target>
  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
    <mkdir dir="${javadocdir}"></mkdir>
    <tstamp>
      <format pattern="-yyyy" property="year"></format>
    </tstamp>
    <property name="copyright" value="Copyright &copy;  . All Rights Reserved."></property>
    <property name="title" value="Apache XML-RPC 3.1 Client API"></property>
    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main/java" packagenames="org.apache.xmlrpc.*">
      <classpath>
        <path refid="build.classpath"></path>
      </classpath>
    </javadoc>
  </target>
</project>

--- NEW FILE: xmlrpc-settings.xml ---
<settings>
	<profiles>
		<profile>
			<id>JPP</id>
			<repositories>
				<repository>
					<id>internal</id>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>external</id>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>local</id>
					<layout>jpp</layout>
					<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>plugins-internal</id>
					<name>plugins-internal</name>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-external</id>
					<name>plugins-external</name>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-maven</id>
					<name>plugins-maven</name>
					<layout>jpp</layout>
					<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>




More information about the JPackage-commits mailing list