-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
31 lines (23 loc) · 951 Bytes
/
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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="Currency Converter" default="build" basedir=".">
<path id="javafx.classpath">
<fileset dir="path/to/javafx-sdk-17.0.1/lib" includes="*.jar"/>
</path>
<target name="build" depends="compile, jar"/>
<target name="compile" description="Compile the source code">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" classpathref="javafx.classpath"/>
</target>
<target name="jar" depends="compile" description="Package the application into a JAR file">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/CurrencyConverter.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="Main"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar" description="Run the application">
<java jar="build/jar/CurrencyConverter.jar"/>
</target>
<!-- Add more targets if needed -->
</project>