-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
37 lines (33 loc) · 1.39 KB
/
Copy pathbuild.xml
File metadata and controls
37 lines (33 loc) · 1.39 KB
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="help" name="Sudoku_Client">
<property environment="env"/>
<property name="source.dir" location="src"/>
<property name="build.dir" location="bin"/>
<property name="lib.dir" location="lib"/>
<property name="server.port" value="1099"/>
<property name="server.IP" value="127.0.0.1"/>
<property name="server.Name" value="name"/>
<property name="policy.file" location="security/java.policy"/>
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${build.dir}"/>
</path>
<target name="help">
<echo>Usage: ant [build | client]</echo>
</target>
<target name="build" description="Builds the project">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<javac srcdir="${source.dir}" destdir="${build.dir}" classpathref="classpath" deprecation="true" fork="true" includeAntRuntime="no"/>
</target>
<target name="client" depends="build" description="Runs the Client">
<java classname="es.deusto.ingenieria.spq.sudoku.client.controller.SudokuController" classpathref="classpath" fork="true">
<jvmarg value="-Djava.security.policy=${policy.file}"/>
<arg value="${server.IP}"/>
<arg value="${server.port}"/>
<arg value="${server.Name}"/>
</java>
</target>
</project>