Java プロジェクト用の NSIS スクリプトを作成しました。Eclipse に nsis プラグインをインストールしました。プラグインを使用して nsi ファイルを作成しました。次に、nsi ファイルをコンパイルしたいと思います。Eclipse で Ant を使用しようとしました。
<?xml version="1.0" encoding="UTF-8"?>
<project name="test" default="nsis" basedir=".">
<property name="build.path" value="build"/>
<property name="deploy.dir" value="/opt/test"></property>
<path id="library.classpath">
<fileset dir="lib">
<include name="nsisant-1.2.jar"/>
</fileset>
</path>
<target name="nsis" description="compile nsis script">
<mkdir dir="${build.path}/nsis"/>
<nsis script="setup.nsi">
<classpath refid="library.classpath"/>
</nsis>
</target>
</project>
しかし、それは次のエラーをスローします。
BUILD FAILED
build.xml:12: Problem: failed to create task or type nsis
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
なぜこれが起こるのかわかりませんか?? antを使用してnsiファイルをコンパイルするには? または、antを使用せずにコンパイルする他の方法はありますか?