0

私のAntコード

<?xml version="1.0" encoding="UTF-8"?>
<project default="plugin_export" name="build">
  <target name="plugin_export">
    <pde.exportPlugins destination="C:\" exportSource="false" exportType="directory" plugins="MyPlugin" useJARFormat="true" allowbinarycycles="true" filename="MyPlugin.jar" qualifier="X" />
    <waitfor maxwait="15" maxwaitunit="minute">
      <copy todir="j:\eclipse-rcp-juno-SR1-win32\dropins\">
        <fileset dir="c:\plugins\">
          <include name="*" />
        </fileset>
      </copy>
    </waitfor>
  </target>
</project>

私は得るので、それは動作しません

windows_build.xml:8: waitfor はネストされた "copy" 要素をサポートしていません。

pde.exportPlugins 部分は Eclipse によって自動生成され、プラグインで jar を作成するバックグラウンド プロセスを実行します。

そのプラグインを、私が使用している eclpse の 3 つのインスタンスにコピーし、それを dropins フォルダーに入れたいと思います。どうやってするの ?

4

1 に答える 1

2

ビルドが完了した後で作業を完了するには、buildlistener を使用できます。
Kev Jackson は、彼のプレゼンテーションで非常に便利な exec-listener を実装しました =
http://people.apache.org/~kevj/ossummit/extending-ant.html (ソースはプレゼンテーションに含まれています)。
ビルド結果 ( BUILD SUCCESSFUL | BUILD FAILED ) ごとに、ビルドが終了した後に実行する必要があるすべてのものを入れることができる taskcontainer を提供します。

<exec-listener onSuccess="true">
    <echo>Executing after BUILD SUCCESSFUL...</echo>
    <exec executable="..">
      <arg value="..."/>
    </exec>
    <mail ... />
   ..other tasks
  </exec-listener>
<exec-listener onSuccess="false">
    <echo>Executing after BUILD FAILED...</echo>
    <exec executable="..">
      <arg value="..."/>
    </exec>
    <mail ... />
   ..other tasks
  </exec-listener>
于 2013-03-07T19:57:53.253 に答える