generated from Funz/algorithm-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·43 lines (34 loc) · 1.69 KB
/
build.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="algorithm-Sensitivity" default="test" basedir=".">
<property name="algorithm.name" value="Sensitivity" />
<property name="install.dir" value="${basedir}/FunzR-${algorithm.name}" />
<property name="build_algorithm.xml" location="../funz-profile/build_algorithm.xml" />
<import file="${build_algorithm.xml}"/>
<target name="dist" depends="dist-algorithm"/> <!-- dist-ioplugin: copy just the plugin ascii files -->
<target name="test">
<fileset id="does" dir="${doe.dir}" includes="*.R"/>
<pathconvert pathsep="," property="does.list" refid="does">
<map from="${doe.dir}/" to=""/>
</pathconvert>
<for list="${does.list}" param="doe" delimiter=",">
<sequential>
<property name="@{doe}" value="@{doe}"/>
<script language="javascript">
arr = project.getProperty('@{doe}');
project.setProperty('@{doe}.name', arr.replace('.R',''));
</script>
<delete dir="${test.cases.dir}" />
<mkdir dir="${test.cases.dir}" />
<copy todir="${test.cases.dir}" failonerror="false">
<fileset dir="${test.cases.dir}.${@{doe}.name}">
<include name="**" />
</fileset>
</copy>
<antcall target="test-algorithm">
<param name="algorithm.name" value="${@{doe}.name}"/>
</antcall>
</sequential>
</for>
</target>
<target name="super.install" depends="install"/>
<target name="super.clean" depends="clean"/>
</project>