-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
65 lines (54 loc) · 2.68 KB
/
build.xml
File metadata and controls
65 lines (54 loc) · 2.68 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="spread-for-node" default="dpkg" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<property name="repo.dir" value="${user.home}/.m2/repository" />
<property name="repo.url" value="http://artifactory.dev.oanda.com:8080/artifactory/repo" />
<property name="maven-ant-tasks.dir" value="org/apache/maven/maven-ant-tasks/2.1.0" />
<property name="maven-ant-tasks.jar" value="${maven-ant-tasks.dir}/maven-ant-tasks-2.1.0.jar" />
<!-- Bootstrap the MAven Ant Taks jar -->
<mkdir dir="${repo.dir}/${maven-ant-tasks.dir}" />
<get src="${repo.url}/${maven-ant-tasks.jar}" dest="${repo.dir}/${maven-ant-tasks.jar}"
skipexisting="true" />
<!-- JAR repository task declaration -->
<path id="maven-ant-tasks.classpath" path="${repo.dir}/${maven-ant-tasks.jar}" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="antlib:org.apache.maven.artifact.ant"
classpathref="maven-ant-tasks.classpath" />
<!-- Define the artifact repository -->
<artifact:remoteRepository id="artifactory" url="${repo.url}" />
<artifact:dependencies pathId="classpath.tasks">
<dependency groupId="com.oanda.ant-deb" artifactId="ant-deb" version="0.0.1.1"/>
<remoterepository refid="artifactory"/>
</artifact:dependencies>
<!-- Debian packaging task declaration -->
<taskdef name="dpkg" classname="com.googlecode.ant_deb_task.Deb" classpathref="classpath.tasks"/>
<target name="dpkg">
<exec executable="git" outputproperty="tag.version">
<arg value="describe"/>
<arg value="--tags"/>
</exec>
<exec executable="git" outputproperty="tag.version.long">
<arg value="describe"/>
<arg value="--tags"/>
<arg value="--long"/>
</exec>
<dpkg todir="."
package="spread-for-node"
version="${tag.version}"
section="non-free/web" priority="optional" architecture="all"
maintainer="Mark Oosterveld <marko@oanda.com>"
depends="nodejs (>= 0.4.8), node-log4js (>= 0.3.8)"
>
<description synopsis="Spread Toolkit Client for Node.js">
Spread Toolkit Client for Node.js
</description>
<tarfileset dir="." prefix="/oanda/system/lib/node/spread"
username="root" group="root" filemode="444">
<include name="package.json" />
<include name="index.js" />
</tarfileset>
<tarfileset dir="lib" prefix="/oanda/system/lib/node/spread/lib"
username="root" group="root" filemode="444">
</tarfileset>
</dpkg>
</target>
</project>