--- /dev/null
+<?xml version="1.0" ?>
+<project default="jar">
+ <!-- Define Jar Vendor values -->
+ <property name="component.name" value="AdiadnePlugin"/>
+ <property name="component.version" value="0.2"/>
+ <property name="component.vendor" value="PENTILA S.A.S"/>
+
+
+ <!-- General source Path location -->
+ <property name="src.dir" value="./src" />
+
+ <property name="evalcomp.dir" value="../EvalComp/jarbuild/" />
+
+ <!-- General path of compiled files -->
+ <property name="classes.dir" value="bin/" />
+ <!-- General Library location -->
+ <property name="lib.dir" value="./lib/" />
+
+ <!-- Path of AXIS libs -->
+ <property name="lib.dirAXIS2" value="./lib/axis2/" />
+
+ <property name="buildjar.home" value="jarbuild" />
+
+ <property name="jar.name" value="AdiadnePlugin.jar" />
+ <!-- Define General Class Path for Libraries inclusion -->
+ <path id="project.class.path">
+
+ <pathelement path="${java.library.path}" />
+ <pathelement path="${java.class.path}" />
+ <pathelement path="${classes.dir}" />
+
+ <pathelement path="${lib.dir}" />
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ <pathelement path="${evalcomp.dir}" />
+ <fileset dir="${evalcomp.dir}">
+ <include name="evalcomp.jar" />
+ </fileset>
+
+ </path>
+
+
+
+ <!-- Task to delete compilation generation -->
+ <target name="deleteCompilation">
+ <mkdir dir="${classes.dir}/build" />
+ <delete includeemptydirs="true">
+ <fileset dir="${classes.dir}/build" includes="**/*" />
+ </delete>
+
+ </target>
+
+ <!-- Compilation of sources (Server part) -->
+ <target name="compilation" description="Compilation" depends="deleteCompilation">
+ <mkdir dir="${classes.dir}/build" />
+ <javac destdir="${classes.dir}/build" encoding="utf-8">
+ <src path="${src.dir}" />
+ <include name="**/*.java" />
+ <classpath refid="project.class.path" />
+ </javac>
+
+ </target>
+
+ <!-- Gererate a evalcomp library JAR -->
+ <target name="jar" depends="compilation" description="Create jar and MANIFEST.MF">
+ <mkdir dir="${buildjar.home}" />
+
+ <delete includeemptydirs="true">
+ <fileset dir="${buildjar.home}" includes="**/*" />
+ </delete>
+ <mkdir dir="${buildjar.home}" />
+
+ <!-- create a property containing all .jar files, prefix lib/, and seperated with a space -->
+
+ <pathconvert property="libs.project" pathsep=" ">
+ <mapper>
+ <chainedmapper>
+
+ <!-- remove absolute path -->
+ <flattenmapper />
+
+ <!-- add lib/ prefix -->
+ <globmapper from="*" to="lib/*" />
+ </chainedmapper>
+ </mapper>
+
+ <path>
+
+ <!-- lib.home contains all jar files, in several subdirectories -->
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ <fileset dir="${evalcomp.dir}">
+ <include name="evalcomp.jar" />
+ </fileset>
+
+ </path>
+ </pathconvert>
+
+
+ <!-- create the jar of EVALCOMP -->
+ <jar jarfile="${buildjar.home}/${jar.name}" basedir="${classes.dir}/build">
+
+ <!-- define MANIFEST.MF -->
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+
+ <section name="common">
+ <attribute name="Specification-Title" value="${component.name}" />
+ <attribute name="Specification-Version" value="${component.version}" />
+ <attribute name="Specification-Vendor" value="${component.vendor}" />
+ <attribute name="Implementation-Title" value="${component.name}" />
+ <attribute name="Implementation-Version" value="${component.version} ${TODAY}" />
+ <attribute name="Implementation-Vendor" value="${component.vendor}" />
+ </section>
+
+ <!-- finally, use the magically generated libs path -->
+ <!-- <attribute name="Class-Path" value="${libs.project} config/" /> -->
+
+
+ </manifest>
+ </jar>
+ </target>
+
+
+
+</project>
\ No newline at end of file