-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbuild.xml
72 lines (59 loc) · 2.37 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
27 de ago de 2018 15:58:41
The best hello world!!!
this program is only a util and funcional hello world.
max
====================================================================== -->
<project name="project" default="default">
<description>
this program is only a util and funcional hello world.
</description>
<!-- =================================
target: default
================================= -->
<target name="default" depends="depends" description="description">
</target>
<property name="src" value="src"></property>
<property name="build" value="build"></property>
<property name="dist" value="build/dist" ></property>
<property name="test" value="build/test" ></property>
<property name="classes" value="${build}/classes"/>
<property name="jar" value="${build}/jar"/>
<property name="main-class" value="Pacote.Programa"></property>
<target name="clean">
<delete dir="${build}"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="${classes}"/>
<javac srcdir="${src}" destdir="${classes}"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar}"/>
<jar destfile="${jar}/${ant.project.name}.jar" basedir="${classes}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${jar}/${ant.project.name}.jar" fork="true"/>
</target>
<target name="Main" depends="run">
<description>Main target</description>
</target>
<target name="sign" depends="Main">
<mkdir dir="signed"/>
<signjar destDir="signed" alias="gerar_chave" keystore="hello_key.jks" storepass="123qwe">
<path>
<fileset dir="build/jar/" includes="*.jar" />
</path>
<flattenmapper />
</signjar>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends">
</target>
</project>