--- /dev/null
+<?xml version="1.0" ?>
+<project default="generate-bpar">
+ <!-- Define Jar Vendor values -->
+ <property name="component.name" value="ScenarioVAE"/>
+ <property name="component.version" value="9.0"/>
+ <property name="component.vendor" value="PENTILA S.A.S"/>
+
+
+ <!-- General source Path location -->
+ <property name="src.dir" value="./src" />
+
+
+ <!-- Special definition path for workflow for XPDL Location -->
+ <property name="packdir" value="com/pentila/workflow/scenariovae/" />
+
+ <!-- Special definition path for workflow for Hooks and mappers compilation -->
+ <property name="packdirworkflow" value="com/pentila/workflow/scenariovae/" />
+
+
+ <!-- Name (filename) of XPDL file to find in packdir -->
+ <property file="workflow.properties" />
+
+ <!-- Name of the bpar file (workflow bundle) -->
+ <property name="businessArchive" value="ScenarioVAE-V1.3.bpar" />
+
+
+ <!-- General path of compiled files -->
+ <property name="classes.dir" value="bin/" />
+
+ <!-- Path of EmaEval libs -->
+ <property name="lib.dirEma" value="../EvalComp/war/WEB-INF/lib/" />
+
+ <!-- Path of EmaEval JAR -->
+ <property name="lib.dir" value="../EvalComp/jarbuild/" />
+
+
+ <!-- Path of bpar in build directory -->
+ <property name="bpar.dir" value="${classes.dir}/bpar" />
+
+ <!-- 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="evalcomp.jar" />
+ </fileset>
+
+ <pathelement path="${lib.dirEma}" />
+ <fileset dir="${lib.dirEma}">
+ <include name="**/*.jar" />
+ </fileset>
+
+ </path>
+
+
+ <!-- General Target -->
+
+ <!-- Task to delete compilation generation -->
+ <target name="deleteCompilation" >
+ <mkdir dir="${classes.dir}/buildHookMapper" />
+ <delete includeemptydirs="true">
+ <fileset dir="${classes.dir}/buildHookMapper" includes="**/*"/>
+ </delete>
+ </target>
+
+ <!-- Compilation of Hooks and Mappers Part -->
+ <target name="compilationHooksMappers" description="Compilation des Hooks et des Mappers" depends="deleteCompilation">
+ <mkdir dir="${classes.dir}/buildHookMapper" />
+ <javac destdir="${classes.dir}/buildHookMapper" encoding="utf-8" source="1.5" target="1.5">
+ <src path="${src.dir}/${packdirworkflow}" />
+ <classpath refid="project.class.path" />
+ </javac>
+ </target>
+
+ <!-- Generate a bpar file -->
+ <target name="generate-bpar" depends="compilationHooksMappers">
+ <delete includeemptydirs="true">
+ <fileset dir="${bpar.dir}" includes="**/*"/>
+ </delete>
+ <mkdir dir="${bpar.dir}" />
+ <mkdir dir="./workflows" />
+ <copy todir="${bpar.dir}"
+ file="./src/${packdir}/${workflowName}.xpdl" />
+ <copy todir="${bpar.dir}"
+ file="./src/${packdir}/extension.xml" />
+ <copy todir="${bpar.dir}">
+ <fileset dir="${classes.dir}/buildHookMapper">
+ <include name="${packdirworkflow}/hooks/**" />
+ <include name="${packdirworkflow}/mappers/**" />
+ </fileset>
+ </copy>
+ <zip destfile="./workflows/${businessArchive}">
+ <fileset dir="${bpar.dir}">
+ <include name="**/*" />
+ </fileset>
+ </zip>
+ </target>
+
+
+</project>
+
+
+