1
我得到這個錯誤未能建立與日食(螞蟻常春藤)一個Liferay的項目
BUILD FAILED
C:\---\---\---\build-common-ivy.xml:7: Problem: failed to create task or type if
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.
似乎在那裏我定義屬性名=「ivy.home」行失敗:
<project name="build-common-ivy" xmlns:antelope="antlib:ise.antelope.tasks" xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="ivy.home" value="${sdk.dir}/.ivy" />
<if>
<not>
<available file="${ivy.home}/ivy-${ivy.version}.jar" />
</not>
<then>
...
我認爲這是未定義的$ {sdk.dir},但我可以在哪裏定義它?
它看起來就像你試圖用螞蟻的contrib的''任務,但是您尚未在腳本中加載ant-contrib的任務。爲了記錄,我建議不惜一切代價避免使用ant-contrib。它會導致腳本中出現系統性問題,絕大多數時候,vanilla Ant會更加快速,安全和優雅地滿足您的需求。 –
CAustin