blob: 753e8a3668afa0cb94dbb2d3497784ee6a8639d4 [file] [log] [blame]
vinayakb0c860392012-10-06 18:47:20 +00001<?xml version="1.0"?>
Till Westmann276bbc22013-06-05 18:56:27 -07002<!--
Ian Maxond8857792015-09-11 14:19:53 -07003 ! Licensed to the Apache Software Foundation (ASF) under one
4 ! or more contributor license agreements. See the NOTICE file
5 ! distributed with this work for additional information
6 ! regarding copyright ownership. The ASF licenses this file
7 ! to you under the Apache License, Version 2.0 (the
8 ! "License"); you may not use this file except in compliance
9 ! with the License. You may obtain a copy of the License at
10 !
11 ! http://www.apache.org/licenses/LICENSE-2.0
12 !
13 ! Unless required by applicable law or agreed to in writing,
14 ! software distributed under the License is distributed on an
15 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 ! KIND, either express or implied. See the License for the
17 ! specific language governing permissions and limitations
18 ! under the License.
Till Westmann276bbc22013-06-05 18:56:27 -070019 !-->
Ian Maxond8857792015-09-11 14:19:53 -070020
vinayakb0c860392012-10-06 18:47:20 +000021<project name="asterix" default="build" basedir=".">
22
23 <target name="init">
24 <condition property="isWindows">
25 <os family="windows" />
26 </condition>
27 <condition property="isUnix">
28 <os family="unix" />
29 </condition>
30 </target>
31
32 <target name="win" depends="init" if="isWindows">
33 <property name="os.family" value="windows" />
34 <property name="source.ext" value=".cmd" />
35 <property name="target.ext" value=".cmd" />
36 </target>
37
38 <target name="unix" depends="init" if="isUnix">
39 <property name="os.family" value="unix" />
40 <property name="source.ext" value=".sh" />
41 <property name="target.ext" value="" />
42 </target>
43
44 <target name="build" depends="win,unix">
45 <mkdir dir="${target.dir}"/>
46 <pathconvert targetos="${os.family}" property="classpath">
47 <path>
48 <pathelement path="${script.classpath}"/>
49 </path>
50 </pathconvert>
51 <copy file="${source}${source.ext}" tofile="${target.dir}/${target}${target.ext}">
52 <filterset>
53 <filter token="main.class" value="${main.class}"/>
54 <filter token="classpath" value="${classpath}"/>
55 <filter token="jvm.params" value="${jvm.params}"/>
56 <filter token="program.params" value="${program.params}"/>
57 </filterset>
58 </copy>
59 <chmod perm="ugo+x">
60 <fileset dir="${target.dir}"/>
61 </chmod>
62 </target>
63
64</project>