Skip to content

Commit aae50c5

Browse files
committed
moved cli over from the sandbox to commons proper
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@129767 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4868ac5 commit aae50c5

33 files changed

Lines changed: 4487 additions & 0 deletions

.cvsignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build.properties
2+
dist
3+
target
4+
velocity.log
5+
.project
6+
7+
maven.log

LICENSE.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* $Header: /home/cvs/jakarta-commons/LICENSE,v 1.4 2002/04/11 13:24:02 dion Exp $
3+
* $Revision: 1.4 $
4+
* $Date: 2002/04/11 13:24:02 $
5+
*
6+
* ====================================================================
7+
*
8+
* The Apache Software License, Version 1.1
9+
*
10+
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
11+
* reserved.
12+
*
13+
* Redistribution and use in source and binary forms, with or without
14+
* modification, are permitted provided that the following conditions
15+
* are met:
16+
*
17+
* 1. Redistributions of source code must retain the above copyright
18+
* notice, this list of conditions and the following disclaimer.
19+
*
20+
* 2. Redistributions in binary form must reproduce the above copyright
21+
* notice, this list of conditions and the following disclaimer in
22+
* the documentation and/or other materials provided with the
23+
* distribution.
24+
*
25+
* 3. The end-user documentation included with the redistribution, if
26+
* any, must include the following acknowlegement:
27+
* "This product includes software developed by the
28+
* Apache Software Foundation (http://www.apache.org/)."
29+
* Alternately, this acknowlegement may appear in the software itself,
30+
* if and wherever such third-party acknowlegements normally appear.
31+
*
32+
* 4. The names "The Jakarta Project", "Commons", and "Apache Software
33+
* Foundation" must not be used to endorse or promote products derived
34+
* from this software without prior written permission. For written
35+
* permission, please contact apache@apache.org.
36+
*
37+
* 5. Products derived from this software may not be called "Apache"
38+
* nor may "Apache" appear in their names without prior written
39+
* permission of the Apache Group.
40+
*
41+
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
42+
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
43+
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
44+
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
45+
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
48+
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
49+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
50+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
51+
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
52+
* SUCH DAMAGE.
53+
* ====================================================================
54+
*
55+
* This software consists of voluntary contributions made by many
56+
* individuals on behalf of the Apache Software Foundation. For more
57+
* information on the Apache Software Foundation, please see
58+
* <http://www.apache.org/>.
59+
*
60+
*/

README.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Jakarta Commons CLI
2+
===================
3+
4+
Welcome to the CLI component of the Jakarta Commons project.
5+
6+
This component requires the excellent Ant utility. It can
7+
be found here :
8+
9+
http://jakarta.apache.org/ant/
10+
11+
For testing the project, you will also need JUnit:
12+
13+
http://www.junit.org/
14+
15+
CLI uses the new jakarta-turbine-maven system for producing
16+
lovely metrics and such:
17+
18+
http://jakarta.apache.org/turbine/maven/
19+
20+
Once you have these three components installed and configured,
21+
simple type:
22+
23+
ant
24+
25+
The system will build and test itself.
26+
27+
For complete documentation and to create a local copy of the
28+
CLI project website, type:
29+
30+
ant maven:site
31+
32+
Good luck!
33+
34+
-The CLI Team

build-gump.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--
2+
3+
WARNING: This file is generated! Do not edit by hand!
4+
5+
-->
6+
7+
<project name="maven" default="jar" basedir=".">
8+
9+
<target
10+
name="jar">
11+
12+
<property name="maven.build.dir" value="target"/>
13+
<property name="maven.build.dest" value="${maven.build.dir}/classes"/>
14+
15+
<mkdir dir="${maven.build.dest}"/>
16+
17+
<javac
18+
destdir="${maven.build.dest}"
19+
excludes="**/package.html"
20+
debug="false"
21+
deprecation="false"
22+
optimize="false">
23+
<src>
24+
<pathelement location="src/java"/>
25+
</src>
26+
</javac>
27+
28+
<jar
29+
jarfile="${maven.build.dir}/${maven.final.name}.jar"
30+
basedir="${maven.build.dest}"
31+
excludes="**/package.html"
32+
/>
33+
34+
</target>
35+
36+
</project>

build.xml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
<?xml version="1.0"?>
2+
3+
<project name="cli" default="maven:jar" basedir=".">
4+
5+
<!-- Give user a chance to override without editing this file
6+
(and without typing -D each time they invoke a target) -->
7+
8+
<!-- Allow any user specific values to override the defaults -->
9+
<property file="${user.home}/build.properties" />
10+
11+
<!-- Allow user defaults for this project -->
12+
<property file="build.properties" />
13+
14+
<!-- Set default values for the build -->
15+
<property file="project.properties" />
16+
17+
<!-- maven:start -->
18+
19+
<!-- ================================================================== -->
20+
<!-- D E L E G A T O R S -->
21+
<!-- ================================================================== -->
22+
23+
<target name="maven:gump-descriptor">
24+
<ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
25+
</target>
26+
27+
<target name="maven:maven-update">
28+
<ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
29+
</target>
30+
31+
<target name="maven:update-jars">
32+
<ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
33+
</target>
34+
35+
<target name="maven:jar">
36+
<ant antfile="${maven.home}/plugins/core/build.xml" target="jar"/>
37+
</target>
38+
39+
<target name="maven:docs-quick">
40+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="docs-quick"/>
41+
</target>
42+
43+
<target name="maven:run-singletest">
44+
<ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
45+
</target>
46+
47+
<target name="maven:compile">
48+
<ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
49+
</target>
50+
51+
<target name="maven:jar-resources">
52+
<ant antfile="${maven.home}/plugins/core/build.xml" target="jar-resources"/>
53+
</target>
54+
55+
<target name="maven:fo">
56+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
57+
</target>
58+
59+
<target name="maven:cvs-change-log">
60+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
61+
</target>
62+
63+
<target name="maven:war">
64+
<ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
65+
</target>
66+
67+
<target name="maven:generate-reactor">
68+
<ant antfile="${maven.home}/build-reactor.xml" target="generate-reactor"/>
69+
</target>
70+
71+
<target name="maven:cross-ref">
72+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
73+
</target>
74+
75+
<target name="maven:deploy-site">
76+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
77+
</target>
78+
79+
<target name="maven:ear">
80+
<ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
81+
</target>
82+
83+
<target name="maven:install-jar">
84+
<ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
85+
</target>
86+
87+
<target name="maven:task-list">
88+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
89+
</target>
90+
91+
<target name="maven:docs">
92+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
93+
</target>
94+
95+
<target name="maven:site">
96+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
97+
</target>
98+
99+
<target name="maven:deploy-dist">
100+
<ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
101+
</target>
102+
103+
<target name="maven:javadocs">
104+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
105+
</target>
106+
107+
<target name="maven:announce">
108+
<ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
109+
</target>
110+
111+
<target name="maven:check-source">
112+
<ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
113+
</target>
114+
115+
<target name="maven:dist">
116+
<ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
117+
</target>
118+
119+
<target name="maven:dist-build">
120+
<ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
121+
</target>
122+
123+
<target name="maven:metrics">
124+
<ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
125+
</target>
126+
127+
<target name="maven:clean">
128+
<ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
129+
</target>
130+
131+
<target name="maven:env">
132+
<ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
133+
</target>
134+
135+
<target name="maven:test">
136+
<ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
137+
</target>
138+
139+
<target name="maven:pdf">
140+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
141+
</target>
142+
143+
<target name="maven:iutest">
144+
<ant antfile="${maven.home}/plugins/iutest/build.xml" target="iutest"/>
145+
</target>
146+
147+
<target name="maven:activity-log">
148+
<ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
149+
</target>
150+
151+
<target name="maven:verify-project">
152+
<ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
153+
</target>
154+
155+
<target name="maven:validate-pom">
156+
<ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
157+
</target>
158+
159+
<target name="maven:validate-war">
160+
<ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
161+
</target>
162+
163+
164+
<!-- maven:end -->
165+
166+
<!-- ========== Helper Targets ============================================ -->
167+
168+
<target name="clean" depends="maven:clean">
169+
<delete file="velocity.log"/>
170+
</target>
171+
172+
<target name="site" depends="maven:site"/>
173+
174+
<target name="test" depends="maven:test"/>
175+
176+
<target name="compile" depends="maven:compile, maven:jar-resources"/>
177+
178+
<target name="dist" depends="maven:dist-build"/>
179+
180+
</project>

gump.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<module name="commons-cli">
2+
3+
4+
<description>Commons CLI</description>
5+
<url href="http://jakarta.apache.org/commons/sandbox/cli.html"/>
6+
7+
<cvs repository="jakarta"/>
8+
9+
<!-- This is really the cvs module. We need to change this but -->
10+
<!-- I will leave this for now until everything works. -->
11+
12+
<project name="commons-cli">
13+
14+
<!-- Standard Maven target to produce Javadocs, source -->
15+
<!-- and binary distributions. -->
16+
<ant buildfile="build-gump.xml" target="jar">
17+
<property name="maven.final.name" value="commons-cli-@@DATE@@"/>
18+
</ant>
19+
20+
<package>org.apache.commons.cli</package>
21+
22+
<!-- All Maven projects need Ant and Xerces to build. -->
23+
<depend project="jakarta-ant"/>
24+
<depend project="xml-xerces"/>
25+
26+
<depend project="commons-logging"/>
27+
<depend project="commons-lang"/>
28+
29+
<work nested="target/classes"/>
30+
<home nested="target"/>
31+
<jar name="commons-cli-@@DATE@@.jar"/>
32+
<javadoc nested="docs/apidocs"/>
33+
34+
<nag from="Maven Developers &lt;turbine-maven-dev@jakarta.apache.org&gt;"
35+
to="commons-dev@jakarta.apache.org"/>
36+
37+
38+
</project>
39+
40+
</module>

project.properties

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# -------------------------------------------------------------------
2+
# P R O J E C T P R O P E R T I E S
3+
# -------------------------------------------------------------------
4+
5+
compile.debug = on
6+
compile.optimize = off
7+
compile.deprecation = off
8+
9+
maven.jarResources.basedir=${basedir}/src/java
10+
11+
# coding standards
12+
13+
maven.checkstyle.lcurly.type = ignore
14+
maven.checkstyle.lcurly.method = ignore
15+
maven.checkstyle.lcurly.other = ignore
16+
maven.checkstyle.header.file = LICENSE.txt
17+
maven.checkstyle.header.ignore.line = 1,2,3,4
18+
maven.checkstyle.const.pattern = ^[a-z][a-zA-Z0-9]*$
19+
maven.checkstyle.member.pattern = ^[_]?[a-z]?[a-zA-Z0-9]*$
20+
maven.checkstyle.ignore.line.len.pattern = ^[ \* \$]+[.]*
21+
22+
maven.checkstyle.javadoc.scope = protected
23+
24+
# disable these non-critical errors to highlight
25+
# more important ones like missing javadoc
26+
27+
maven.checkstyle.max.line.len = 100
28+
maven.checkstyle.ignore.whitespace = true
29+
maven.checkstyle.ignore.public.in.interface = true
30+
31+

0 commit comments

Comments
 (0)