Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
- Хроники
- Harbingers of War
- Исходники
- Присутствуют
- Сборка
- Samsklepal
Подскажите как build добавить внешние библиотеки? В IDE папка с библиотеками задана.
Допустим dist/libs
Допустим dist/libs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<project name="HarbingersOfWar" default="cleanup" basedir=".">
<property name="build" location="/build" />
<property name="build.bin" location="${build}/bin" />
<property name="build.dist" location="${build}/dist" />
<property name="datapack" location="dist" />
<property name="src" location="java" />
<target name="checkRequirements" description="Check Requirements.">
<fail message="Ant 1.8.2 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">
<condition>
<not>
<antversion atleast="1.8.2" />
</not>
</condition>
</fail>
<available classname="java.util.stream.Stream" property="JDK8.present" />
<fail unless="JDK8.present" message="Java 1.8 is required. But your version is Java ${ant.java.version} and probably JDK is not installed." />
</target>
<target name="init" depends="checkRequirements" description="Create the output directories.">
<delete dir="${build.bin}" quiet="true" />
<mkdir dir="${build.bin}" />
</target>
<target name="compile" depends="init" description="Compile the source.">
<javac srcdir="${src}" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="8" target="8" encoding="UTF-8" />
</target>
<target name="jar" depends="compile" description="Create the jar files.">
<tstamp>
<format property="time.stamp" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<jar destfile="${build.dist}/Server.jar" level="9">
<fileset dir="${build.bin}" />
<manifest>
<attribute name="Build-By" value="${user.name}" />
<attribute name="Build-Date" value="${time.stamp}" />
<attribute name="Main-Class" value="lin2wofe.Server" />
</manifest>
</jar>
</target>
<target name="adding-core" depends="jar" description="Adding the compiled jars to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${build.dist}" level="9" />
</target>
<target name="adding-datapack" depends="adding-core" description="Updating the Zip file with datapack content.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${datapack}" update="true" level="9" />
</target>
<target name="adding-readme" depends="adding-datapack" description="Adding readme.txt to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="." includes="readme.txt" update="true" level="9" />
</target>
<target name="cleanup" depends="adding-readme" description="Cleaning the build folder.">
<delete dir="${build.dist}" />
</target>
</project>
<target name="compile" depends="init" description="Compile the source.">
<javac srcdir="${src}" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="8" target="8" encoding="UTF-8" />
</target>
<target name="jar" depends="compile" description="Create the jar files.">
<tstamp>
<format property="time.stamp" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<jar destfile="${build.dist}/Server.jar" level="9">
<fileset dir="${build.bin}" />
<manifest>
<attribute name="Build-By" value="${user.name}" />
<attribute name="Build-Date" value="${time.stamp}" />
<attribute name="Main-Class" value="lin2wofe.Server" />
</manifest>
</jar>
</target>
<target name="adding-core" depends="jar" description="Adding the compiled jars to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${build.dist}" level="9" />
</target>
<target name="adding-datapack" depends="adding-core" description="Updating the Zip file with datapack content.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${datapack}" update="true" level="9" />
</target>
<target name="adding-readme" depends="adding-datapack" description="Adding readme.txt to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="." includes="readme.txt" update="true" level="9" />
</target>
<target name="cleanup" depends="adding-readme" description="Cleaning the build folder.">
<delete dir="${build.dist}" />
</target>
</project>
<!DOCTYPE xml>
<project name="HarbingersOfWar" default="cleanup" basedir=".">
<property name="build" location="/build" />
<property name="build.bin" location="${build}/bin" />
<property name="build.dist" location="${build}/dist" />
<property name="datapack" location="dist" />
<property name="src" location="java" />
<target name="checkRequirements" description="Check Requirements.">
<fail message="Ant 1.8.2 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">
<condition>
<not>
<antversion atleast="1.8.2" />
</not>
</condition>
</fail>
<available classname="java.util.stream.Stream" property="JDK8.present" />
<fail unless="JDK8.present" message="Java 1.8 is required. But your version is Java ${ant.java.version} and probably JDK is not installed." />
</target>
<target name="init" depends="checkRequirements" description="Create the output directories.">
<delete dir="${build.bin}" quiet="true" />
<mkdir dir="${build.bin}" />
</target>
<target name="compile" depends="init" description="Compile the source.">
<javac srcdir="${src}" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="8" target="8" encoding="UTF-8" />
</target>
<target name="jar" depends="compile" description="Create the jar files.">
<tstamp>
<format property="time.stamp" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<jar destfile="${build.dist}/Server.jar" level="9">
<fileset dir="${build.bin}" />
<manifest>
<attribute name="Build-By" value="${user.name}" />
<attribute name="Build-Date" value="${time.stamp}" />
<attribute name="Main-Class" value="lin2wofe.Server" />
</manifest>
</jar>
</target>
<target name="adding-core" depends="jar" description="Adding the compiled jars to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${build.dist}" level="9" />
</target>
<target name="adding-datapack" depends="adding-core" description="Updating the Zip file with datapack content.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${datapack}" update="true" level="9" />
</target>
<target name="adding-readme" depends="adding-datapack" description="Adding readme.txt to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="." includes="readme.txt" update="true" level="9" />
</target>
<target name="cleanup" depends="adding-readme" description="Cleaning the build folder.">
<delete dir="${build.dist}" />
</target>
</project>
<target name="compile" depends="init" description="Compile the source.">
<javac srcdir="${src}" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="8" target="8" encoding="UTF-8" />
</target>
<target name="jar" depends="compile" description="Create the jar files.">
<tstamp>
<format property="time.stamp" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<jar destfile="${build.dist}/Server.jar" level="9">
<fileset dir="${build.bin}" />
<manifest>
<attribute name="Build-By" value="${user.name}" />
<attribute name="Build-Date" value="${time.stamp}" />
<attribute name="Main-Class" value="lin2wofe.Server" />
</manifest>
</jar>
</target>
<target name="adding-core" depends="jar" description="Adding the compiled jars to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${build.dist}" level="9" />
</target>
<target name="adding-datapack" depends="adding-core" description="Updating the Zip file with datapack content.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="${datapack}" update="true" level="9" />
</target>
<target name="adding-readme" depends="adding-datapack" description="Adding readme.txt to the Zip file.">
<zip destfile="${build}/HarbingersOfWar.zip" basedir="." includes="readme.txt" update="true" level="9" />
</target>
<target name="cleanup" depends="adding-readme" description="Cleaning the build folder.">
<delete dir="${build.dist}" />
</target>
</project>