Перейти к содержимому
La2Base
Главная
ЗагрузкиВикиФорумFAQ
Поиск
ruen
Регистрация Войти
ГлавнаяФайлыВикиВойти
  • Главная
  • Загрузки
  • Вики
  • FAQ
  • Обратная связь
  • О проекте
  • Правила
  • Конфиденциальность
  • Условия использования

© 2026 la2base.com · Все права защищены

ruen
Форум/Форум для новичков[JAVA]/Компиляция
Поиск

Компиляция

8 ответов120 просмотровСейчас просматривают: 1
Андрей
Андрей

Пользователь

Ветеран

Постов: 751

На форуме с: 30.11.2008

Репутация: +119

Рейтинг: 0

· 07.12.2009, 17:58

Сборка: L2Jserver с4

SVN: http://l2jserver.com/svn/branches/L2_GameServer_c4/

Краткое изложение СУТИ проблемы: Компиляция не завершается, нет части файлов датапака. Заканчивается на отсутствии статов.

Вопрос: Как исправить?

Мои соображения по этому поводу: Тут где-то моя ошибка.

С SVN все скачал нормально, компиляция начинается без ошибок.
Компиляция с помощью Ant.

— Newbie!

0
V
vfnhbwf666

Пользователь

Новичок

Постов: 1

На форуме с: 10.11.2009

Рейтинг: 0

· 10.12.2009, 09:58

Ы

0
Глеб
Глеб

Пользователь

Ветеран

Постов: 714

На форуме с: 09.12.2008

Репутация: +8

Рейтинг: 0

· 10.12.2009, 10:00

Build.xml отредактируй и все

0
Андрей
Андрей

Пользователь

Ветеран

Постов: 751

На форуме с: 30.11.2008

Репутация: +119

Рейтинг: 0

· 10.12.2009, 10:24

Цитата
Build.xml отредактируй и все

Я посмотрел, файлов там действительно не хватает.
может что-то скачиваю не так или не оттуда?

— Newbie!

0
Глеб
Глеб

Пользователь

Ветеран

Постов: 714

На форуме с: 09.12.2008

Репутация: +8

Рейтинг: 0

· 11.12.2009, 11:14

Просто удали оттуда строчки с требуемыми файлами. Они не нужны для компиляции.

0
Андрей
Андрей

Пользователь

Бывалый

Постов: 140

На форуме с: 01.05.2008

Репутация: +56

Рейтинг: 0

· 11.12.2009, 11:21

Вот их исходы датапака _http://www.l2jdp.com/svn/branches/

0
Андрей
Андрей

Пользователь

Ветеран

Постов: 751

На форуме с: 30.11.2008

Репутация: +119

Рейтинг: 0

· 11.12.2009, 11:35

Цитата
Просто удали оттуда строчки с требуемыми файлами. Они не нужны для компиляции.

Цитата
Вот их исходы датапака _http://www.l2jdp.com/svn/branches/

Благодарю, но я уже разобрался.
Для тех у кого возникнет подобная проблема:
1.Скачайте датапак с ссылки данной xadidax.
2.В исходах логин/гейм в файле build убираете строки выделенные красным.

Раскрывающийся текст
<?xml version="1.0" encoding="UTF-8"?>
<project name="L2_GameServer" default="dist" basedir=".">
<description>
This script will build the L2J server.

$Author: Lbaldi $
$Date: 2006-06-30 11:11:21 +0200 (ven., 30 juin 2006) $
$Revision: 2164 $

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.

#http://www.gnu.org/copyleft/gpl.html

</description>

<property name="src" location="java"/>
<property name="lib" location="lib"/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<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}">
<include name="c3p0-0.9.0.jar"/>
<include name="bsf.jar"/>
<include name="bsh-2.0.jar"/>
<include name="jython.jar"/>
<include name="javolution.jar"/>
<include name="hibernate3.jar"/>
</fileset>
</path>

<target name="init"
depends="clean"
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="version"
description="Compile the source.">

<javac destdir="${build.classes}"
optimize="on"
debug="on"
source="1.5"
target="1.5"
nowarn="off">
<src path="${src}"/>
<classpath refid="classpath"/>
</javac>
</target>


<target name="jar"
depends="compile"
description="Create the jar file">

<jar destfile="${build}/l2jserver.jar">
<fileset dir="${build.classes}"/>
<manifest>
<attribute name="Main-Class" value="net.sf.l2j.Server"/>
<attribute name="Class-Path" value=". bsf.jar bsh-2.0.jar c3p0-0.9.0.jar jython.jar mysql-connector-java-3.1.10-bin.jar sqljdbc.jar javolution.jar"/>
</manifest>
</jar>

<copy todir="${build.dist.login}">
<fileset dir="${build}">
<include name="l2jserver.jar"/>
</fileset>
</copy>
<copy todir="${build.dist.game}">
<fileset dir="${build}">
<include name="l2jserver.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}/l2jserver.jar -o ${build.dist}/l2jserver --main=net.sf.l2j.Server"/>
</exec>
</target>


<target name="dist" depends="jar">

<copy todir="${build.dist.login}">
<fileset dir="${src}">
<include name="log.cfg"/>
<include name="banned_ip.cfg"/>
<include name="console.cfg"/>
</fileset>
</copy>

<copy todir="${build.dist.game}">
<fileset dir="${src}">
<include name="log.cfg"/>
<include name="console.cfg"/>
</fileset>
</copy>

<copy todir="${build.dist.login}">
<fileset dir="${src}/../lib">
<include name="c3p0-0.9.0.jar"/>
<include name="mysql-connector-java-3.1.10-bin.jar"/>
<include name="sqljdbc.jar"/>
<include name="javolution.jar"/>
</fileset>
</copy>

<copy todir="${build.dist.game}">
<fileset dir="${src}/../lib">
<include name="*.jar"/>
</fileset>
</copy>

<copy todir="${build.dist}">
<fileset dir="${basedir}">
<include name="changes.txt"/>
<include name="LICENSE.txt"/>
<include name="README.txt"/>
</fileset>
</copy>

<copy todir="${build.dist}">
<fileset dir="${src}/../lib">
<include name="License*.*"/>
</fileset>
</copy>

<copy todir="${build.dist.login}">
<fileset dir="dist">
<include name="startAccountManager.*"/>
<include name="startSQLAccountManager.*"/>
<include name="LoginServer_loop.sh"/>
<include name="startLoginServer.*"/>
<include name="RegisterGameServer.*"/>
</fileset>
</copy>
<copy todir="${build.dist.game}">
<fileset dir="dist">
<include name="GameServer_loop.sh"/>
<include name="startGameServer.*"/>
<include name="hibernate.cfg.xml"/>
</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.game}/log" />
<mkdir dir="${build.dist.login}/log" />
<mkdir dir="${build.dist.game}/hibernate-mapping" />

<mkdir dir="${build.dist.game}/config" />
<mkdir dir="${build.dist.login}/config" />
<copy todir="${build.dist.game}/config">
<fileset dir="java/config">
<include name="*.properties"/>
<exclude name="loginserver.properties" />
</fileset>
</copy>
<copy todir="${build.dist.login}/config">
<fileset dir="java/config">
<include name="loginserver.properties"/>
<include name="telnet.properties"/>
</fileset>
</copy>

<copy todir="${build.dist.game}/hibernate-mapping">
<fileset dir="dist/hibernate-mapping">
<include name="*.xml"/>
</fileset>
</copy>

<mkdir dir="${build.dist.game}/data" />
<copy todir="${build.dist.game}/data">
<fileset dir="data">
<include name="*.csv"/>
<include name="*.txt"/>
</fileset>
</copy>

<copy todir="${build.dist.login}">
<fileset dir="data">
<include name="servername.xml"/>
</fileset>
</copy>

<mkdir dir="${build.dist.game}/data/html" />
<copy todir="${build.dist.game}/data/html">
<fileset dir="data/html">
<include name="**/*.htm"/>
<include name="**/*.html"/>
</fileset>
</copy>


<mkdir dir="${build.dist.game}/data/stats" />
<copy todir="${build.dist.game}/data/stats">
<fileset dir="data/stats">
<include name="**/*.xml"/>
</fileset>
</copy>


<zip destfile="${build}/l2j-server.zip"
basedir="${build.dist}" />
</target>

<target name="version"
depends="init"
description="Create l2j-version.properties file">

<tstamp>
<format property="build.tstamp"
pattern="yyyyMMdd_HHmm"/>
</tstamp>


<exec dir="." executable="svnversion" outputproperty="l2j.revision"
failifexecutionfails="false">
<arg line="-n ."/>
</exec>

<concat destfile="${build.dist.game}/config/l2j-version.properties">
version=${l2j.revision}
builddate=${build.tstamp}

Detailed Info:
</concat>


<concat destfile="${build.dist.game}/config/l2j-version.properties" append="true">
<filelist dir="${src}/../.svn/" files="entries"/>
<filterchain>
<headfilter lines="5" skip="4"/>
</filterchain>
</concat>

</target>

<target name="clean"
description="Remove the output directories">

<delete dir="${build}"/>
</target>
</project>

3.Компилируете.

— Newbie&#33;

0
S
Ska
· 11.12.2009, 11:37

Закрыто.

0
Тема закрыта для ответов