-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
39 lines (31 loc) · 1.33 KB
/
build.xml
File metadata and controls
39 lines (31 loc) · 1.33 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
<?xml version="1.0" encoding="windows-1252"?>
<project name="java2scala" default="backup" basedir="."
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<property name="project" value="java2scala" />
<property name="root.dir" value="."/>
<property name="testdata.dir" value="${root.dir}/testdata"/>
<property name="test.output.dir" value="${root.dir}/target/testout"/>
<property file="local.properties"/>
<property file="build.properties"/>
<property environment="env"/>
<property name="test.profile" value="default" />
<target name="init">
<tstamp/>
</target>
<target name="mark-test-ok" depends="init" >
<copy file="${test.output.dir}/${test.profile}/${test.file}.scala"
todir="${testdata.dir}/expected/default" overwrite="true" />
<copy file="${test.output.dir}/${test.profile}/${test.file}.scala"
todir="${testdata.dir}/expected/valswithtypes" overwrite="true" />
</target>
<target name="mark-all-tests-ok" depends="init">
<copy todir="${testdata.dir}/expected" overwrite="true" >
<fileset dir="${test.output.dir}" />
</copy>
</target>
<target name="backup" depends="init">
<property name="backup.dir" value="./" />
<zip destfile="${backup.dir}${project}-${DSTAMP}.zip"
basedir="${root.dir}" excludes="target/**, **/${project}-*.zip" />
</target>
</project>