代码拉取完成,页面将自动刷新
<?xml version='1.0'?>
<project name="marauroa" default="dist" basedir=".">
<property file="build.ant.properties"/>
<property name="jarname" value="marauroa-${version}.jar"/>
<!-- Clears the instalation -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${docs}"/>
<delete dir="${build-archive}"/>
<delete dir="${dist}"/>
</target>
<!-- Create the initial folders for the build -->
<target name="init">
<mkdir dir="${build-archive}" />
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
<mkdir dir="${docs}" />
</target>
<!-- Copy important files to the build folder. -->
<target name="installation" depends="init">
<copy todir="${buildroot}/marauroa/server/" file="${src}/marauroa/server/marauroa_init.sql"/>
<copy todir="${buildroot}/marauroa/server/" file="${src}/marauroa/server/marauroa_drop.sql"/>
<copy todir="${buildroot}/marauroa/server" file="${src}/marauroa/server/log4j.properties"/>
</target>
<!-- Compiles the project -->
<target name="compile" depends="installation">
<!-- Exclude python support if jython.jar is not present -->
<condition property="exclude.python" value="**/python/*.*">
<not>
<available file="${jython_jar}"/>
</not>
</condition>
<!-- Exclude junit support if junit is not present -->
<condition property="exclude.junit" value="**/test/*.*">
<not>
<available file="${junit_jar}"/>
</not>
</condition>
<!-- Update version number. -->
<replaceregexp file="${src}/marauroa/server/marauroad.java"
match="final private static String VERSION=".*";"
replace="final private static String VERSION="${version}";"
byline="true"/>
<!-- Compile it -->
<javac srcdir="${src}" destdir="${buildroot}" debug="true" debuglevel="source,lines" includes="**/marauroa/**" excludes="${exclude.python};${exclude.junit}">
<classpath>
<pathelement path="${log4j_jar}"/>
<pathelement path="${junit_jar}"/>
<pathelement path="${connectorJ_jar}"/>
<pathelement path="${jnlp_jar}"/>
<pathelement path="${jython_jar}"/>
</classpath>
</javac>
</target>
<!-- Generate Java docs -->
<target name="docs" depends="compile">
<javadoc packagenames="marauroa.*"
defaultexcludes="yes"
destdir="${docs}"
author="true"
version="true"
use="true"
windowtitle="Marauroa API Documentation Version: ${version}">
<classpath>
<pathelement path="${log4j_jar}"/>
<pathelement path="${junit_jar}"/>
<pathelement path="${connectorJ_jar}"/>
<pathelement path="${jnlp_jar}"/>
<pathelement path="${jython_jar}"/>
</classpath>
<fileset dir="${src}">
<include name="**/*.java"/>
</fileset>
</javadoc>
</target>
<!-- Create jar file for Marauroa -->
<target name="jar" depends="compile">
<jar jarfile="${build-archive}/${jarname}" basedir="${buildroot}/">
<manifest>
<attribute name="Main-Class" value="games.stendhal.client.update.Starter"/>
</manifest>
</jar>
<copy tofile="${build-archive}/marauroa.jar" file="${build-archive}/${jarname}"/>
<!-- A link would be better but... -->
<copy todir="${build-archive}" file="${src}/marauroa/server.ini"/>
</target>
<!-- Prepare the tarball for releases -->
<target name="dist_binary" depends="jar">
<replaceregexp file="${extras}/marauroad.bat"
match="set LOCALCLASSPATH=.*"
replace="set LOCALCLASSPATH=.;marauroa-${version}.jar;${jython_jar};${connectorJ_jar};${log4j_jar}"
byline="true"/>
<mkdir dir="marauroa-${version}"/>
<mkdir dir="marauroa-${version}/libs"/>
<copy todir="marauroa-${version}" file="${extras}/marauroad.bat"/>
<copy todir="marauroa-${version}/libs" file="${build-archive}/${jarname}"/>
<copy todir="marauroa-${version}/libs" file="${connectorJ_jar}"/>
<copy todir="marauroa-${version}/libs" file="${jython_jar}"/>
<copy todir="marauroa-${version}/libs" file="${log4j_jar}"/>
<copy todir="marauroa-${version}" file="AUTHORS"/>
<copy todir="marauroa-${version}" file="BUGS"/>
<copy todir="marauroa-${version}" file="COPYING"/>
<copy todir="marauroa-${version}" file="LICENSE"/>
<copy todir="marauroa-${version}" file="README"/>
<zip destfile="${dist}/marauroa-${version}.zip" basedir="marauroa-${version}"/>
<delete dir="marauroa-${version}"/>
</target>
<target name="dist_docs" depends="docs">
<mkdir dir="marauroa-${version}"/>
<copy todir="marauroa-${version}/${docs}">
<fileset dir="${docs}"/>
</copy>
<copy todir="marauroa-${version}" file="AUTHORS"/>
<copy todir="marauroa-${version}" file="BUGS"/>
<copy todir="marauroa-${version}" file="COPYING"/>
<copy todir="marauroa-${version}" file="LICENSE"/>
<copy todir="marauroa-${version}" file="README"/>
<zip destfile="${dist}/marauroa-${version}-docs.zip" basedir="marauroa-${version}"/>
<delete dir="marauroa-${version}"/>
</target>
<target name="dist_source" depends="docs">
<mkdir dir="marauroa-${version}"/>
<copy todir="marauroa-${version}/src">
<fileset dir="src"/>
</copy>
<copy todir="marauroa-${version}/extras">
<fileset dir="extras"/>
</copy>
<copy todir="marauroa-${version}/libs">
<fileset dir="libs"/>
</copy>
<copy todir="marauroa-${version}" file="build.xml"/>
<copy todir="marauroa-${version}" file="build.ant.properties"/>
<copy todir="marauroa-${version}" file="AUTHORS"/>
<copy todir="marauroa-${version}" file="BUGS"/>
<copy todir="marauroa-${version}" file="COPYING"/>
<copy todir="marauroa-${version}" file="HISTORY"/>
<copy todir="marauroa-${version}" file="LICENSE"/>
<copy todir="marauroa-${version}" file="README"/>
<tar destfile="${dist}/marauroa-${version}-src.tar.gz" compression="gzip">
<tarfileset dir="marauroa-${version}" prefix="marauroa-${version}">
<exclude name="**/CVS/**"/>
</tarfileset>
</tar>
<delete dir="marauroa-${version}"/>
</target>
<!-- builds the whole project for releasing -->
<target name="dist" depends="clean, dist_binary, dist_docs, dist_source"/>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。