Snowball1 Написал:Шары ты выпускаешь 1 в 1 как клиентку потому что не знаешь как скрипты в либу скомпилить, единственное обьяснение:Olen':
Ну да не знаю....
?xml version="1.0" encoding="UTF-8"?>
<project name="Asgard-Dev GG Scrits" default="dist" basedir=".">
<description></description>
<property name="src" location="java/core/gameserver"/>
<property name="scr" location="dist/gameserver/data/scripts"/>
<property name="lib" location="lib"/>
<property name="build" location="build"/>
<property name="build.scripts" location="${build}/scripts"/>
<property name="build.classes" location="${build.scripts}/classes"/>
<property name="build.dist.game" location="${build}/dist/serverslibs"/>
<property name="core" location="build/scripts/classes/core"/>
<path id="classpath">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<target name="dir">
<delete dir="${build.scripts}"/>
<delete dir="${build.classes}"/>
<mkdir dir="${build.scripts}"/>
<mkdir dir="${build.classes}"/>
</target>
<target name="compiles" depends="dir" description="Compile the source.">
<javac destdir="${build.classes}" optimize="on" debug="on" source="1.8" target="1.8" encoding="UTF-8" includeantruntime="false" nowarn="off">
<compilerarg value="-Xlint:all,-serial"></compilerarg>
<src path="${src}"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="compile" depends="dir" description="Compile the source.">
<javac destdir="${build.classes}" optimize="on" debug="on" source="1.8" target="1.8" encoding="UTF-8" includeantruntime="false" nowarn="off">
<compilerarg value="-Xlint:unchecked,-serial"></compilerarg>
<src path="${scr}"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="dist" depends="compiles, compile" description="Create jar-file">
<delete dir="${core}"/>
<delete dir="build/scripts/classes/drin"/>
<jar destfile="${build.scripts}/core-scripts.jar">
<fileset dir="${build.classes}"/>
<manifest>
<attribute name="Class-Path"
value=". "/>
</manifest>
</jar>
<delete dir="${build.classes}"/>
<copy todir="${build.dist.game}" preservelastmodified="true">
<fileset dir="${build.scripts}">
<include name="core-scripts.jar"/>
</fileset>
</copy>
</target>
</project>