Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 983bf086 authored by Adrien's avatar Adrien
Browse files

lib update (and build) - needed for maxDiv

parent 1c67d146
Branches adrien
No related tags found
No related merge requests found
...@@ -5,6 +5,14 @@ ...@@ -5,6 +5,14 @@
<property name="src" location="src"/> <property name="src" location="src"/>
<property name="build" location="build"/> <property name="build" location="build"/>
<property name="dist" location="dist"/> <property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<!-- Classpath for dependencies -->
<path id="classpath">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<!-- Initialize build directories --> <!-- Initialize build directories -->
<target name="init"> <target name="init">
...@@ -14,15 +22,15 @@ ...@@ -14,15 +22,15 @@
<!-- Compile source code --> <!-- Compile source code -->
<target name="compile" depends="init" description="Compile the source code"> <target name="compile" depends="init" description="Compile the source code">
<javac srcdir="${src}" destdir="${build}" debug="true" includeantruntime="false"/> <javac srcdir="${src}" destdir="${build}" debug="true" includeantruntime="false" classpathref="classpath"/>
</target> </target>
<!-- Package the project into a jar file --> <!-- Package the project into a jar file -->
<target name="dist" depends="compile" description="Generate the distribution jar"> <target name="dist" depends="compile" description="Generate the distribution jar">
<jar jarfile="${dist}/kdiv.jar" basedir="${build}"> <jar jarfile="${dist}/kdiv.jar" basedir="${build}">
<manifest> <manifest>
<!-- Replace 'kdiv.Main' with the full name of main class --> <!-- idk but its working -->
<attribute name="Main-Class" value="kdiv.Main"/> <attribute name="Main-Class" value="kdiv.Main"/>
<attribute name="Class-Path" value="lib/commons-math3-3.6.1.jar"/>
</manifest> </manifest>
</jar> </jar>
</target> </target>
...@@ -34,8 +42,16 @@ ...@@ -34,8 +42,16 @@
</target> </target>
<!-- Optional: Run the jar (if needed) --> <!-- Optional: Run the jar (if needed) -->
<target name="run" depends="dist" description="Run the application"> <target name="run" depends="dist" description="Run the application">
<java jar="${dist}/kdiv.jar" fork="true"/> <java fork="true" classname="kdiv.Main">
<classpath>
<pathelement location="${dist}/kdiv.jar"/>
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target> </target>
</project> </project>
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment