Cross Reference: dependencies.xml
xref
: /
forgerock
/
opendj2-hg
/
tests
/
staf-tests
/
shared
/
ant
/
dependencies.xml
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
dependencies.xml revision 4978
3832
N/A
<!--
3832
N/A
! CDDL HEADER START
3832
N/A
!
3832
N/A
! The contents of this file are subject to the terms of the
3832
N/A
! Common Development and Distribution License, Version 1.0 only
3832
N/A
! (the "License"). You may not use this file except in compliance
3832
N/A
! with the License.
3832
N/A
!
3832
N/A
! You can obtain a copy of the license at
3832
N/A
!
trunk
/
opends
/
resource
/
legal-notices
/
OpenDS.LICENSE
3832
N/A
! or
https://OpenDS.dev.java.net/OpenDS.LICENSE
.
3832
N/A
! See the License for the specific language governing permissions
3832
N/A
! and limitations under the License.
3832
N/A
!
3832
N/A
! When distributing Covered Code, include this CDDL HEADER in each
3832
N/A
! file and include the License file at
3832
N/A
!
trunk
/
opends
/
resource
/
legal-notices
/
OpenDS.LICENSE
. If applicable,
3832
N/A
! add the following below this CDDL HEADER, with the fields enclosed
3832
N/A
! by brackets "[]" replaced with your own identifying information:
3832
N/A
! Portions Copyright [yyyy] [name of copyright owner]
3832
N/A
!
3832
N/A
! CDDL HEADER END
3832
N/A
!
3832
N/A
!
4458
N/A
! Copyright 2008-2009 Sun Microsystems, Inc.
3832
N/A
! -->
3832
N/A
<
project
name=
"dependencies"
>
3832
N/A
<
description
>
3832
N/A
Manage dependencies.
3832
N/A
</
description
>
3832
N/A
3832
N/A
<!-- Download all the dependencies -->
3832
N/A
<
target
name=
"download"
>
3832
N/A
<
mkdir
dir=
"${
archives.dir
}"
/>
3832
N/A
3832
N/A
<!-- STAF and other services -->
3832
N/A
<
var
name=
"list"
value=
"${
staf.archive
},${
stax.archive
},${
email.archive
}"
/>
3832
N/A
<
var
name=
"list"
value=
"${list},${
event.archive
},${
eventmanager.archive
}"
/>
4978
N/A
<
var
name=
"list"
value=
"${list},${
http.archive
},${
wc.archive
}"
/>
3832
N/A
<
mkdir
dir=
"${
tmp.dir
}"
/>
3832
N/A
<
for
list=
"${list}"
param=
"archive"
>
3832
N/A
<
sequential
>
3832
N/A
<
var
name=
"rc"
unset=
"true"
/>
3832
N/A
<
var
name=
"ext"
unset=
"true"
/>
3832
N/A
<
var
name=
"url"
unset=
"true"
/>
3832
N/A
4714
N/A
<
trycatch
property=
"error"
reference=
"referror"
>
4714
N/A
<
try
>
4714
N/A
<
propertyregex
property=
"ext"
4714
N/A
input=
"@{archive}"
4714
N/A
regexp=
".*\.(.*)"
4714
N/A
select=
"\1"
4714
N/A
casesensitive=
"false"
/>
3832
N/A
4714
N/A
<
echo
>Checking @{archive} archive...</
echo
>
4714
N/A
<
switch
value=
"${ext}"
>
4714
N/A
<
case
value=
"gz"
>
4714
N/A
<!-- gz files -->
4714
N/A
<
gunzip
src=
"${
archives.dir
}/@{archive}"
4714
N/A
dest=
"${
tmp.dir
}"
/>
4714
N/A
</
case
>
4714
N/A
<
case
value=
"zip"
>
4714
N/A
<!-- zip files -->
4714
N/A
<
unzip
src=
"${
archives.dir
}/@{archive}"
4714
N/A
dest=
"${
tmp.dir
}"
/>
4714
N/A
</
case
>
4714
N/A
<
default
>
4714
N/A
</
default
>
4714
N/A
</
switch
>
3832
N/A
4714
N/A
<
var
name=
"rc"
value=
"0"
/>
4714
N/A
</
try
>
3832
N/A
4714
N/A
<
catch
>
4714
N/A
<
echo
>ERROR: ${error}</
echo
>
4714
N/A
<
var
name=
"rc"
value=
"-1"
/>
4714
N/A
</
catch
>
4714
N/A
</
trycatch
>
3832
N/A
3832
N/A
<
if
>
3832
N/A
<
or
>
3832
N/A
<
not
>
3832
N/A
<
equals
arg1=
"${rc}"
arg2=
"0"
/>
3832
N/A
</
not
>
3832
N/A
<
not
>
3832
N/A
<
available
file=
"${
archives.dir
}/@{archive}"
/>
3832
N/A
</
not
>
3832
N/A
</
or
>
3832
N/A
<
then
>
3832
N/A
<
if
>
4978
N/A
<
equals
arg1=
"@{archive}"
arg2=
"${
wc.archive
}"
/>
3832
N/A
<
then
>
3832
N/A
<!-- Tomcat url -->
4978
N/A
<
var
name=
"url"
value=
"${
wc.url
}"
/>
3832
N/A
</
then
>
3832
N/A
<
else
>
3832
N/A
<!-- Other url -->
3832
N/A
<
var
name=
"url"
value=
"${
staf.url
}"
/>
3832
N/A
</
else
>
3832
N/A
</
if
>
3832
N/A
<
get
src=
"${url}/@{archive}"
3832
N/A
dest=
"${
archives.dir
}/@{archive}"
/>
3832
N/A
</
then
>
3832
N/A
</
if
>
3832
N/A
</
sequential
>
3832
N/A
</
for
>
3832
N/A
<
delete
includeemptydirs=
"true"
>
3832
N/A
<
fileset
dir=
"${
tmp.dir
}"
includes=
"**/*"
/>
3832
N/A
</
delete
>
3832
N/A
</
target
>
3832
N/A
3832
N/A
<!-- Remove current dependencies -->
3832
N/A
<
target
name=
"remove"
>
3832
N/A
<
delete
dir=
"${
archives.dir
}"
>
3832
N/A
<
include
name=
"STAF${
staf.version
}*"
/>
3832
N/A
<
include
name=
"${
stax.archive
}"
/>
3832
N/A
<
include
name=
"${
email.archive
}"
/>
3832
N/A
<
include
name=
"${
event.archive
}"
/>
3832
N/A
<
include
name=
"${
eventmanager.archive
}"
/>
3832
N/A
<
include
name=
"${
http.archive
}"
/>
4978
N/A
<
include
name=
"${
wc.archive
}"
/>
3832
N/A
</
delete
>
3832
N/A
</
target
>
3832
N/A
3832
N/A
<!-- Remove old dependencies -->
3832
N/A
<
target
name=
"removeold"
>
3832
N/A
<
delete
dir=
"${
archives.dir
}"
>
3832
N/A
<
exclude
name=
"STAF${
staf.version
}*"
/>
3832
N/A
<
exclude
name=
"${
stax.archive
}"
/>
3832
N/A
<
exclude
name=
"${
email.archive
}"
/>
3832
N/A
<
exclude
name=
"${
event.archive
}"
/>
3832
N/A
<
exclude
name=
"${
eventmanager.archive
}"
/>
3832
N/A
<
exclude
name=
"${
http.archive
}"
/>
4978
N/A
<
exclude
name=
"${
wc.archive
}"
/>
3832
N/A
</
delete
>
3832
N/A
</
target
>
3832
N/A
3832
N/A
<!-- Remove all the dependencies -->
3832
N/A
<
target
name=
"removeall"
>
3832
N/A
<
delete
dir=
"${
archives.dir
}"
/>
3832
N/A
</
target
>
3832
N/A
</
project
>