MPijavac building with ant

I am writing a project to use mpi on a cluster for which I have to create a jar file with mpijavac

.

On the command line, I would do

mpijavac <List of java files>

      

I want to include this task in the ant target. For example, if I had to create a regular jar file, I would do

<target name="compile" depends="clean, init"
        description="compile the source ">
    <!-- Compile the java code from ${src} into ${build.src.dir} -->
    <javac srcdir="${src}" destdir="${build.src.dir}"/>
</target>


<jar jarfile="${jarfileName}" basedir="${build.src.dir}">
    <manifest>
        <attribute name="Main-Class" value="Execute"/>
    </manifest>
</jar>

      

To get the jar, but this will compile it with javac, not mpijavac. Anyway, I can get the jar file built with using mpijavac

ant as my build tool

+3


source to share





All Articles