kvm 0.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.rvmrc +1 -0
- data/AGPL-3.0 +661 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +32 -0
- data/LICENSE +23 -0
- data/README.md +73 -0
- data/Rakefile +48 -0
- data/bin/kvm +6 -0
- data/kvm.gemspec +28 -0
- data/lib/kvm.rb +286 -0
- data/lib/kvm/archive.rb +56 -0
- data/lib/kvm/artifact.rb +28 -0
- data/lib/kvm/db/jdbc_adapter.rb +71 -0
- data/lib/kvm/db/oracle.rb +23 -0
- data/lib/kvm/db/types.rb +11 -0
- data/lib/kvm/impex.rb +109 -0
- data/lib/kvm/log.rb +7 -0
- data/lib/kvm/resource.rb +72 -0
- data/lib/kvm/rice_release.rb +79 -0
- data/lib/kvm/rice_release_generated_dataset.rb +68 -0
- data/lib/kvm/source.rb +33 -0
- data/lib/kvm/subversion.rb +52 -0
- data/lib/kvm/version.rb +3 -0
- data/lib/kvm/wallet.rb +64 -0
- data/support/ant/INSTALL +2 -0
- data/support/ant/KEYS +1398 -0
- data/support/ant/LICENSE +272 -0
- data/support/ant/NOTICE +6 -0
- data/support/ant/README +97 -0
- data/support/ant/WHATSNEW +5467 -0
- data/support/ant/bin/ant +335 -0
- data/support/ant/bin/ant.bat +218 -0
- data/support/ant/bin/ant.cmd +93 -0
- data/support/ant/bin/antRun +24 -0
- data/support/ant/bin/antRun.bat +50 -0
- data/support/ant/bin/antRun.pl +66 -0
- data/support/ant/bin/antenv.cmd +98 -0
- data/support/ant/bin/complete-ant-cmd.pl +114 -0
- data/support/ant/bin/envset.cmd +131 -0
- data/support/ant/bin/lcp.bat +31 -0
- data/support/ant/bin/runant.pl +153 -0
- data/support/ant/bin/runant.py +102 -0
- data/support/ant/bin/runrc.cmd +60 -0
- data/support/ant/etc/ant-bootstrap.jar +0 -0
- data/support/ant/etc/changelog.xsl +148 -0
- data/support/ant/etc/checkstyle/checkstyle-frames.xsl +299 -0
- data/support/ant/etc/checkstyle/checkstyle-text.xsl +34 -0
- data/support/ant/etc/checkstyle/checkstyle-xdoc.xsl +130 -0
- data/support/ant/etc/coverage-frames.xsl +489 -0
- data/support/ant/etc/jdepend-frames.xsl +487 -0
- data/support/ant/etc/jdepend.xsl +276 -0
- data/support/ant/etc/junit-frames-xalan1.xsl +733 -0
- data/support/ant/etc/junit-frames.xsl +902 -0
- data/support/ant/etc/junit-noframes.xsl +478 -0
- data/support/ant/etc/log.xsl +203 -0
- data/support/ant/etc/maudit-frames.xsl +503 -0
- data/support/ant/etc/mmetrics-frames.xsl +1026 -0
- data/support/ant/etc/tagdiff.xsl +179 -0
- data/support/ant/fetch.xml +343 -0
- data/support/ant/get-m2.xml +121 -0
- data/support/ant/lib/README +3 -0
- data/support/ant/lib/ant-antlr.jar +0 -0
- data/support/ant/lib/ant-antlr.pom +76 -0
- data/support/ant/lib/ant-apache-bcel.jar +0 -0
- data/support/ant/lib/ant-apache-bcel.pom +72 -0
- data/support/ant/lib/ant-apache-bsf.jar +0 -0
- data/support/ant/lib/ant-apache-bsf.pom +75 -0
- data/support/ant/lib/ant-apache-log4j.jar +0 -0
- data/support/ant/lib/ant-apache-log4j.pom +70 -0
- data/support/ant/lib/ant-apache-oro.jar +0 -0
- data/support/ant/lib/ant-apache-oro.pom +75 -0
- data/support/ant/lib/ant-apache-regexp.jar +0 -0
- data/support/ant/lib/ant-apache-regexp.pom +71 -0
- data/support/ant/lib/ant-apache-resolver.jar +0 -0
- data/support/ant/lib/ant-apache-resolver.pom +70 -0
- data/support/ant/lib/ant-apache-xalan2.jar +0 -0
- data/support/ant/lib/ant-apache-xalan2.pom +95 -0
- data/support/ant/lib/ant-commons-logging.jar +0 -0
- data/support/ant/lib/ant-commons-logging.pom +71 -0
- data/support/ant/lib/ant-commons-net.jar +0 -0
- data/support/ant/lib/ant-commons-net.pom +76 -0
- data/support/ant/lib/ant-jai.jar +0 -0
- data/support/ant/lib/ant-jai.pom +85 -0
- data/support/ant/lib/ant-javamail.jar +0 -0
- data/support/ant/lib/ant-javamail.pom +79 -0
- data/support/ant/lib/ant-jdepend.jar +0 -0
- data/support/ant/lib/ant-jdepend.pom +73 -0
- data/support/ant/lib/ant-jmf.jar +0 -0
- data/support/ant/lib/ant-jmf.pom +66 -0
- data/support/ant/lib/ant-jsch.jar +0 -0
- data/support/ant/lib/ant-jsch.pom +75 -0
- data/support/ant/lib/ant-junit.jar +0 -0
- data/support/ant/lib/ant-junit.pom +101 -0
- data/support/ant/lib/ant-junit4.jar +0 -0
- data/support/ant/lib/ant-junit4.pom +71 -0
- data/support/ant/lib/ant-launcher.jar +0 -0
- data/support/ant/lib/ant-launcher.pom +58 -0
- data/support/ant/lib/ant-netrexx.jar +0 -0
- data/support/ant/lib/ant-netrexx.pom +99 -0
- data/support/ant/lib/ant-parent.pom +120 -0
- data/support/ant/lib/ant-swing.jar +0 -0
- data/support/ant/lib/ant-swing.pom +67 -0
- data/support/ant/lib/ant-testutil.jar +0 -0
- data/support/ant/lib/ant-testutil.pom +75 -0
- data/support/ant/lib/ant.jar +0 -0
- data/support/ant/lib/ant.pom +222 -0
- data/support/ant/lib/libraries.properties +65 -0
- data/test/data/files/rice-0.0.0.0-bin.tar.gz +0 -0
- data/test/data/svn/README.txt +5 -0
- data/test/data/svn/conf/authz +32 -0
- data/test/data/svn/conf/passwd +8 -0
- data/test/data/svn/conf/svnserve.conf +47 -0
- data/test/data/svn/db/current +1 -0
- data/test/data/svn/db/format +2 -0
- data/test/data/svn/db/fs-type +1 -0
- data/test/data/svn/db/fsfs.conf +37 -0
- data/test/data/svn/db/min-unpacked-rev +1 -0
- data/test/data/svn/db/rep-cache.db +0 -0
- data/test/data/svn/db/revprops/0/0 +5 -0
- data/test/data/svn/db/revprops/0/1 +13 -0
- data/test/data/svn/db/revs/0/0 +11 -0
- data/test/data/svn/db/revs/0/1 +0 -0
- data/test/data/svn/db/txn-current +1 -0
- data/test/data/svn/db/txn-current-lock +0 -0
- data/test/data/svn/db/uuid +1 -0
- data/test/data/svn/db/write-lock +0 -0
- data/test/data/svn/format +1 -0
- data/test/data/svn/hooks/post-commit.tmpl +50 -0
- data/test/data/svn/hooks/post-lock.tmpl +44 -0
- data/test/data/svn/hooks/post-revprop-change.tmpl +56 -0
- data/test/data/svn/hooks/post-unlock.tmpl +42 -0
- data/test/data/svn/hooks/pre-commit.tmpl +81 -0
- data/test/data/svn/hooks/pre-lock.tmpl +71 -0
- data/test/data/svn/hooks/pre-revprop-change.tmpl +66 -0
- data/test/data/svn/hooks/pre-unlock.tmpl +63 -0
- data/test/data/svn/hooks/start-commit.tmpl +65 -0
- data/test/data/svn/locks/db-logs.lock +3 -0
- data/test/data/svn/locks/db.lock +3 -0
- data/test/helper.rb +146 -0
- data/test/int_test_generate_sql.rb +58 -0
- data/test/test_archive.rb +35 -0
- data/test/test_generate_sql.rb +0 -0
- data/test/test_rice_release.rb +61 -0
- data/test/test_rice_release_generated_dataset.rb +12 -0
- data/test/test_source.rb +31 -0
- data/test/test_subversion.rb +20 -0
- metadata +298 -0
@@ -0,0 +1,179 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. 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
|
+
<!-- a stylesheet to display changelogs ala netbeans -->
|
19
|
+
<xsl:stylesheet
|
20
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
21
|
+
version="1.0">
|
22
|
+
<xsl:param name="title"/>
|
23
|
+
<xsl:param name="module"/>
|
24
|
+
<xsl:param name="cvsweb"/>
|
25
|
+
|
26
|
+
<xsl:output method="html" indent="yes"/>
|
27
|
+
|
28
|
+
<!-- Copy standard document elements. Elements that
|
29
|
+
should be ignored must be filtered by apply-templates
|
30
|
+
tags. -->
|
31
|
+
<xsl:template match="*">
|
32
|
+
<xsl:copy>
|
33
|
+
<xsl:copy-of select="attribute::*[. != '']"/>
|
34
|
+
<xsl:apply-templates/>
|
35
|
+
</xsl:copy>
|
36
|
+
</xsl:template>
|
37
|
+
|
38
|
+
<xsl:template match="tagdiff">
|
39
|
+
<html>
|
40
|
+
<head>
|
41
|
+
<title><xsl:value-of select="$title"/></title>
|
42
|
+
<style type="text/css">
|
43
|
+
body, p {
|
44
|
+
font-family: verdana,arial,helvetica;
|
45
|
+
font-size: 80%;
|
46
|
+
color:#000000;
|
47
|
+
}
|
48
|
+
.dateAndAuthor {
|
49
|
+
font-family: verdana,arial,helvetica;
|
50
|
+
font-size: 80%;
|
51
|
+
font-weight: bold;
|
52
|
+
text-align:left;
|
53
|
+
background:#a6caf0;
|
54
|
+
}
|
55
|
+
tr, td{
|
56
|
+
font-family: verdana,arial,helvetica;
|
57
|
+
font-size: 80%;
|
58
|
+
background:#eeeee0;
|
59
|
+
}
|
60
|
+
</style>
|
61
|
+
</head>
|
62
|
+
<body link="#000000" alink="#000000" vlink="#000000" text="#000000">
|
63
|
+
<h1>
|
64
|
+
<a name="top"><xsl:value-of select="$title"/></a>
|
65
|
+
</h1>
|
66
|
+
Tagdiff between <xsl:value-of select="@startTag"/> <xsl:value-of select="@startDate"/> and
|
67
|
+
<xsl:value-of select="@endTag"/> <xsl:value-of select="@endDate"/>
|
68
|
+
<p align="right">Designed for use with <a href="http://ant.apache.org/">Ant</a>.</p>
|
69
|
+
<hr size="2"/>
|
70
|
+
<a name="TOP"/>
|
71
|
+
<table width="100%">
|
72
|
+
<tr>
|
73
|
+
<td align="right">
|
74
|
+
<a href="#New">New Files</a> |
|
75
|
+
<a href="#Modified">Modified Files</a> |
|
76
|
+
<a href="#Removed">Removed Files</a>
|
77
|
+
</td>
|
78
|
+
</tr>
|
79
|
+
</table>
|
80
|
+
<table border="0" width="100%" cellpadding="3" cellspacing="1">
|
81
|
+
<xsl:call-template name="show-entries">
|
82
|
+
<xsl:with-param name="title">New Files</xsl:with-param>
|
83
|
+
<xsl:with-param name="anchor">New</xsl:with-param>
|
84
|
+
<xsl:with-param name="entries" select=".//entry[file/revision][not(file/prevrevision)]"/>
|
85
|
+
</xsl:call-template>
|
86
|
+
|
87
|
+
<xsl:call-template name="show-entries">
|
88
|
+
<xsl:with-param name="title">Modified Files</xsl:with-param>
|
89
|
+
<xsl:with-param name="anchor">Modified</xsl:with-param>
|
90
|
+
<xsl:with-param name="entries" select=".//entry[file/revision][file/prevrevision]"/>
|
91
|
+
</xsl:call-template>
|
92
|
+
|
93
|
+
<!-- change to entries select to address bug #36827 -->
|
94
|
+
<xsl:call-template name="show-entries">
|
95
|
+
<xsl:with-param name="title">Removed Files</xsl:with-param>
|
96
|
+
<xsl:with-param name="anchor">Removed</xsl:with-param>
|
97
|
+
<xsl:with-param name="entries" select=".//entry[not(file/revision)][file/prevrevision]"/>
|
98
|
+
</xsl:call-template>
|
99
|
+
</table>
|
100
|
+
|
101
|
+
</body>
|
102
|
+
</html>
|
103
|
+
</xsl:template>
|
104
|
+
|
105
|
+
<xsl:template name="show-entries">
|
106
|
+
<xsl:param name="title"/>
|
107
|
+
<xsl:param name="anchor"/>
|
108
|
+
<xsl:param name="entries"/>
|
109
|
+
<tr>
|
110
|
+
<td colspan="2" class="dateAndAuthor">
|
111
|
+
<a>
|
112
|
+
<xsl:attribute name="name"><xsl:value-of select="$anchor"/></xsl:attribute>
|
113
|
+
<xsl:value-of select="$title"/> - <xsl:value-of select="count($entries)"/> entries
|
114
|
+
</a>
|
115
|
+
<a href="#TOP">(back to top)</a>
|
116
|
+
</td>
|
117
|
+
</tr>
|
118
|
+
<tr>
|
119
|
+
<td width="20">
|
120
|
+
<xsl:text> </xsl:text>
|
121
|
+
</td>
|
122
|
+
<td>
|
123
|
+
<ul>
|
124
|
+
<xsl:apply-templates select="$entries"/>
|
125
|
+
</ul>
|
126
|
+
</td>
|
127
|
+
</tr>
|
128
|
+
</xsl:template>
|
129
|
+
|
130
|
+
<xsl:template match="entry">
|
131
|
+
<xsl:apply-templates select="file"/>
|
132
|
+
</xsl:template>
|
133
|
+
|
134
|
+
<xsl:template match="date">
|
135
|
+
<i><xsl:value-of select="."/></i>
|
136
|
+
</xsl:template>
|
137
|
+
|
138
|
+
<xsl:template match="time">
|
139
|
+
<i><xsl:value-of select="."/></i>
|
140
|
+
</xsl:template>
|
141
|
+
|
142
|
+
<xsl:template match="author">
|
143
|
+
<i>
|
144
|
+
<a>
|
145
|
+
<xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
|
146
|
+
<xsl:value-of select="."/>
|
147
|
+
</a>
|
148
|
+
</i>
|
149
|
+
</xsl:template>
|
150
|
+
|
151
|
+
<xsl:template match="file">
|
152
|
+
<li>
|
153
|
+
<a target="_new">
|
154
|
+
<xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" /></xsl:attribute>
|
155
|
+
<xsl:value-of select="name" />
|
156
|
+
</a>
|
157
|
+
<xsl:if test="string-length(prevrevision) > 0 or string-length(revision) > 0">
|
158
|
+
<xsl:text> </xsl:text>
|
159
|
+
<a target="_new">
|
160
|
+
<xsl:choose>
|
161
|
+
<xsl:when test="string-length(prevrevision) = 0 ">
|
162
|
+
<xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?rev=<xsl:value-of select="revision" />&content-type=text/x-cvsweb-markup</xsl:attribute>
|
163
|
+
</xsl:when>
|
164
|
+
<xsl:otherwise>
|
165
|
+
<xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?r1=<xsl:value-of select="revision" />&r2=<xsl:value-of select="prevrevision"/>&diff_format=h</xsl:attribute>
|
166
|
+
</xsl:otherwise>
|
167
|
+
</xsl:choose> (<xsl:if test="count(prevrevision) > 0"> <xsl:value-of select="prevrevision"/> --> </xsl:if> <xsl:value-of select="revision"/>)
|
168
|
+
</a>
|
169
|
+
</xsl:if>
|
170
|
+
</li>
|
171
|
+
</xsl:template>
|
172
|
+
|
173
|
+
<!-- Any elements within a msg are processed,
|
174
|
+
so that we can preserve HTML tags. -->
|
175
|
+
<xsl:template match="msg">
|
176
|
+
<b><xsl:apply-templates/></b>
|
177
|
+
</xsl:template>
|
178
|
+
|
179
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,343 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
|
3
|
+
<!--
|
4
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
5
|
+
contributor license agreements. See the NOTICE file distributed with
|
6
|
+
this work for additional information regarding copyright ownership.
|
7
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
8
|
+
(the "License"); you may not use this file except in compliance with
|
9
|
+
the License. You may obtain a copy of the License at
|
10
|
+
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
See the License for the specific language governing permissions and
|
17
|
+
limitations under the License.
|
18
|
+
-->
|
19
|
+
<!--
|
20
|
+
=======================================================================
|
21
|
+
Build file to fetch optional libraries for Apache Ant
|
22
|
+
=======================================================================
|
23
|
+
-->
|
24
|
+
<project name="fetch" default="all" basedir=".">
|
25
|
+
|
26
|
+
<description>
|
27
|
+
This build file downloads JAR files that optional Ant tasks use,
|
28
|
+
and installs them in a location that is accessible the next time Ant runs.
|
29
|
+
|
30
|
+
You can choose three locations, by going -Ddest=LOCATION on the command line
|
31
|
+
-Ddest=user user lib dir ${user.home}/.ant/lib
|
32
|
+
-Ddest=system ant lib dir ${ant.home}/lib
|
33
|
+
-Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)
|
34
|
+
|
35
|
+
You may also need to set proxy settings. On Java1.5, Ant tries to get
|
36
|
+
this from the OS, unless you use the -noproxy option.
|
37
|
+
|
38
|
+
Proxies can be configured manually setting the JVM proxy values in the
|
39
|
+
ANT_OPTS environment variable.
|
40
|
+
|
41
|
+
For example, to set the proxy up in the tcsh shell, the command would be
|
42
|
+
something like:
|
43
|
+
|
44
|
+
For csh/tcsh:
|
45
|
+
setenv ANT_OPTS "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
|
46
|
+
For bash:
|
47
|
+
export ANT_OPTS="-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
|
48
|
+
For Windows, set the environment variable in the appropriate dialog box
|
49
|
+
and open a new console. or, by hand
|
50
|
+
set ANT_OPTS = -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080
|
51
|
+
</description>
|
52
|
+
|
53
|
+
<!-- Give user a chance to override without editing this file
|
54
|
+
(and without typing -D each time it compiles it) -->
|
55
|
+
<property file="${user.home}/.ant/ant.properties"/>
|
56
|
+
<property name="lib.dir" location="lib" />
|
57
|
+
<property name="optional.dir" location="${lib.dir}/optional" />
|
58
|
+
<property name="userlib.dir" location="${user.home}/.ant/lib" />
|
59
|
+
|
60
|
+
<!-- load in our properties table -->
|
61
|
+
<property file="${lib.dir}/libraries.properties"/>
|
62
|
+
|
63
|
+
<!-- Temporary cache for working files -->
|
64
|
+
<property name="temp.dir" location="${user.home}/.ant/tempcache" />
|
65
|
+
<property name="keep.temp.dir" value="true" />
|
66
|
+
|
67
|
+
<import file="get-m2.xml" />
|
68
|
+
|
69
|
+
<target name="pick-dest">
|
70
|
+
<fail>
|
71
|
+
<condition>
|
72
|
+
<not>
|
73
|
+
<isset property="dest"/>
|
74
|
+
</not>
|
75
|
+
</condition>ERROR
|
76
|
+
Set -Ddest=LOCATION on the command line
|
77
|
+
-Ddest=user user lib dir ${user.home}/.ant/lib
|
78
|
+
-Ddest=system ant lib dir ${ant.home}/lib
|
79
|
+
-Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)
|
80
|
+
</fail>
|
81
|
+
|
82
|
+
<condition property="dest.dir"
|
83
|
+
value="${lib.dir}">
|
84
|
+
<equals arg1="${dest}" arg2="system" />
|
85
|
+
</condition>
|
86
|
+
<condition property="dest.dir"
|
87
|
+
value="${optional.dir}">
|
88
|
+
<equals arg1="${dest}" arg2="optional" />
|
89
|
+
</condition>
|
90
|
+
<condition property="dest.dir"
|
91
|
+
value="${userlib.dir}">
|
92
|
+
<equals arg1="${dest}" arg2="user" />
|
93
|
+
</condition>
|
94
|
+
<fail unless="dest.dir">Unknown destination : ${dest}</fail>
|
95
|
+
<echo>Downloading to ${dest.dir}</echo>
|
96
|
+
<property name="m2.dest.dir" value="${dest.dir}" />
|
97
|
+
</target>
|
98
|
+
|
99
|
+
|
100
|
+
<target name="macros" depends="pick-dest,get-m2"
|
101
|
+
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
|
102
|
+
|
103
|
+
<macrodef name="f2">
|
104
|
+
<attribute name="project" />
|
105
|
+
<attribute name="archive" default="@{project}"/>
|
106
|
+
<attribute name="repository" default="${m2.repo}"/>
|
107
|
+
<sequential>
|
108
|
+
<fail>
|
109
|
+
Unknown archive @{archive} -no property @{archive}.version defined in ${lib.dir}/libraries.properties.
|
110
|
+
<condition>
|
111
|
+
<not>
|
112
|
+
<isset property="@{archive}.version"/>
|
113
|
+
</not>
|
114
|
+
</condition>
|
115
|
+
</fail>
|
116
|
+
<artifact:dependencies pathID="@{archive}.path">
|
117
|
+
<dependency groupID="@{project}"
|
118
|
+
artifactID="@{archive}"
|
119
|
+
version="${@{archive}.version}"/>
|
120
|
+
<remoteRepository url="@{repository}" />
|
121
|
+
</artifact:dependencies>
|
122
|
+
<!-- now we are left with the problem of getting the files
|
123
|
+
into our directory -->
|
124
|
+
<copy todir="${dest.dir}">
|
125
|
+
<path refid="@{archive}.path" />
|
126
|
+
<flattenmapper/>
|
127
|
+
</copy>
|
128
|
+
</sequential>
|
129
|
+
</macrodef>
|
130
|
+
</target>
|
131
|
+
|
132
|
+
<target name="nonm2-macros" depends="pick-dest">
|
133
|
+
<macrodef name="get-ftp-file">
|
134
|
+
<attribute name="host" />
|
135
|
+
<attribute name="port" default="21"/>
|
136
|
+
<attribute name="remotedir" />
|
137
|
+
<attribute name="filename" />
|
138
|
+
<attribute name="localdir" default="${dest.dir}" />
|
139
|
+
<attribute name="user" default="anonymous"/>
|
140
|
+
<attribute name="pw" default="anonymous"/>
|
141
|
+
<sequential>
|
142
|
+
<ftp server="@{host}" port="@{port}" userid="@{user}" password="@{pw}" passive="true"
|
143
|
+
remotedir="@{remotedir}" action="get" depends="true" preserveLastModified="true"
|
144
|
+
skipFailedTransfers="true">
|
145
|
+
<fileset dir="@{localdir}">
|
146
|
+
<include name="@{filename}" />
|
147
|
+
</fileset>
|
148
|
+
</ftp>
|
149
|
+
</sequential>
|
150
|
+
</macrodef>
|
151
|
+
|
152
|
+
</target>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<!-- any init stuff -->
|
157
|
+
<target name="init" depends="macros" />
|
158
|
+
|
159
|
+
<target name="init-no-m2" depends="nonm2-macros" />
|
160
|
+
|
161
|
+
<target name="init-cache">
|
162
|
+
<available property="temp.cache.already.exists" file="${temp.dir}" type="dir" />
|
163
|
+
<condition property="user.wants.temp.cache">
|
164
|
+
<and>
|
165
|
+
<isset property="keep.temp.dir" />
|
166
|
+
<not>
|
167
|
+
<or>
|
168
|
+
<equals arg1="${keep.temp.dir}" arg2="false" casesensitive="false" />
|
169
|
+
<equals arg1="${keep.temp.dir}" arg2="no" casesensitive="false" />
|
170
|
+
<equals arg1="${keep.temp.dir}" arg2="off" casesensitive="false" />
|
171
|
+
</or>
|
172
|
+
</not>
|
173
|
+
</and>
|
174
|
+
</condition>
|
175
|
+
<condition property="delete.temp.cache">
|
176
|
+
<and>
|
177
|
+
<not>
|
178
|
+
<isset property="temp.cache.already.exists" />
|
179
|
+
</not>
|
180
|
+
<not>
|
181
|
+
<isset property="user.wants.temp.cache" />
|
182
|
+
</not>
|
183
|
+
</and>
|
184
|
+
</condition>
|
185
|
+
</target>
|
186
|
+
|
187
|
+
<target name="-setup-temp-cache" depends="init-cache" unless="temp.cache.already.exists"
|
188
|
+
description="Setup temporary cache for downloaded files">
|
189
|
+
<mkdir dir="${temp.dir}" />
|
190
|
+
</target>
|
191
|
+
|
192
|
+
<target name="-cleanup-temp-cache" depends="init-cache" if="delete.temp.cache"
|
193
|
+
description="Gets rid of the temporary cache directory">
|
194
|
+
<delete dir="${temp.dir}" />
|
195
|
+
</target>
|
196
|
+
|
197
|
+
|
198
|
+
<target name="diag" depends="init">
|
199
|
+
<echoproperties />
|
200
|
+
</target>
|
201
|
+
|
202
|
+
<target name="logging"
|
203
|
+
description="load logging libraries"
|
204
|
+
depends="init">
|
205
|
+
<f2 project="log4j" />
|
206
|
+
<f2 project="commons-logging" archive="commons-logging-api" />
|
207
|
+
</target>
|
208
|
+
|
209
|
+
<target name="junit"
|
210
|
+
description="load junit libraries"
|
211
|
+
depends="init">
|
212
|
+
<f2 project="junit" />
|
213
|
+
</target>
|
214
|
+
|
215
|
+
<target name="xml"
|
216
|
+
description="load full XML libraries (xalan, resolver)"
|
217
|
+
depends="init">
|
218
|
+
<f2 project="xalan" />
|
219
|
+
<f2 project="xml-resolver" />
|
220
|
+
</target>
|
221
|
+
|
222
|
+
<target name="networking"
|
223
|
+
description="load networking libraries (commons-net; jsch)"
|
224
|
+
depends="init">
|
225
|
+
<f2 project="commons-net" />
|
226
|
+
<f2 project="com.jcraft" archive="jsch"/>
|
227
|
+
<available property="have.commons.net" classname="org.apache.commons.net.ftp.FTPClientConfig"/>
|
228
|
+
</target>
|
229
|
+
|
230
|
+
<target name="regexp"
|
231
|
+
description="load regexp libraries"
|
232
|
+
depends="init">
|
233
|
+
<f2 project="regexp" />
|
234
|
+
<f2 project="oro" />
|
235
|
+
</target>
|
236
|
+
|
237
|
+
<target name="antlr"
|
238
|
+
description="load antlr libraries"
|
239
|
+
depends="init">
|
240
|
+
<f2 project="antlr" />
|
241
|
+
</target>
|
242
|
+
|
243
|
+
<target name="bcel"
|
244
|
+
description="load bcel libraries"
|
245
|
+
depends="init">
|
246
|
+
<f2 project="bcel" />
|
247
|
+
</target>
|
248
|
+
|
249
|
+
<target name="jdepend"
|
250
|
+
description="load jdepend libraries"
|
251
|
+
depends="init">
|
252
|
+
<f2 project="jdepend" />
|
253
|
+
</target>
|
254
|
+
|
255
|
+
<target name="bsf"
|
256
|
+
description="load bsf libraries"
|
257
|
+
depends="init">
|
258
|
+
<f2 project="bsf" />
|
259
|
+
</target>
|
260
|
+
|
261
|
+
<target name="jruby"
|
262
|
+
description="load jruby"
|
263
|
+
depends="bsf">
|
264
|
+
<f2 project="org.jruby" archive="jruby"/>
|
265
|
+
</target>
|
266
|
+
|
267
|
+
<target name="beanshell"
|
268
|
+
description="load beanshell support"
|
269
|
+
depends="bsf">
|
270
|
+
<f2 project="org.beanshell" archive="bsh"/>
|
271
|
+
<f2 project="org.beanshell" archive="bsh-core"/>
|
272
|
+
</target>
|
273
|
+
|
274
|
+
<target name="jython"
|
275
|
+
description="load jython"
|
276
|
+
depends="bsf">
|
277
|
+
<f2 project="jython" archive="jython"/>
|
278
|
+
</target>
|
279
|
+
|
280
|
+
<target name="rhino"
|
281
|
+
description="load rhino"
|
282
|
+
depends="bsf">
|
283
|
+
<f2 project="rhino" archive="js"/>
|
284
|
+
</target>
|
285
|
+
|
286
|
+
<target name="script"
|
287
|
+
description="load script languages (except jython)"
|
288
|
+
depends="bsf,jruby,beanshell,rhino"/>
|
289
|
+
|
290
|
+
<target name="debugging"
|
291
|
+
description="internal ant debugging"
|
292
|
+
depends="init">
|
293
|
+
<f2 project="which" />
|
294
|
+
</target>
|
295
|
+
|
296
|
+
<target name="javamail" depends="init"
|
297
|
+
description="load javamail">
|
298
|
+
<f2 project="javax.mail" archive="mail"/>
|
299
|
+
</target>
|
300
|
+
|
301
|
+
<target name="jspc" depends="init" description="loads Jasper">
|
302
|
+
<f2 project="tomcat" archive="jasper-compiler"/>
|
303
|
+
<f2 project="tomcat" archive="jasper-runtime"/>
|
304
|
+
<f2 project="javax.servlet" archive="servlet-api"/>
|
305
|
+
</target>
|
306
|
+
|
307
|
+
<target name="jai" depends="init"
|
308
|
+
description="load java advanced imaging">
|
309
|
+
<f2 project="javax.media" archive="jai-core" repository="http://repository.jboss.org/maven2"/>
|
310
|
+
<f2 project="com.sun.media" archive="jai-codec" repository="http://repository.jboss.org/maven2"/>
|
311
|
+
</target>
|
312
|
+
|
313
|
+
<target name="netrexx" depends="init-no-m2,-setup-temp-cache,networking,-fetch-netrexx,-fetch-netrexx-no-commons-net,-cleanup-temp-cache"
|
314
|
+
description="load NetRexx compiler" />
|
315
|
+
|
316
|
+
<target name="-fetch-netrexx" depends="-setup-temp-cache"
|
317
|
+
description="FTPs NetRexx compiler from IBM site" if="have.commons.net">
|
318
|
+
<get-ftp-file host="ftp.software.ibm.com" remotedir="/software/awdtools/netrexx"
|
319
|
+
filename="NetRexx.zip" localdir="${temp.dir}" />
|
320
|
+
<copy todir="${dest.dir}" flatten="true">
|
321
|
+
<zipfileset src="${temp.dir}/NetRexx.zip">
|
322
|
+
<include name="NetRexx\lib\NetRexxC.jar" />
|
323
|
+
<include name="NetRexx\browse\license.txt" />
|
324
|
+
</zipfileset>
|
325
|
+
</copy>
|
326
|
+
</target>
|
327
|
+
|
328
|
+
<target name="-fetch-netrexx-no-commons-net" depends="-setup-temp-cache"
|
329
|
+
description="FTPs NetRexx compiler from IBM site" unless="have.commons.net">
|
330
|
+
<get src="ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip" dest="${temp.dir}/NetRexx.zip" skipexisting="true"/>
|
331
|
+
<copy todir="${dest.dir}" flatten="true">
|
332
|
+
<zipfileset src="${temp.dir}/NetRexx.zip">
|
333
|
+
<include name="NetRexx\lib\NetRexxC.jar" />
|
334
|
+
<include name="NetRexx\browse\license.txt" />
|
335
|
+
</zipfileset>
|
336
|
+
</copy>
|
337
|
+
</target>
|
338
|
+
|
339
|
+
<target name="all"
|
340
|
+
description="load all the libraries (except jython)"
|
341
|
+
depends="logging,junit,xml,networking,regexp,antlr,bcel,jdepend,bsf,debugging,script,javamail,jspc,jai,netrexx" />
|
342
|
+
|
343
|
+
</project>
|