09-06-2012, 09:43 PM
Компиляция исходников sun-dev.
При компиляции в конечном итоге выдаёт ошибку
Нуждаюсь в помощи, помогите новичку, что и как нужно подправлять, как понимаю строка "86 а имнно C:\bin\build.xml:86" ошибочка..
но так и не понял, что это, куда идёт коннект и т.д <loadfile property="build.revision" srcFile="./.svn/entries">
Разьясните пожалуйста
При компиляции в конечном итоге выдаёт ошибку
лог файл
clean_scripts:
clean:
init:
[mkdir] Created dir: C:\bin\build
[mkdir] Created dir: C:\bin\build\classes
[mkdir] Created dir: C:\bin\build\dist
[mkdir] Created dir: C:\bin\build\dist\login
[mkdir] Created dir: C:\bin\build\dist\gameserver
compile:
jar:
BUILD FAILED
C:\bin\build.xml:86: C:\bin\.svn\entries doesn't exist
Total time: 1 second
clean:
init:
[mkdir] Created dir: C:\bin\build
[mkdir] Created dir: C:\bin\build\classes
[mkdir] Created dir: C:\bin\build\dist
[mkdir] Created dir: C:\bin\build\dist\login
[mkdir] Created dir: C:\bin\build\dist\gameserver
compile:
jar:
BUILD FAILED
C:\bin\build.xml:86: C:\bin\.svn\entries doesn't exist
Total time: 1 second
Build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="SunDev" default="with_jarscripts" basedir=".">
<property name="src" location="source"/>
<property name="lib" location="lib"/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<property name="build.scripts" location="${build}/scripts"/>
<property name="start" location="dist"/>
<property name="build.dist" location="${build}/dist"/>
<property name="build.dist.login" location="${build.dist}/login"/>
<property name="build.dist.game" location="${build.dist}/gameserver"/>
<path id="classpath">
<fileset dir="${lib}">
<exclude name="allatori.jar"/>
<include name="**/*.jar"/>
</fileset>
</path>
<pathconvert property="jar.list" pathsep=" " refid="classpath">
<mapper type="flatten"/>
</pathconvert>
<target name="clean" description="Remove the output directories">
<delete dir="${build}"/>
</target>
<target name="clean_scripts" description="Remove the scripts output directories">
<delete dir="${build.scripts}"/>
<delete file="${build}/scripts.jar"/>
<delete file="${build.dist.game}/scripts.jar"/>
</target>
<target name="cc" description="Remove the classes directories">
<delete dir="${build}/classes"/>
</target>
<target name="init" description="Create the output directories.">
<mkdir dir="${build}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.dist}"/>
<mkdir dir="${build.dist.login}"/>
<mkdir dir="${build.dist.game}"/>
</target>
<target name="compile" depends="init" description="Compile the source.">
<javac destdir="${build.classes}" optimize="on" debug="on" source="1.6" target="1.6" encoding="UTF-8"
includeantruntime="false" nowarn="off">
<compilerarg value="-Xlint:all"/>
<src path="${src}"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="compile_scripts" depends="jar" description="Compile the source.">
<copy todir="${lib}">
<fileset dir="${build}">
<include name="sun-server.jar"/>
</fileset>
</copy>
<mkdir dir="${build.scripts}"/>
<javac destdir="${build.scripts}" optimize="on" debug="on" source="1.6" target="1.6" encoding="UTF-8"
includeantruntime="false" nowarn="off">
<compilerarg value="-Xlint:all"/>
<src path="data"/>
<classpath refid="classpath"/>
</javac>
<delete file="${lib}/sun-server.jar"/>
</target>
<target name="debug" depends="init" description="Compile the source with debug info.">
<javac destdir="${build.classes}" optimize="on" debug="on" source="1.6" target="1.6" encoding="UTF-8"
nowarn="off" includeantruntime="false">
<compilerarg value="-Xlint:all"/>
<src path="${src}"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="jar" depends="clean,compile" description="Create the jar file">
<tstamp>
<format property="build.tstamp" pattern="yyyy.MM.dd HH:mm"/>
</tstamp>
<loadfile property="build.revision" srcFile="./.svn/entries">
<filterchain>
<headfilter lines="1" skip="3"/>
<deletecharacters chars="\n"/>
</filterchain>
</loadfile>
<concat destfile="${build.dist.game}/config/sun-version.properties">
revision=${build.revision}
builddate=${build.tstamp}
user=${user.name} ${user.dir}
os=${os.name} ${os.version} ${os.arch}
java=${java.version} ${java.vendor}
</concat>
<concat destfile="${build}/classes/sun/sun-version.properties">
revision=${build.revision}
builddate=${build.tstamp}
user=${user.name} ${user.dir}
os=${os.name} ${os.version} ${os.arch}
java=${java.version} ${java.vendor}
</concat>
<jar destfile="${build}/sun-server.jar" level="0">
<fileset dir="${build.classes}"/>
<manifest>
<attribute name="Build-By" value="${user.name}"/>
<attribute name="Revision" value="${build.revision}"/>
<attribute name="Build-Date" value="${build.tstamp}"/>
<attribute name="Main-Class" value="sun.Server"/>
<attribute name="Class-Path" value=". ${jar.list}"/>
</manifest>
</jar>
<copy todir="${build.dist.login}" preservelastmodified="true">
<fileset dir="${build}">
<include name="sun-server.jar"/>
</fileset>
</copy>
<copy todir="${build.dist.game}" preservelastmodified="true">
<fileset dir="${build}">
<include name="sun-server.jar"/>
</fileset>
</copy>
</target>
<target name="jar_scripts" depends="clean_scripts,compile_scripts" description="Create the scripts jar file">
<jar destfile="${build}/scripts.jar" level="0">
<fileset dir="${build.scripts}"/>
<manifest>
<attribute name="Class-Path" value=". ${jar.list}"/>
</manifest>
</jar>
<copy todir="${build.dist.game}" preservelastmodified="true">
<fileset dir="${build}">
<include name="scripts.jar"/>
</fileset>
</copy>
</target>
<target name="compile.gcj" depends="jar" description="Build machine executable binary">
<exec dir="." executable="gcj" failifexecutionfails="false" os="linux:Linux:freebsd:FreeBSD">
<arg line="-O3 ${build.dist}/sun-server.jar -o ${build.dist}/sunserver --main=sun.Server jbforth.jar"/>
</exec>
</target>
<target name="dist_common" depends="jar">
<copy todir="${build.dist}" preservelastmodified="true">
<fileset dir="${basedir}">
<include name="changes.txt"/>
<include name="LICENSE.txt"/>
<include name="README.txt"/>
</fileset>
</copy>
<mkdir dir="${build.dist.login}/lib"/>
<copy todir="${build.dist.login}/lib">
<fileset dir="${src}/../lib">
<include name="mchange-commons-0.2.jar"/>
<include name="mysql-connector-java-5.1.16-bin.jar"/>
<include name="javolution-5.5.1.jar"/>
<include name="jce.jar"/>
<include name="jacksum.jar"/>
<include name="guava-r07.jar"/>
<include name="slf4j-api-1.6.1.jar"/>
<include name="slf4j-simple-1.6.1.jar"/>
<include name="trove-2.1.0.jar"/>
<include name="lameguard-1.9.5.jar"/>
</fileset>
</copy>
<copy todir="${build.dist.login}" preservelastmodified="true">
<fileset dir="${start}">
<include name="startAccountManager.*"/>
<include name="startSQLAccountManager.*"/>
<include name="LoginServer_loop.sh"/>
<include name="StartLoginServer.*"/>
<include name="RegisterGameServer.*"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/lib"/>
<copy todir="${build.dist.game}/lib">
<fileset dir="${src}/../lib">
<exclude name="allatori.jar"/>
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${build.dist.game}" preservelastmodified="true">
<fileset dir="${start}">
<include name="GameServer_loop.sh"/>
<include name="StartGameServer.*"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/backup"/>
<mkdir dir="${build.dist.login}/backup"/>
<mkdir dir="${build.dist.game}/log"/>
<mkdir dir="${build.dist.login}/log"/>
<mkdir dir="${build.dist.game}/config"/>
<mkdir dir="${build.dist.game}/config/defaults"/>
<copy todir="${build.dist.game}/config" preservelastmodified="true">
<fileset dir="config">
<include name="sun-version.properties"/>
</fileset>
</copy>
<copy todir="${build.dist.game}/config/defaults" preservelastmodified="true">
<fileset dir="config">
<include name="*.properties"/>
<include name="*.xml"/>
<include name="*.cfg"/>
<include name="*.txt"/>
<include name="fake_players.list"/>
<exclude name="loginserver.properties"/>
<exclude name="login_telnet.properties"/>
<exclude name="sun-version.properties"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/config/GMAccess.d"/>
<mkdir dir="${build.dist.game}/config/GMAccess.d/template"/>
<mkdir dir="${build.dist.game}/config/defaults/GMAccess.d"/>
<mkdir dir="${build.dist.game}/config/defaults/GMAccess.d/template"/>
<copy todir="${build.dist.game}/config/GMAccess.d/template" preservelastmodified="true">
<fileset dir="config/GMAccess.d/template">
<include name="*.xml"/>
</fileset>
</copy>
<copy todir="${build.dist.game}/config/defaults/GMAccess.d/template" preservelastmodified="true">
<fileset dir="config/GMAccess.d/template">
<include name="*.xml"/>
</fileset>
</copy>
<mkdir dir="${build.dist.login}/config"/>
<mkdir dir="${build.dist.login}/config/defaults"/>
<copy todir="${build.dist.login}/config/defaults" preservelastmodified="true">
<fileset dir="config">
<include name="loginserver.properties"/>
<include name="login_telnet.properties"/>
<include name="log.properties"/>
<include name="console.cfg"/>
</fileset>
</copy>
<copy todir="${build.dist.login}" preservelastmodified="true">
<fileset dir="data">
<include name="servername.xml"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/data"/>
<copy todir="${build.dist.game}/data" preservelastmodified="true">
<fileset dir="data">
<include name="**/*.*"/>
<exclude name="scripts/**/*.java"/>
</fileset>
</copy>
<fixcrlf srcdir="${build.dist.game}" eol="lf" eof="remove" includes="**/*.sh">
</fixcrlf>
<fixcrlf srcdir="${build.dist.login}" eol="lf" eof="remove" includes="**/*.sh">
</fixcrlf>
<fixcrlf srcdir="${build.dist.game}" eol="crlf" eof="remove" includes="**/*.bat">
</fixcrlf>
<fixcrlf srcdir="${build.dist.login}" eol="crlf" eof="remove" includes="**/*.bat">
</fixcrlf>
<mkdir dir="${build.dist}/sql"/>
<copy todir="${build.dist}/sql" preservelastmodified="true">
<fileset dir="sql">
<include name="**/*.*"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/geodata"/>
<mkdir dir="${build.dist.game}/webserver"/>
<copy todir="${build.dist.game}/webserver" preservelastmodified="true">
<fileset dir="webserver">
<include name="**/*.*"/>
</fileset>
</copy>
</target>
<target name="dist" depends="dist_common">
<copy todir="${build.dist.game}/data" preservelastmodified="true">
<fileset dir="data">
<include name="scripts/**/*.java"/>
</fileset>
</copy>
<zip destfile="${build}/sun-server.zip" basedir="${build.dist}"/>
</target>
<target name="with_jarscripts" depends="jar_scripts,dist_common">
<zip destfile="${build}/sun-server.zip" basedir="${build.dist}"/>
</target>
</project>
<project name="SunDev" default="with_jarscripts" basedir=".">
<property name="src" location="source"/>
<property name="lib" location="lib"/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<property name="build.scripts" location="${build}/scripts"/>
<property name="start" location="dist"/>
<property name="build.dist" location="${build}/dist"/>
<property name="build.dist.login" location="${build.dist}/login"/>
<property name="build.dist.game" location="${build.dist}/gameserver"/>
<path id="classpath">
<fileset dir="${lib}">
<exclude name="allatori.jar"/>
<include name="**/*.jar"/>
</fileset>
</path>
<pathconvert property="jar.list" pathsep=" " refid="classpath">
<mapper type="flatten"/>
</pathconvert>
<target name="clean" description="Remove the output directories">
<delete dir="${build}"/>
</target>
<target name="clean_scripts" description="Remove the scripts output directories">
<delete dir="${build.scripts}"/>
<delete file="${build}/scripts.jar"/>
<delete file="${build.dist.game}/scripts.jar"/>
</target>
<target name="cc" description="Remove the classes directories">
<delete dir="${build}/classes"/>
</target>
<target name="init" description="Create the output directories.">
<mkdir dir="${build}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.dist}"/>
<mkdir dir="${build.dist.login}"/>
<mkdir dir="${build.dist.game}"/>
</target>
<target name="compile" depends="init" description="Compile the source.">
<javac destdir="${build.classes}" optimize="on" debug="on" source="1.6" target="1.6" encoding="UTF-8"
includeantruntime="false" nowarn="off">
<compilerarg value="-Xlint:all"/>
<src path="${src}"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="compile_scripts" depends="jar" description="Compile the source.">
<copy todir="${lib}">
<fileset dir="${build}">
<include name="sun-server.jar"/>
</fileset>
</copy>
<mkdir dir="${build.scripts}"/>
<javac destdir="${build.scripts}" optimize="on" debug="on" source="1.6" target="1.6" encoding="UTF-8"
includeantruntime="false" nowarn="off">
<compilerarg value="-Xlint:all"/>
<src path="data"/>
<classpath refid="classpath"/>
</javac>
<delete file="${lib}/sun-server.jar"/>
</target>
<target name="debug" depends="init" description="Compile the source with debug info.">
<javac destdir="${build.classes}" optimize="on" debug="on" source="1.6" target="1.6" encoding="UTF-8"
nowarn="off" includeantruntime="false">
<compilerarg value="-Xlint:all"/>
<src path="${src}"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="jar" depends="clean,compile" description="Create the jar file">
<tstamp>
<format property="build.tstamp" pattern="yyyy.MM.dd HH:mm"/>
</tstamp>
<loadfile property="build.revision" srcFile="./.svn/entries">
<filterchain>
<headfilter lines="1" skip="3"/>
<deletecharacters chars="\n"/>
</filterchain>
</loadfile>
<concat destfile="${build.dist.game}/config/sun-version.properties">
revision=${build.revision}
builddate=${build.tstamp}
user=${user.name} ${user.dir}
os=${os.name} ${os.version} ${os.arch}
java=${java.version} ${java.vendor}
</concat>
<concat destfile="${build}/classes/sun/sun-version.properties">
revision=${build.revision}
builddate=${build.tstamp}
user=${user.name} ${user.dir}
os=${os.name} ${os.version} ${os.arch}
java=${java.version} ${java.vendor}
</concat>
<jar destfile="${build}/sun-server.jar" level="0">
<fileset dir="${build.classes}"/>
<manifest>
<attribute name="Build-By" value="${user.name}"/>
<attribute name="Revision" value="${build.revision}"/>
<attribute name="Build-Date" value="${build.tstamp}"/>
<attribute name="Main-Class" value="sun.Server"/>
<attribute name="Class-Path" value=". ${jar.list}"/>
</manifest>
</jar>
<copy todir="${build.dist.login}" preservelastmodified="true">
<fileset dir="${build}">
<include name="sun-server.jar"/>
</fileset>
</copy>
<copy todir="${build.dist.game}" preservelastmodified="true">
<fileset dir="${build}">
<include name="sun-server.jar"/>
</fileset>
</copy>
</target>
<target name="jar_scripts" depends="clean_scripts,compile_scripts" description="Create the scripts jar file">
<jar destfile="${build}/scripts.jar" level="0">
<fileset dir="${build.scripts}"/>
<manifest>
<attribute name="Class-Path" value=". ${jar.list}"/>
</manifest>
</jar>
<copy todir="${build.dist.game}" preservelastmodified="true">
<fileset dir="${build}">
<include name="scripts.jar"/>
</fileset>
</copy>
</target>
<target name="compile.gcj" depends="jar" description="Build machine executable binary">
<exec dir="." executable="gcj" failifexecutionfails="false" os="linux:Linux:freebsd:FreeBSD">
<arg line="-O3 ${build.dist}/sun-server.jar -o ${build.dist}/sunserver --main=sun.Server jbforth.jar"/>
</exec>
</target>
<target name="dist_common" depends="jar">
<copy todir="${build.dist}" preservelastmodified="true">
<fileset dir="${basedir}">
<include name="changes.txt"/>
<include name="LICENSE.txt"/>
<include name="README.txt"/>
</fileset>
</copy>
<mkdir dir="${build.dist.login}/lib"/>
<copy todir="${build.dist.login}/lib">
<fileset dir="${src}/../lib">
<include name="mchange-commons-0.2.jar"/>
<include name="mysql-connector-java-5.1.16-bin.jar"/>
<include name="javolution-5.5.1.jar"/>
<include name="jce.jar"/>
<include name="jacksum.jar"/>
<include name="guava-r07.jar"/>
<include name="slf4j-api-1.6.1.jar"/>
<include name="slf4j-simple-1.6.1.jar"/>
<include name="trove-2.1.0.jar"/>
<include name="lameguard-1.9.5.jar"/>
</fileset>
</copy>
<copy todir="${build.dist.login}" preservelastmodified="true">
<fileset dir="${start}">
<include name="startAccountManager.*"/>
<include name="startSQLAccountManager.*"/>
<include name="LoginServer_loop.sh"/>
<include name="StartLoginServer.*"/>
<include name="RegisterGameServer.*"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/lib"/>
<copy todir="${build.dist.game}/lib">
<fileset dir="${src}/../lib">
<exclude name="allatori.jar"/>
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${build.dist.game}" preservelastmodified="true">
<fileset dir="${start}">
<include name="GameServer_loop.sh"/>
<include name="StartGameServer.*"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/backup"/>
<mkdir dir="${build.dist.login}/backup"/>
<mkdir dir="${build.dist.game}/log"/>
<mkdir dir="${build.dist.login}/log"/>
<mkdir dir="${build.dist.game}/config"/>
<mkdir dir="${build.dist.game}/config/defaults"/>
<copy todir="${build.dist.game}/config" preservelastmodified="true">
<fileset dir="config">
<include name="sun-version.properties"/>
</fileset>
</copy>
<copy todir="${build.dist.game}/config/defaults" preservelastmodified="true">
<fileset dir="config">
<include name="*.properties"/>
<include name="*.xml"/>
<include name="*.cfg"/>
<include name="*.txt"/>
<include name="fake_players.list"/>
<exclude name="loginserver.properties"/>
<exclude name="login_telnet.properties"/>
<exclude name="sun-version.properties"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/config/GMAccess.d"/>
<mkdir dir="${build.dist.game}/config/GMAccess.d/template"/>
<mkdir dir="${build.dist.game}/config/defaults/GMAccess.d"/>
<mkdir dir="${build.dist.game}/config/defaults/GMAccess.d/template"/>
<copy todir="${build.dist.game}/config/GMAccess.d/template" preservelastmodified="true">
<fileset dir="config/GMAccess.d/template">
<include name="*.xml"/>
</fileset>
</copy>
<copy todir="${build.dist.game}/config/defaults/GMAccess.d/template" preservelastmodified="true">
<fileset dir="config/GMAccess.d/template">
<include name="*.xml"/>
</fileset>
</copy>
<mkdir dir="${build.dist.login}/config"/>
<mkdir dir="${build.dist.login}/config/defaults"/>
<copy todir="${build.dist.login}/config/defaults" preservelastmodified="true">
<fileset dir="config">
<include name="loginserver.properties"/>
<include name="login_telnet.properties"/>
<include name="log.properties"/>
<include name="console.cfg"/>
</fileset>
</copy>
<copy todir="${build.dist.login}" preservelastmodified="true">
<fileset dir="data">
<include name="servername.xml"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/data"/>
<copy todir="${build.dist.game}/data" preservelastmodified="true">
<fileset dir="data">
<include name="**/*.*"/>
<exclude name="scripts/**/*.java"/>
</fileset>
</copy>
<fixcrlf srcdir="${build.dist.game}" eol="lf" eof="remove" includes="**/*.sh">
</fixcrlf>
<fixcrlf srcdir="${build.dist.login}" eol="lf" eof="remove" includes="**/*.sh">
</fixcrlf>
<fixcrlf srcdir="${build.dist.game}" eol="crlf" eof="remove" includes="**/*.bat">
</fixcrlf>
<fixcrlf srcdir="${build.dist.login}" eol="crlf" eof="remove" includes="**/*.bat">
</fixcrlf>
<mkdir dir="${build.dist}/sql"/>
<copy todir="${build.dist}/sql" preservelastmodified="true">
<fileset dir="sql">
<include name="**/*.*"/>
</fileset>
</copy>
<mkdir dir="${build.dist.game}/geodata"/>
<mkdir dir="${build.dist.game}/webserver"/>
<copy todir="${build.dist.game}/webserver" preservelastmodified="true">
<fileset dir="webserver">
<include name="**/*.*"/>
</fileset>
</copy>
</target>
<target name="dist" depends="dist_common">
<copy todir="${build.dist.game}/data" preservelastmodified="true">
<fileset dir="data">
<include name="scripts/**/*.java"/>
</fileset>
</copy>
<zip destfile="${build}/sun-server.zip" basedir="${build.dist}"/>
</target>
<target name="with_jarscripts" depends="jar_scripts,dist_common">
<zip destfile="${build}/sun-server.zip" basedir="${build.dist}"/>
</target>
</project>
но так и не понял, что это, куда идёт коннект и т.д <loadfile property="build.revision" srcFile="./.svn/entries">
Разьясните пожалуйста