Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
antスクリプトからファイルを呼び出して、コマンドプロンプトでrubyファイル(例:d:\ ruby \ ruby file.rb)を実行する必要があります。アリのスクリプトが必要です。誰か助けてもらえますか?
<exec>おそらく最初の引数として rb ファイルを指定して on ruby を使用するでしょう。
<exec>
このようなもの:
<exec executable="c:\Ruby192\bin\ruby.exe" dir="d:\ruby"> <arg value="d:\ruby\ruby file.rb"/> </exec>
ruby.exe がインストールされている場所と、それが PATH にあるかどうかによって異なります。