Skip to content

Commit

Permalink
include build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubcapp committed Mar 10, 2022
1 parent fac04fc commit 6daa8d2
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<project name="mudclient69-deob" default="run">
<property name="main.src.dir" value="client/src" />
<property name="main.build.dir" value="build" />

<property name="dist.dir" value="dist" />
<property name="bin.dir" value="bin" />

<property name="jar.main-class" value="mudclient" />
<property name="jar.name" value="${ant.project.name}.jar" />
<property name="jar.file" value="${dist.dir}/${jar.name}" />

<target name="compile">
<mkdir dir="${main.build.dir}" />
<javac srcdir="${main.src.dir}" destdir="${main.build.dir}" includeantruntime="false" encoding="UTF-8">
</javac>
</target>

<target name="dist" depends="compile">
<mkdir dir="${bin.dir}" />
<mkdir dir="${dist.dir}" />

<jar destfile="${jar.file}" basedir="${main.build.dir}">
<manifest>
<attribute name="Main-Class" value="${jar.main-class}"/>
</manifest>
</jar>
</target>

<target name="distrun" depends="dist">
<java jar="${jar.file}" dir="${bin.dir}" fork="true" >
<arg value="10.10.200.1" />
<arg value="43594" />
</java>
</target>

<target name="run" depends="compile">
<java classname="${jar.main-class}" fork="true">
<classpath>
<pathelement location="${main.build.dir}"/>
</classpath>
<arg value="10.10.200.1" />
<arg value="43594" />
</java>
</target>

<target name="clean">
<delete dir="${main.build.dir}" />
<delete dir="${bin.dir}" />
</target>

</project>

0 comments on commit 6daa8d2

Please sign in to comment.