-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathrelease.xml
51 lines (43 loc) · 2.14 KB
/
release.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Release" default="release">
<target name="release">
<property name="version" value="1.3.5" />
<property name="host" value="demo.geo-solutions.it" />
<property name="remoteReleasesPath" value="fakepath" />
<property name="user" value="fakeuser" />
<property name="password" value="fakepassword" />
<property name="keyfile" value="/home/user/.ssh/id_rsa" />
<property name="port" value="22" />
<!-- Prepare deployment folder -->
<delete includeEmptyDirs="true" dir="deploy" />
<mkdir dir="deploy" />
<!-- clean up the sources, by deleting included target folder -->
<delete includeEmptyDirs="true" dir="target/release/sources" />
<unzip overwrite="true" src="target/release/imageio-ext-${version}-src.zip" dest="target/release/sources" />
<delete includeEmptyDirs="true">
<fileset dir="target/release/sources" includes="**/target/" defaultexcludes="false"/>
</delete>
<zip destfile="deploy/imageio-ext-${version}-sources.zip" basedir="target/release/sources" />
<!-- copying readme file -->
<copy file="readme.txt" tofile="deploy/readme.txt" />
<!-- copying all jar classes to a single archive to be deployed -->
<mkdir dir="release/target/netcdf" />
<move todir="release/target/netcdf">
<fileset dir="release/target/dependency" includes="commons-http*, *grib*, grib*, *hdf*, *netcdf*, netcdf*, *4j*, opendap*" />
</move>
<zip destfile="deploy/imageio-ext-${version}-jars.zip" basedir="release/target/dependency" />
<zip destfile="deploy/imageio-ext-${version}-netcdf.zip" basedir="release/target/netcdf" />
<!-- copying javadocs -->
<copy file="target/release/imageio-ext-${version}-javadoc.zip" toFile="deploy/imageio-ext-${version}-javadocs.zip" />
<!-- transfer to Remote-->
<scp todir="${user}@${host}:${remoteReleasesPath}/${version}"
port="${port}"
keyfile="${keyfile}"
trust="true"
verbose="false">
<fileset dir="deploy">
<include name="*"/>
</fileset>
</scp>
</target>
</project>