-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
53 lines (43 loc) · 1.75 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<project name="NeuralNet" default="jar" basedir=".">
<description>
Build jar for Neural networks
</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<property name="dist" location="dist"/>
<property name="dist.lib" location="${dist}/lib" />
<!--<property name="program" value="hr.fer.zemris.trisat.TriSATSolver"/>-->
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${dist}" />
</target>
<path id="lib.path">
<fileset dir="lib" includes="**/*.jar"/>
</path>
<target name="compile" depends="init" description="Prevođenje">
<mkdir dir="${build.classes}" />
<javac srcdir="${src}" destdir="${build.classes}" classpathref="lib.path" encoding="UTF-8" debug="on" debuglevel="lines,vars,source" includeAntRuntime="false" />
</target>
<!--<target name="run" depends="compile" description="Pokretanje">
<java classname="${program}" classpath="${build.classes}" fork="true">
<arg value="1"/>
<arg value="uf20-01.cnf"/>
<jvmarg value="-Dfile.encoding=IBM852" />
</java>
</target> -->
<target name="jar" depends="compile" description="Pakovanje u jar" >
<mkdir dir="${dist.lib}" />
<!--<jar jarfile="${dist.lib}/${ant.project.name}-${DSTAMP}.jar" basedir="${build.classes}">-->
<jar jarfile="./${ant.project.name}-${DSTAMP}.jar" basedir="${build.classes}">
<!--<manifest>
<attribute name="Main-Class" value="${program}" />
</manifest> -->
</jar>
</target>
<target name="clean" description="brisanje generiranog sadrzaja" >
<delete dir="${build}" failonerror="false" />
<delete dir="${dist}" failonerror="false" />
</target>
</project>