Беда с компиляцией в Идее. Через ант компилирует нормально, а в Идее траблы.
Порядок действий: Идея-Открыть проэкт-Sources-Выбираю JDK 1.8-ант-Добавляю build.xml из папки sources/ant - run build - и вот такие вот ошибки ( скриншот прикреплен ниже ):
build.xml
Код:
<project default="all" basedir="../">
<property name="output" location="build" />
<target name="all">
<antcall target="revision"/>
<ant antfile="./ant/folder_struct.xml"/>
<ant antfile="./ant/build_commons.xml"/>
<ant antfile="./ant/build_gameserver.xml"/>
<ant antfile="./ant/build_gameserver.xml" target="files"/>
<ant antfile="./ant/build_lucera.xml"/>
<ant antfile="./ant/build_login.xml"/>
<ant antfile="./ant/build_login.xml" target="files"/>
</target>
<target name="rebuild_gameserver">
<ant antfile="./ant/build_gameserver.xml"/>
</target>
<target name="rebuild_commons">
<ant antfile="./ant/build_commons.xml"/>
</target>
<target name="rebuild_lucera">
<ant antfile="./ant/build_lucera.xml"/>
</target>
<target name="rebuild_login">
<ant antfile="./ant/build_login.xml"/>
</target>
<target name="revision">
<property name="Revision" value="123"/>
<tstamp>
<format property="Datetime" pattern="dd/MM/yyyy HH:mm" locale="ru,RU"/>
</tstamp>
<echo>Revision: ${Revision}</echo>
<echo>Time: ${Datetime}</echo>
</target>
</project>
build_template.xml
Код:
<project name="build template" default="def">
<target name="def">
<echo>Build: ${lib_name}</echo>
<antcall target="clear"/>
<javac srcdir="${source}" destdir="${output}/classes" encoding="UTF-8" nowarn="on" optimize="on" debug="on" source="1.8" target="1.8" >
<classpath>
<path refid="libs"/>
</classpath>
</javac>
<tstamp>
<format property="Datetime" pattern="dd/MM/yyyy HH:mm:ss" locale="ru,RU"/>
</tstamp>
<jar destfile="${output}/${lib_name}.jar">
<fileset dir="${output}/classes"/>
<manifest>
<attribute name="Implementation-Version" value="${git.Revision.count}" />
<attribute name="Built-At" value="${Datetime}" />
</manifest>
</jar>
<echo>Revision: ${Revision}</echo>
<echo>Time: ${Datetime}</echo>
</target>
<target name="clear">
<delete dir="${output}/classes" quiet="true"/>
<mkdir dir="${output}/classes" />
</target>
</project>
Ссылка на остальные билд-файлы: _http://rghost.ru/7xkT4R8JT
Заранее благодарен за помощь.