mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 23:18:52 -05:00
Fixed ant build scripts, changed run shell scripts to not rely on ant, and removed binary.
This commit is contained in:
parent
e8689c531f
commit
533f779a4f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
.classpath
|
||||
.project
|
||||
rscd.jar
|
||||
moparclassic.jar
|
||||
ls.jar
|
||||
*.ipr
|
||||
*.iws
|
||||
|
@ -30,16 +30,6 @@
|
||||
<fileset refid="libraries_managed" />
|
||||
</path>
|
||||
|
||||
<pathconvert property="manifest-classpath" pathsep=" ">
|
||||
<path refid="library-managed-path" />
|
||||
<mapper>
|
||||
<chainedmapper>
|
||||
<flattenmapper />
|
||||
<globmapper from="*.jar" to="${lib_managed}/*.jar" />
|
||||
</chainedmapper>
|
||||
</mapper>
|
||||
</pathconvert>
|
||||
|
||||
<path id="library-path">
|
||||
<fileset refid="libraries" />
|
||||
<fileset refid="libraries_managed" />
|
||||
@ -50,10 +40,6 @@
|
||||
<path refid="library-path" />
|
||||
</path>
|
||||
|
||||
<manifestclasspath property="jar-classpath" jarfile="${jar}">
|
||||
<classpath refid="library-managed-path" />
|
||||
</manifestclasspath>
|
||||
|
||||
<target name="init">
|
||||
<mkdir dir="${bin}" />
|
||||
<mkdir dir="${doc}" />
|
||||
@ -63,6 +49,20 @@
|
||||
|
||||
<target name="resolve" depends="init">
|
||||
<ivy:retrieve sync="true" />
|
||||
|
||||
<pathconvert property="manifest-classpath" pathsep=" ">
|
||||
<path refid="library-managed-path" />
|
||||
<mapper>
|
||||
<chainedmapper>
|
||||
<flattenmapper />
|
||||
<globmapper from="*.jar" to="${lib_managed}/*.jar" />
|
||||
</chainedmapper>
|
||||
</mapper>
|
||||
</pathconvert>
|
||||
|
||||
<manifestclasspath property="jar-classpath" jarfile="${jar}">
|
||||
<classpath refid="library-managed-path" />
|
||||
</manifestclasspath>
|
||||
</target>
|
||||
|
||||
<target name="build" depends="resolve">
|
||||
@ -87,7 +87,7 @@
|
||||
<delete file="${jar}" />
|
||||
</target>
|
||||
|
||||
<target name="run">
|
||||
<target name="run" depends="build">
|
||||
<java classpathref="master-path" fork="true" classname="${main-class}" />
|
||||
</target>
|
||||
|
||||
@ -97,7 +97,7 @@
|
||||
</scaladoc>
|
||||
</target>
|
||||
|
||||
<target name="run-jar">
|
||||
<target name="run-jar" depends="jar">
|
||||
<java fork="true" jar="${jar}" />
|
||||
</target>
|
||||
|
||||
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
ant run
|
||||
#!/bin/sh
|
||||
java -jar moparclassic.jar
|
@ -8,10 +8,10 @@
|
||||
<target name="clean">
|
||||
<delete file="${jar}" />
|
||||
<delete dir="${build}" />
|
||||
<mkdir dir="${build}" />
|
||||
</target>
|
||||
|
||||
<target name="build">
|
||||
<mkdir dir="${build}" />
|
||||
<javac srcdir="${src}" destdir="${build}" debug="on">
|
||||
<classpath>
|
||||
<pathelement location="${lib}/mina.jar" />
|
||||
@ -31,7 +31,7 @@
|
||||
</target>
|
||||
|
||||
|
||||
<target name="run">
|
||||
<target name="run" depends="jar">
|
||||
<java classname="org.moparscape.msc.ls.Server" fork="true">
|
||||
<classpath>
|
||||
<pathelement location="${lib}/mina.jar" />
|
||||
|
@ -1 +1,4 @@
|
||||
ant run
|
||||
#!/bin/bash
|
||||
libs=$(find lib/ -type f -print0 | sed "s/\x0/:/g")
|
||||
#libs="lib/slf4j.jar:lib/hex-string.jar:lib/mysql-connector.jar:lib/xstream.jar:lib/xpp3.jar:lib/mina.jar:"
|
||||
java -cp "$libs./ls.jar" org.moparscape.msc.ls.Server
|
||||
|
Loading…
Reference in New Issue
Block a user