-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
46 lines (40 loc) · 1.54 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
<project name="TrabalhoPROG3_2018_2" default="compile" basedir=".">
<description>Arquivo de build do trabalho de PROG3, 2018/2.</description>
<!-- Propriedades do build. -->
<property name="src" location="src" />
<property name="bin" location="bin" />
<property name="mainClass" value="trab_java.Eleicao" />
<!-- Inicialização. -->
<target name="init" description="Inicializa as estruturas necessárias.">
<tstamp/>
<mkdir dir="${bin}" />
</target>
<!-- Compilação. -->
<target name="compile" depends="init" description="Compila o código-fonte.">
<javac includeantruntime="false" srcdir="${src}" destdir="${bin}" />
</target>
<!-- Pacote. -->
<target name="jar" depends="compile">
<jar destfile="vereadores.jar" basedir="${bin}">
<manifest>
<attribute name="Main-Class" value="${mainClass}"/>
</manifest>
</jar>
</target>
<!-- Execução normal. -->
<target name="run" depends="compile" description="Executa o programa principal, em modo
normal.">
<java classname="${mainClass}">
<arg value="divulga.csv" />
<arg value="UTF8" />
<classpath>
<pathelement path="${bin}" />
</classpath>
</java>
</target>
<!-- Limpeza. -->
<target name="clean" description="Limpa o projeto, deixando apenas o código-fonte." >
<delete dir="${bin}"/>
<delete><fileset dir="." includes="*.csv"/></delete>
</target>
</project>