Dumping M1 (and the M1 generated Ant file) build

git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@608773 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2008-01-04 08:47:44 +00:00
parent 28a19cdb93
commit 520b7309e9
5 changed files with 7 additions and 428 deletions

168
build.xml
View File

@ -1,168 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--build.xml generated by maven from project.xml version 0.1-SNAPSHOT
on date September 18 2006, time 2225-->
<project default="jar" name="commons-csv" 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="testclassesdir" value="target/test-classes">
</property>
<property name="testreportdir" value="target/test-reports">
</property>
<property name="distdir" value="dist">
</property>
<property name="javadocdir" value="dist/docs/api">
</property>
<property name="final.name" value="commons-csv-0.1-SNAPSHOT">
</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-->
<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>
<mkdir dir="${classesdir}/META-INF">
</mkdir>
<copy todir="${classesdir}/META-INF">
<fileset dir=".">
<include name="NOTICE.txt">
</include>
</fileset>
</copy>
</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">
<mkdir dir="${testreportdir}">
</mkdir>
<junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
<sysproperty key="basedir" value=".">
</sysproperty>
<formatter type="xml">
</formatter>
<formatter usefile="false" type="plain">
</formatter>
<classpath>
<path refid="build.classpath">
</path>
<pathelement path="${testclassesdir}">
</pathelement>
<pathelement path="${classesdir}">
</pathelement>
</classpath>
<batchtest todir="${testreportdir}">
<fileset dir="src/test">
<include name="**/*Test.java">
</include>
</fileset>
</batchtest>
</junit>
</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">
<mkdir dir="${testclassesdir}">
</mkdir>
<javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
<src>
<pathelement location="src/test">
</pathelement>
</src>
<classpath>
<path refid="build.classpath">
</path>
<pathelement path="${classesdir}">
</pathelement>
</classpath>
</javac>
</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 &amp;copy; The Apache Software Foundation. All Rights Reserved.">
</property>
<property name="title" value="Commons CSV 0.1-SNAPSHOT API">
</property>
<javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.commons.csv.*">
<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.-->
<setproxy>
</setproxy>
<get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
</get>
<get dest="${libdir}/maven-xdoc-plugin-1.9.2.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/maven/plugins/maven-xdoc-plugin-1.9.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>

View File

@ -1,84 +0,0 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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 default="java:jar"
xmlns:ant="jelly:ant"
xmlns:j="jelly:core">
<!-- ================================================================== -->
<!-- Copy into the binary distribution -->
<!-- ================================================================== -->
<postGoal name="dist:prepare-bin-filesystem">
<copy todir="${maven.dist.bin.assembly.dir}">
<fileset file='${basedir}/NOTICE.txt'/>
<fileset file="${basedir}/RELEASE-NOTES.txt"/>
</copy>
</postGoal>
<!-- ================================================================== -->
<!-- Copy into the source distribution -->
<!-- ================================================================== -->
<postGoal name="dist:prepare-src-filesystem">
<!-- Copy the NOTICE -->
<copy todir="${maven.dist.src.assembly.dir}">
<fileset file='${basedir}/NOTICE.txt'/>
<fileset file="${basedir}/checkstyle.xml"/>
<fileset file="${basedir}/license-header.txt"/>
</copy>
<!-- Copy xdoc files -->
<copy todir="${maven.dist.src.assembly.dir}/src/site">
<fileset dir="src/site"/>
</copy>
</postGoal>
<!-- ================================================================== -->
<!-- Create MD5 Check Sums -->
<!-- ================================================================== -->
<postGoal name="dist">
<!-- create checksum for jar -->
<ant:checksum file="${maven.build.dir}/${maven.final.name}.jar" property="jar.md5"/>
<ant:echo message="${jar.md5} *${maven.final.name}.jar"
file="${maven.build.dir}/${maven.final.name}.jar.md5" />
<!-- create checksum for binary zip -->
<ant:checksum file="${maven.dist.dir}/${maven.final.name}.zip" property="zip.md5"/>
<ant:echo message="${zip.md5} *${maven.final.name}.zip"
file="${maven.dist.dir}/${maven.final.name}.zip.md5" />
<!-- create checksum for binary tar.gz -->
<ant:checksum file="${maven.dist.dir}/${maven.final.name}.tar.gz" property="tar.gz.md5"/>
<ant:echo message="${tar.gz.md5} *${maven.final.name}.tar.gz"
file="${maven.dist.dir}/${maven.final.name}.tar.gz.md5" />
<!-- create checksum for source zip -->
<ant:checksum file="${maven.dist.dir}/${maven.final.name}-src.zip" property="src.zip.md5"/>
<ant:echo message="${src.zip.md5} *${maven.final.name}-src.zip"
file="${maven.dist.dir}/${maven.final.name}-src.zip.md5" />
<!-- create checksum for source tar.gz -->
<ant:checksum file="${maven.dist.dir}/${maven.final.name}-src.tar.gz" property="src.tar.gz.md5"/>
<ant:echo message="${src.tar.gz.md5} *${maven.final.name}-src.tar.gz"
file="${maven.dist.dir}/${maven.final.name}-src.tar.gz.md5" />
</postGoal>
</project>

View File

@ -25,9 +25,14 @@
<developer> <developer>
<id>bayard</id> <id>bayard</id>
<name>Henri Yandell</name> <name>Henri Yandell</name>
<email>bayard AT apache DOT org</email> <email>bayard@apache.org</email>
<organization>Apache</organization>
</developer>
<developer>
<name>Martin van den Bemt</name>
<id>mvdb</id>
<email>mvdb@apache.org</email>
<organization>Apache</organization> <organization>Apache</organization>
<timezone>-5</timezone>
</developer> </developer>
</developers> </developers>
<contributors> <contributors>

View File

@ -1,54 +0,0 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.repo.remote=http://repo1.maven.org/maven
maven.compile.source=1.2
maven.compile.target=1.2
#maven.xdoc.jsl=../commons-build/commons-site.jsl
maven.xdoc.date=bottom
maven.xdoc.poweredby.image=maven-feather.png
maven.xdoc.version=${pom.currentVersion}
maven.xdoc.developmentProcessUrl=http://commons.apache.org/charter.html
maven.xdoc.includeProjectDocumentation=yes
maven.changes.issue.template=%URL%/browse/%ISSUE%
# Jar Manifest Additional Attributes
maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
maven.checkstyle.properties = checkstyle.xml
# uncomment the next line to work in offline mode (no jar download & no linkcheck)
#maven.mode.online=
maven.changelog.factory=org.apache.maven.svnlib.SvnChangeLogFactory
maven.javadoc.author=false
maven.javadoc.links=http://java.sun.com/products/jdk/1.4/docs/api
maven.compile.debug=on
maven.compile.deprecation=off
maven.compile.optimize=off
maven.jarResources.basedir=src/java
maven.jar.excludes=**/package.html
maven.junit.fork=true
maven.junit.sysproperties=org.xml.sax.driver
org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
clover.excludes=**/Test*.java

View File

@ -1,120 +0,0 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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>Commons CSV</name>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<logo>/images/csv-logo-white.png</logo>
<inceptionYear>2005</inceptionYear>
<shortDescription>Commons CSV</shortDescription>
<description>
Commons CSV is a component that parses comma separated value files.
</description>
<currentVersion>0.1-SNAPSHOT</currentVersion>
<url>http://commons.apache.org/${pom.artifactId.substring(8)}/</url>
<package>org.apache.commons.${pom.artifactId.substring(8)}</package>
<issueTrackingUrl>http://issues.apache.org/jira/</issueTrackingUrl>
<siteAddress>people.apache.org</siteAddress>
<organization>
<name>The Apache Software Foundation</name>
<url>http://jakarta.apache.org</url>
<logo>http://jakarta.apache.org/images/original-jakarta-logo.gif</logo>
</organization>
<repository>
<connection>scm:svn:http://svn.apache.org/repos/asf/commons/sandbox/csv/trunk</connection>
<url>http://svn.apache.org/viewvc/commons/sandbox/csv/trunk</url>
</repository>
<mailingLists>
<mailingList>
<name>Commons Dev List</name>
<subscribe>commons-dev-subscribe@jakarta.apache.org</subscribe>
<unsubscribe>commons-dev-unsubscribe@jakarta.apache.org</unsubscribe>
<archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/</archive>
</mailingList>
<mailingList>
<name>Commons User List</name>
<subscribe>commons-user-subscribe@jakarta.apache.org</subscribe>
<unsubscribe>commons-user-unsubscribe@jakarta.apache.org</unsubscribe>
<archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/</archive>
</mailingList>
</mailingLists>
<developers>
<developer>
<name>Henri Yandell</name>
<id>bayard</id>
<email>bayard@apache.org</email>
</developer>
<developer>
<name>Martin van den Bemt</name>
<id>mvdb</id>
<email>mvdb@apache.org</email>
</developer>
</developers>
<dependencies>
<dependency>
<id>junit</id>
<version>3.8.1</version>
<url>http://www.junit.org/</url>
<properties>
<scope>test</scope>
<comment>
&lt;strong&gt;Test&lt;/strong&gt; - required
only to run the unit tests.
</comment>
</properties>
</dependency>
<dependency>
<groupId>maven</groupId>
<artifactId>maven-xdoc-plugin</artifactId>
<version>1.9.2</version>
<url>http://maven.apache.org/reference/plugins/xdoc/</url>
<type>plugin</type>
<properties>
<comment>
&lt;strong&gt;Site&lt;/strong&gt; - required
only to generate the Site/Documentation.
</comment>
</properties>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest>
<resources>
<resource>
<directory>${basedir}</directory>
<targetPath>META-INF</targetPath>
<includes>
<include>NOTICE.txt</include>
</includes>
</resource>
</resources>
</build>
</project>