0
BUILD FAILED
C:\Users\SomeUser\Downloads\mule_test\build.xml:69: Problem: failed to create task or type cloudHubDeploy
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.

指示:

<target name="deploy" depends="package">
    <cloudHubDeploy username="usr" password="pswd" domain="${app.name}" applicationFile="${app.file}" />
</target>

ant-contrib-1.0b3.jarを使用していますが、コマンドを認識していません。

4

2 に答える 2

1

<cloudHubDeploy>サードパーティのタスクです。それを定義するソース、またはその JAR を参照するソースを含める必要があります。

簡単な Google 検索で、このガイドとこのダウンロード リンクが得られました。

于 2013-05-07T15:05:18.133 に答える
0

@whiskeyspider で述べられているように、これはサードパーティの ANT タスクです。これは常に、ANT クラスパスから jar が欠落していることを意味します。

README ドキュメントには、タスクを有効にするために何が必要かが説明されています。

Ant は Java アプリケーションを構築するためのツールであり、カスタム タスクを追加することで拡張できます。これらのタスクにより、Mule アプリケーションを構築およびデプロイできます。

これらのタスクを使用するには:

Add -lib mule-anttasks.jar to your Ant command line, to put the classes that implement the tasks in Ant's classpath.
Add <taskdef resource="org/mule/mulePackagingTasks.properties"/> to your Ant build file, to import the task definitions.

mule-anttasks.jar は、ANT が実行時に取得できるように、次のいずれかのディレクトリに追加することもできます。

  • $ANT_HOME/lib
  • $HOME/.ant/lib

お役に立てれば。

于 2013-05-07T19:19:22.613 に答える