ant symlink ターゲットを使用してシンボリックリンクを作成したい。symlink は、Linux でサポートされている ln -s コマンドを内部的に使用していることを知っています。現在、私の主な懸念は、Windows プラットフォームでも動作する必要があることです。これを投稿する前に検索しました。Ant symlink ターゲットを使用して Windows でリンクを作成する必要がある場合、そこにあるリンクは実際には役に立ちません。これを機能させるために、Windows用のCygwinまたはその他のLinuxシミュレーターを使用したくありません。
Windowsでsymlinkタスクを実行すると、実際に以下のエラーが発生します
setup.links:
[symlink] ln -s D:\context-rem.xml D:\resources\context-rem.xml
Could not launch ln: java.io.IOException: Cannot run program "ln": CreateProcess error=2, The system cannot find the file specified
私が使っているAntコマンド
<symlink link="context-rem.xml" failOnError="false" resource="resources/context-rem.xml" overwrite="true"/>