【问题标题】:Ant build.xml with Deeplearning4j and Lux Delux带有 Deeplearning4j 和 Lux Delux 的 Ant build.xml
【发布时间】:2016-05-28 02:55:31
【问题描述】:

我正在尝试为风险游戏 Lux Delux 创建一个 AI,它将利用在 Deeplearning4j 中训练的神经网络。

当然,当我编译时,我得到一堆包不存在的错误。如何将此类依赖项添加到 ant 构建中?我需要使用常春藤吗?构建文件如下:

<?xml version="1.0" encoding="UTF-8"?>
<project name="SillysoftSDK" default="compile" basedir=".">
    <!-- Edit these properties to fit your build environment. 
         Then you will be able to run the 'ant dist' command to re-compile 
         and deploy your file to where Lux will find it. -->
    <property name="built_file" location="build/com/sillysoft/lux/agent/YourClassName.class" />
    <property name="lux_agent_folder" location="${user.home}/Library/Application Support/Lux/Agents/" />
    <property name="lux_mapgen_folder" location="${user.home}/Library/Application Support/Lux/MapGenerators/" />


    <!-- Move your agent class into Lux's agent folder (switch it to lux_mapgen_folder if needed) -->
    <target name="dist" depends="compile">
        <copy file="${built_file}" todir="${lux_agent_folder}"/>
    </target>


    <!-- Clean all build products -->
    <target name="clean">
        <delete dir="build"/>
    </target>

    <!-- Compile the java files into their .class files -->
    <target name="compile">
        <mkdir dir="build"/>
        <javac srcdir="src" destdir="build"
            debug="true" 
            debuglevel="lines,vars,source" 
            includeantruntime="false"
            target="1.7"
            source="1.7" >
        <compilerarg value="-XDignore.symbol.file"/>
        </javac>
    </target>

</project>

【问题讨论】:

标签: java ant deeplearning4j


【解决方案1】:

如果您出于某种原因必须使用 ant,请查看通过 maven 构建一个 uber jar 并像这样包含它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-31
    • 1970-01-01
    • 2014-05-21
    • 2012-08-17
    • 2010-10-24
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    相关资源
    最近更新 更多