-
Notifications
You must be signed in to change notification settings - Fork 0
/
ant.xml
43 lines (35 loc) · 1.43 KB
/
ant.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
<project name="score-runner" default="init" basedir=".">
<description>
run score cli
</description>
<!-- set global properties for this build -->
<property name="build" location="build"/>
<property name="proxy.host" value="host"/>
<property name="proxy.port" value="port"/>
<echo message="proxy host: ${proxy.host}, proxy port: ${proxy.port}"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
<mkdir dir="${build}"/>
<get src="https://github.com/openscore/score-language/releases/download/slang-CLI-0.2/slang.zip"
dest="${build}/slang.zip" usetimestamp="true" verbose="true"/>
<unzip src="${build}/slang.zip" dest="${build}"/>
<exec executable="/bin/bash" osfamily="unix">
<arg value="${build}/slang/appassembler/bin/slang"/>
<arg value="run"/>
<arg value="install-app.sl"/>
</exec>
<exec executable="cmd" osfamily="windows">
<arg value="/c"/>
<arg value="${build}/slang/appassembler/bin/slang"/>
<arg value="run"/>
<arg value="install-app.sl"/>
</exec>
</target>
<target name="clean"
description="clean up" >
<delete dir="${build}"/>
</target>
</project>