You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by jo...@apache.org on 2005/10/21 23:31:08 UTC
svn commit: r327584 - in /webservices/commons/trunk/java5: ./ build.xml
project.properties project.xml
Author: jochen
Date: Fri Oct 21 14:31:00 2005
New Revision: 327584
URL: http://svn.apache.org/viewcvs?rev=327584&view=rev
Log:
Mavenized the project
Added:
webservices/commons/trunk/java5/project.properties
webservices/commons/trunk/java5/project.xml
Modified:
webservices/commons/trunk/java5/ (props changed)
webservices/commons/trunk/java5/build.xml
Propchange: webservices/commons/trunk/java5/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Oct 21 14:31:00 2005
@@ -0,0 +1,2 @@
+
+target
Modified: webservices/commons/trunk/java5/build.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/java5/build.xml?rev=327584&r1=327583&r2=327584&view=diff
==============================================================================
--- webservices/commons/trunk/java5/build.xml (original)
+++ webservices/commons/trunk/java5/build.xml Fri Oct 21 14:31:00 2005
@@ -1,51 +1,116 @@
-<!--
- * Copyright 2002-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 name="ws-commons-java5" default="all">
- <property name="debug" value="true"/>
- <property name="optimize" value="true"/>
- <property name="source.version" value="1.2"/>
- <property name="target.version" value="1.2"/>
- <property name="build" location="build"/>
- <property name="build.classes" location="${build}/classes"/>
- <property name="build.dist" location="${build}/dist"/>
- <property name="java5.jar" location="${build.dist}/ws-commons-java5.jar"/>
- <property name="java5-src.zip" location="${build.dist}/ws-commons-java5-src.zip"/>
+<?xml version="1.0" encoding="UTF-8"?>
- <target name="clean">
- <mkdir dir="${build}"/>
- </target>
+<!--build.xml generated by maven from project.xml version 1.0
+ on date October 21 2005, time 2330-->
- <target name="compile">
- <mkdir dir="${build.classes}"/>
- <javac debug="${debug}" optimize="${optimize}"
- source="${source.version}" target="${target.version}"
- srcdir="src/java" destdir="${build.classes}"/>
- </target>
+<project default="jar" name="ws-commons-java5" basedir=".">
+ <property name="defaulttargetdir" value="target">
+ </property>
+ <property name="libdir" value="target/lib">
+ </property>
+ <property name="classesdir" value="target/classes">
+ </property>
+ <property name="testclassesdir" value="target/test-classes">
+ </property>
+ <property name="distdir" value="dist">
+ </property>
+ <property name="javadocdir" value="dist/docs/api">
+ </property>
+ <property name="final.name" value="ws-commons-java5-1.0">
+ </property>
+ <path id="build.classpath">
+ <fileset dir="${libdir}">
+ <include name="**/*.jar">
+ </include>
+ </fileset>
+ </path>
+ <target name="init" description="o Initializes some properties">
+ <mkdir dir="${libdir}">
+ </mkdir>
+ <condition property="noget">
+ <equals arg2="only" arg1="${build.sysclasspath}">
+ </equals>
+ </condition>
+ <!--Test if JUNIT is present in ANT classpath-->
- <target name="jar" depends="compile">
- <mkdir dir="${build.dist}"/>
- <jar destfile="${java5.jar}">
- <fileset dir="${build.classes}"/>
- </jar>
- <zip destfile="${java5-src.zip}">
- <fileset dir="src/java"/>
- </zip>
- </target>
+ <available property="Junit.present" classname="junit.framework.Test">
+ </available>
+ </target>
+ <target name="compile" description="o Compile the code" depends="get-deps">
+ <mkdir dir="${classesdir}">
+ </mkdir>
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
+ <src>
+ <pathelement location="src/java">
+ </pathelement>
+ </src>
+ <classpath refid="build.classpath">
+ </classpath>
+ </javac>
+ </target>
+ <target name="jar" description="o Create the jar" depends="compile,test">
+ <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
+ </jar>
+ </target>
+ <target name="clean" description="o Clean up the generated directories">
+ <delete dir="${defaulttargetdir}">
+ </delete>
+ <delete dir="${distdir}">
+ </delete>
+ </target>
+ <target name="dist" description="o Create a distribution" depends="jar, javadoc">
+ <mkdir dir="dist">
+ </mkdir>
+ <copy todir="dist">
+ <fileset dir="${defaulttargetdir}" includes="*.jar">
+ </fileset>
+ <fileset dir="${basedir}" includes="LICENSE*, README*">
+ </fileset>
+ </copy>
+ </target>
+ <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
+ <fail message="There were test failures.">
+ </fail>
+ </target>
+ <target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
+ </target>
+ <target name="junit-present" unless="Junit.present" depends="init">
+ <echo>================================= WARNING ================================</echo>
+ <echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
+ <echo>==========================================================================</echo>
+ </target>
+ <target name="compile-tests" if="Junit.present" depends="junit-present,compile">
+ </target>
+ <target name="javadoc" description="o Generate javadoc" depends="get-deps">
+ <mkdir dir="${javadocdir}">
+ </mkdir>
+ <tstamp>
+ <format pattern="2005-yyyy" property="year">
+ </format>
+ </tstamp>
+ <property name="copyright" value="Copyright &copy; Apache Software Foundation. All Rights Reserved.">
+ </property>
+ <property name="title" value="ws-commons-java5 1.0 API">
+ </property>
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="javax.xml.namespace.*">
+ <classpath>
+ <path refid="build.classpath">
+ </path>
+ </classpath>
+ </javadoc>
+ </target>
+ <target name="get-deps" unless="noget" depends="init">
+ <!--Proxy settings works only with a JDK 1.2 and higher.-->
- <target name="all" depends="jar" description="Builds everything"/>
-
- <target name="test" depends="all" description="Runs the test suite"/>
-</project>
+ <setproxy>
+ </setproxy>
+ <get dest="${libdir}/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-2.0.2.jar">
+ </get>
+ </target>
+ <target name="install-maven">
+ <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
+ </get>
+ <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
+ </unjar>
+ </target>
+</project>
\ No newline at end of file
Added: webservices/commons/trunk/java5/project.properties
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/java5/project.properties?rev=327584&view=auto
==============================================================================
--- webservices/commons/trunk/java5/project.properties (added)
+++ webservices/commons/trunk/java5/project.properties Fri Oct 21 14:31:00 2005
@@ -0,0 +1,7 @@
+# Configuration of the Artifact plugin, for deploying the generated jar file
+maven.repo.list=apache_dist
+maven.repo.apache_dist=scp://people.apache.org
+maven.repo.apache_dist.directory=/www/www.apache.org/dist/java-repository
+maven.repo.apache_dist.username=jochen
+maven.repo.apache_dist.privatekey=/home/jwi/.ssh/id_dsa
+maven.repo.apache_dist.passphrase=
Added: webservices/commons/trunk/java5/project.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/java5/project.xml?rev=327584&view=auto
==============================================================================
--- webservices/commons/trunk/java5/project.xml (added)
+++ webservices/commons/trunk/java5/project.xml Fri Oct 21 14:31:00 2005
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <pomVersion>3</pomVersion>
+ <artifactId>ws-commons-java5</artifactId>
+ <name>ws-commons-java5</name>
+ <groupId>ws-commons-java5</groupId>
+ <currentVersion>1.0</currentVersion>
+ <organization>
+ <name>Apache Software Foundation</name>
+ <url>http://ws.apache.org/</url>
+ <logo>/images/project-logo.jpg</logo>
+ </organization>
+ <inceptionYear>2005</inceptionYear>
+ <package>javax.xml.namespace</package>
+ <description>This is a clean room implementation of several Java classes, which are a part of Java 5.
+The purpose is for use with elder Java versions.</description>
+ <shortDescription>Compatibility classes introduced in Java 5, for use with elder versions.</shortDescription>
+ <url>http://ws.apache.org/commons/java5</url>
+ <siteAddress>ws.apache.org</siteAddress>
+ <siteDirectory>/www/ws.apache.org/commons/java5</siteDirectory>
+ <distributionSite>people.apache.org</distributionSite>
+ <distributionDirectory>/www/www.apache.org/dist/ws/commons/java5</distributionDirectory>
+ <repository>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/trunk/java5</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservices/commons/trunk/java5</developerConnection>
+ <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/java5/</url>
+ </repository>
+ <developers>
+ <developer>
+ <name>Jochen Wiedmann</name>
+ <id>jochen</id>
+ <email>jochen.wiedmann@gmail.com</email>
+ </developer>
+ </developers>
+ <dependencies>
+ <dependency>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ <version>2.0.2</version>
+ <type>jar</type>
+ </dependency>
+ </dependencies>
+ <build>
+ <nagEmailAddress>general@ws.apache.org</nagEmailAddress>
+ <sourceDirectory>src/java</sourceDirectory>
+ </build>
+ <reports>
+ <report>maven-license-plugin</report>
+ <report>maven-javadoc-plugin</report>
+ </reports>
+</project>
+