-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
38 lines (38 loc) · 1.38 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="createRunnables" name="Build and run AirCraftSimulation">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="create_xferfiles_manifest">
<copy file="xferfiles.template" tofile="xferfiles" overwrite="true">
<filterset>
<filter token="basepath" value="${basedir}" />
</filterset>
</copy>
</target>
<target name="create_run_jar">
<jar destfile="${basedir}/flgzg.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="simulation.MPIProgram" />
<attribute name="Class-Path" value="." />
</manifest>
<fileset dir="${basedir}/bin" />
<zipfileset excludes="META-INF/*.SF" src="${basedir}/lib/p2pmpi.jar" />
<zipfileset excludes="META-INF/*.SF" src="${basedir}/lib/log4j.jar" />
</jar>
</target>
<target name="createRunnables" depends="create_xferfiles_manifest, create_run_jar" />
<target name="runMPI" depends="createRunnables">
<exec executable="p2pmpirun">
<arg value="-n 4" />
<arg value="-l xferfiles" />
<arg value="simulation/MPIProgram" />
</exec>
</target>
<target name="runSingle">
<java classname="simulation.Program" fork="true">
<classpath>
<pathelement path="${basedir}/bin" />
</classpath>
</java>
</target>
</project>