summaryrefslogtreecommitdiff
path: root/java/build.xml
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-03-09 00:55:36 +0200
committerdweller <dweller@cabin.digital>2024-03-09 00:55:36 +0200
commit86d3f93ee338b28ab7d40aa83c129cf6b97ef4b7 (patch)
tree507a8d66932e6dea9b121dfcbf980f7925575c9f /java/build.xml
Initial commit, 2 years later
Diffstat (limited to '')
-rw-r--r--java/build.xml56
1 files changed, 56 insertions, 0 deletions
diff --git a/java/build.xml b/java/build.xml
new file mode 100644
index 0000000..3d0953f
--- /dev/null
+++ b/java/build.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<project name="EZIPC Server Test" basedir="." default="jar">
+ <property name="version">0.1</property>
+ <property name="dir.src">sources</property>
+ <property name="dir.lib">libraries</property>
+ <property name="dir.build">build</property>
+ <property name="dir.build.classes">${dir.build}/classes</property>
+ <property name="dir.build.javadoc">${dir.build}/javadoc</property>
+ <property name="file.jar">${dir.build}/server-${version}.jar</property>
+
+ <path id="external.classpath">
+ <fileset dir="${dir.lib}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <target name="clean">
+ <delete dir="${dir.build}"/>
+ </target>
+
+ <target name="init">
+ <mkdir dir="${dir.build}"/>
+ <mkdir dir="${dir.build.classes}"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <echo>Compiling Java source</echo>
+
+ <javac classpathref="external.classpath"
+ srcdir="${dir.src}"
+ destdir="${dir.build.classes}"/>
+ </target>
+
+ <target name="jar" depends="compile">
+ <echo>Making JAR file</echo>
+
+ <manifest file="build/MANIFEST.MF">
+ <attribute name="Main-Class" value="EzIPCServerTest"/>
+ </manifest>
+
+ <jar manifest="build/MANIFEST.MF"
+ basedir="${dir.build.classes}"
+ file="${file.jar}">
+ <zipgroupfileset dir="${dir.lib}">
+ <include name="**/*.jar"/>
+ </zipgroupfileset>
+ </jar>
+ </target>
+
+ <target name="javadoc">
+ <echo>Making JavaDoc from source</echo>
+
+ <javadoc sourcepath="${dir.src}" destdir="${dir.build.javadoc}">
+ </javadoc>
+ </target>
+</project>