Skip to content

Commit 3d3da98

Browse files
committed
Applying all of Niall's nice work for finder back over to csv (from which finder was copied)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/sandbox/csv/trunk@423752 13f79535-47bb-0310-9956-ffa450edef68
1 parent 069aa60 commit 3d3da98

10 files changed

Lines changed: 428 additions & 6 deletions

File tree

maven.xml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<!--
2+
Copyright 2006 The Apache Software Foundation
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<project default="java:jar"
17+
xmlns:ant="jelly:ant"
18+
xmlns:j="jelly:core">
19+
20+
<!-- ================================================================== -->
21+
<!-- Copy into the binary distribution -->
22+
<!-- ================================================================== -->
23+
<postGoal name="dist:prepare-bin-filesystem">
24+
25+
<copy todir="${maven.dist.bin.assembly.dir}">
26+
<fileset file='${basedir}/NOTICE.txt'/>
27+
<fileset file="${basedir}/RELEASE-NOTES.txt"/>
28+
</copy>
29+
30+
</postGoal>
31+
32+
<!-- ================================================================== -->
33+
<!-- Copy into the source distribution -->
34+
<!-- ================================================================== -->
35+
<postGoal name="dist:prepare-src-filesystem">
36+
37+
<!-- Copy the NOTICE -->
38+
<copy todir="${maven.dist.src.assembly.dir}">
39+
<fileset file='${basedir}/NOTICE.txt'/>
40+
<fileset file="${basedir}/checkstyle.xml"/>
41+
<fileset file="${basedir}/license-header.txt"/>
42+
</copy>
43+
44+
<!-- Copy xdoc files -->
45+
<copy todir="${maven.dist.src.assembly.dir}/xdocs">
46+
<fileset dir="xdocs"/>
47+
</copy>
48+
49+
</postGoal>
50+
51+
<!-- ================================================================== -->
52+
<!-- Create MD5 Check Sums -->
53+
<!-- ================================================================== -->
54+
<postGoal name="dist">
55+
56+
<!-- create checksum for jar -->
57+
<ant:checksum file="${maven.build.dir}/${maven.final.name}.jar" property="jar.md5"/>
58+
<ant:echo message="${jar.md5} *${maven.final.name}.jar"
59+
file="${maven.build.dir}/${maven.final.name}.jar.md5" />
60+
61+
<!-- create checksum for binary zip -->
62+
<ant:checksum file="${maven.dist.dir}/${maven.final.name}.zip" property="zip.md5"/>
63+
<ant:echo message="${zip.md5} *${maven.final.name}.zip"
64+
file="${maven.dist.dir}/${maven.final.name}.zip.md5" />
65+
66+
<!-- create checksum for binary tar.gz -->
67+
<ant:checksum file="${maven.dist.dir}/${maven.final.name}.tar.gz" property="tar.gz.md5"/>
68+
<ant:echo message="${tar.gz.md5} *${maven.final.name}.tar.gz"
69+
file="${maven.dist.dir}/${maven.final.name}.tar.gz.md5" />
70+
71+
<!-- create checksum for source zip -->
72+
<ant:checksum file="${maven.dist.dir}/${maven.final.name}-src.zip" property="src.zip.md5"/>
73+
<ant:echo message="${src.zip.md5} *${maven.final.name}-src.zip"
74+
file="${maven.dist.dir}/${maven.final.name}-src.zip.md5" />
75+
76+
<!-- create checksum for source tar.gz -->
77+
<ant:checksum file="${maven.dist.dir}/${maven.final.name}-src.tar.gz" property="src.tar.gz.md5"/>
78+
<ant:echo message="${src.tar.gz.md5} *${maven.final.name}-src.tar.gz"
79+
file="${maven.dist.dir}/${maven.final.name}-src.tar.gz.md5" />
80+
81+
</postGoal>
82+
83+
</project>

project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ maven.xdoc.poweredby.image=maven-feather.png
2121
maven.xdoc.version=${pom.currentVersion}
2222
maven.xdoc.developmentProcessUrl=http://jakarta.apache.org/commons/charter.html
2323
maven.xdoc.includeProjectDocumentation=yes
24+
maven.changes.issue.template=%URL%/browse/%ISSUE%
2425

2526
# Jar Manifest Additional Attributes
2627
maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK

project.xml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616
-->
1717
<project>
1818
<name>Commons CSV</name>
19-
<id>commons-csv</id>
19+
<groupId>org.apache.commons</groupId>
20+
<artifactId>commons-csv</artifactId>
2021
<logo>/images/csv-logo-white.png</logo>
2122
<inceptionYear>2005</inceptionYear>
2223
<shortDescription>Commons CSV</shortDescription>
2324
<description>
2425
Commons CSV is a component that parses comma separated value files.
2526
</description>
26-
<currentVersion>0.1-dev</currentVersion>
27-
<issueTrackingUrl>http://issues.apache.org/jira/browse/SANDBOX</issueTrackingUrl>
27+
<currentVersion>0.1-SNAPSHOT</currentVersion>
28+
<url>http://jakarta.apache.org/commons/${pom.artifactId.substring(8)}/</url>
29+
<package>org.apache.commons.${pom.artifactId.substring(8)}</package>
30+
<issueTrackingUrl>http://issues.apache.org/jira/</issueTrackingUrl>
2831
<siteAddress>people.apache.org</siteAddress>
2932
<organization>
3033
<name>The Apache Software Foundation</name>
@@ -42,13 +45,14 @@
4245
<name>Commons Dev List</name>
4346
<subscribe>commons-dev-subscribe@jakarta.apache.org</subscribe>
4447
<unsubscribe>commons-dev-unsubscribe@jakarta.apache.org</unsubscribe>
45-
<archive>http://mail-archives.apache.org/eyebrowse/SummarizeList?listName=commons-dev@jakarta.apache.org</archive>
48+
<archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/</archive>
4649
</mailingList>
50+
4751
<mailingList>
4852
<name>Commons User List</name>
4953
<subscribe>commons-user-subscribe@jakarta.apache.org</subscribe>
5054
<unsubscribe>commons-user-unsubscribe@jakarta.apache.org</unsubscribe>
51-
<archive>http://mail-archives.apache.org/eyebrowse/SummarizeList?listName=commons-user@jakarta.apache.org</archive>
55+
<archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/</archive>
5256
</mailingList>
5357
</mailingLists>
5458

@@ -69,6 +73,27 @@
6973
<dependency>
7074
<id>junit</id>
7175
<version>3.8.1</version>
76+
<url>http://www.junit.org/</url>
77+
<properties>
78+
<scope>test</scope>
79+
<comment>
80+
&lt;strong&gt;Test&lt;/strong&gt; - required
81+
only to run the unit tests.
82+
</comment>
83+
</properties>
84+
</dependency>
85+
<dependency>
86+
<groupId>maven</groupId>
87+
<artifactId>maven-xdoc-plugin</artifactId>
88+
<version>1.9.2</version>
89+
<url>http://maven.apache.org/reference/plugins/xdoc/</url>
90+
<type>plugin</type>
91+
<properties>
92+
<comment>
93+
&lt;strong&gt;Site&lt;/strong&gt; - required
94+
only to generate the Site/Documentation.
95+
</comment>
96+
</properties>
7297
</dependency>
7398
</dependencies>
7499

@@ -77,9 +102,18 @@
77102
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
78103
<unitTest>
79104
<includes>
80-
<include>**/*Test*</include>
105+
<include>**/*Test.java</include>
81106
</includes>
82107
</unitTest>
108+
<resources>
109+
<resource>
110+
<directory>${basedir}</directory>
111+
<targetPath>META-INF</targetPath>
112+
<includes>
113+
<include>NOTICE.txt</include>
114+
</includes>
115+
</resource>
116+
</resources>
83117
</build>
84118

85119
</project>

xdocs/changes.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Copyright 2006 The Apache Software Foundation
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
18+
<!--
19+
This file is used by the maven-changes-plugin to generate the release notes.
20+
Useful ways of finding items to add to this file are:
21+
22+
1. Add items when you fix a bug or add a feature (this makes the
23+
release process easy :-).
24+
25+
2. Do a JIRA search for tickets closed since the previous release.
26+
27+
3. Use the report generated by the maven-changelog-plugin to see all
28+
SVN commits. Set the project.properties' maven.changelog.range
29+
property to the number of days since the last release.
30+
31+
32+
The <action> type attribute can be add,update,fix,remove.
33+
-->
34+
35+
<document>
36+
<properties>
37+
<title>Release Notes</title>
38+
</properties>
39+
<body>
40+
41+
<release version="0.1" date="in SVN">
42+
</release>
43+
44+
</body>
45+
</document>

xdocs/cvs-usage.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="ISO-8859-1" ?>
2+
<!--
3+
/*
4+
* Copyright 2006 The Apache Software Foundation.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
-->
19+
20+
<document>
21+
<properties>
22+
<title>Source repository</title>
23+
<author email="commons-dev@jakarta.apache.org">Commons Documentation Team</author>
24+
</properties>
25+
<body>
26+
<!-- ================================================== -->
27+
<section name="Source repository">
28+
<p>
29+
Jakarta Commons CSV is hosted on the Apache
30+
<a href="http://subversion.tigris.org/">subversion</a> repository.
31+
</p>
32+
<p>
33+
The project URL is:<br />
34+
<code>http://svn.apache.org/repos/asf/jakarta/commons/sandbox/csv/trunk</code>
35+
</p>
36+
<p>
37+
The best way to view the repository is via the
38+
<a href="http://svn.apache.org/viewvc/jakarta/commons/sandbox/csv/trunk/">subversion viewer</a>.
39+
</p>
40+
<p>
41+
The alternative is to use the
42+
<a href="http://svn.apache.org/repos/asf/jakarta/commons/sandbox/csv/trunk/">native subversion</a> display.
43+
</p>
44+
<p>
45+
For more information on subversion and creating patches see the
46+
<a href="http://www.apache.org/dev/contributors.html">Apache Contributors Guide</a>.
47+
</p>
48+
</section>
49+
<!-- ================================================== -->
50+
</body>
51+
</document>

xdocs/downloads.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Copyright 2006 The Apache Software Foundation
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<document>
18+
<properties>
19+
<title>Downloads</title>
20+
</properties>
21+
22+
<body>
23+
<section name="Download CSV">
24+
25+
<subsection name="Releases">
26+
<p>
27+
There are currently no official downloads, and will not be until CSV moves out of the Sandbox.
28+
<!--
29+
Download the <a href="http://jakarta.apache.org/site/downloads/downloads_commons-csv.cgi">Latest Release</a>
30+
of Commons CSV.
31+
-->
32+
</p>
33+
34+
</subsection>
35+
36+
<subsection name="Nightly Builds">
37+
<p>
38+
<a href="http://people.apache.org/builds/jakarta-commons/nightly/commons-csv/">Nightly Builds</a>
39+
are built once a day from the current SVN HEAD. This is (nearly) the latest code and so should
40+
be treated with caution.
41+
</p>
42+
</subsection>
43+
<!--
44+
<subsection name="Archived Releases">
45+
<p>
46+
Older releases are retained by the Apache Software Foundation but are
47+
moved into a
48+
<a href="http://archive.apache.org/dist/jakarta/commons/csv/">
49+
special archive area</a>.
50+
</p>
51+
</subsection>
52+
-->
53+
</section>
54+
55+
</body>
56+
</document>

xdocs/examples.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Copyright 2006 The Apache Software Foundation.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<document>
18+
<properties>
19+
<title>Code Examples</title>
20+
<author email="commons-dev@jakarta.apache.org">Commons Documentation Team</author>
21+
</properties>
22+
<body>
23+
<!-- ================================================== -->
24+
<section name="Code Examples">
25+
<pre>
26+
</pre>
27+
</section>
28+
<!-- ================================================== -->
29+
</body>
30+
</document>

0 commit comments

Comments
 (0)