forked from geosolutions-it/jai-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.xml
35 lines (29 loc) · 1.28 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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Release" default="release">
<target name="release">
<property name="version" value="1.0-SNAPSHOT" />
<property name="host" value="demo.geo-solutions.it" />
<property name="remoteReleasesPath" value="${path}" />
<property name="user" value="${deployUser}" />
<property name="keyfile" value="${deployKeyFile}" />
<property name="port" value="${deployScpPort}" />
<!-- Prepare deployment folder -->
<delete includeEmptyDirs="true" dir="deploy" />
<mkdir dir="deploy" />
<!-- copying all jar classes to a single archive to be deployed -->
<zip destfile="deploy/jai-ext-${version}-jars.zip" basedir="release/target/dependency" />
<!-- copying javadocs -->
<copy file="target/release/jai-ext-${version}-javadoc.zip" toFile="deploy/jai-ext-${version}-javadocs.zip" />
<!-- copying sources -->
<copy file="target/release/jai-ext-${version}-src.zip" toFile="deploy/jai-ext-${version}-sources.zip" />
<!-- transfer to Remote-->
<scp todir="${user}@${host}:${remoteReleasesPath}/${version}"
port="${port}"
keyfile="${keyfile}"
trust="true">
<fileset dir="deploy">
<include name="*"/>
</fileset>
</scp>
</target>
</project>