2016-05-28 10 views
1

Deeplearning4jでトレーニングされた神経ネットを使用するリスクゲームLux DeluxのAIを作成しようとしています。Deeplearning4jとLux Deluxを使用したAnt build.xml

当然、私がコンパイルするとき、私はパッケージの束を得るエラーが存在しません。そのような依存関係をAntビルドに追加するにはどうすればいいですか? Ivyを使う必要がありますか?ファイルをビルドし、次のとおりです。

<?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> 
+0

依存関係をクラスパスとして含めるには、[documentation](https://ant.apache.org/manual/using.html)をご覧ください。 – Rao

+0

ご質問がある場合は、Gitterのコミュニティに参加してください。https://gitter.im/deeplearning4j/deeplearning4j – tremstat

答えて

0

あなたはMavenの経由ユーバーjarを構築し、そのようにそれを含めてのいくつかの理由の一見のためのアリを使用する必要がある場合。

関連する問題