-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
43 lines (39 loc) · 1.62 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
<project name="ArremateCerto" default="run" basedir=".">
<description>Build file for ArremateCerto project</description>
<!-- Set global properties for this build -->
<property name="src.dir" value="src/main/java"/>
<property name="build.dir" value="target/classes"/>
<property name="lib.dir" value="libs"/>
<!-- Initialize directories -->
<target name="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${lib.dir}"/>
</target>
<!-- Compile the source code -->
<target name="compile" depends="init">
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false">
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${user.home}/.m2/repository/org/springframework/boot/spring-boot-starter/2.5.4">
<include name="spring-boot-starter-2.5.4.jar"/>
</fileset>
</classpath>
</javac>
</target>
<!-- Run the application -->
<target name="run" depends="compile">
<java classname="com.bulletinfotech.licitacao.LicitacaoApp" fork="true">
<classpath>
<path location="${build.dir}"/>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${user.home}/.m2/repository/org/springframework/boot/spring-boot-starter/2.5.4">
<include name="spring-boot-starter-2.5.4.jar"/>
</fileset>
</classpath>
</java>
</target>
</project>