0
、私は例外を取得(例えば、スクリプトタスクでScriptRunner用)アリのオプションを使用することはできません。私はこのようにそれらを使用します。Gradleでは、私は、インポートAntタスクを実行すると
<script manager="bsf" language="beanshell" classpath="${bshJar}"><![CDATA[
私は何とかANT-のapache-BSFジャーに依存関係を追加する必要がありますね。試しました
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.apache.ant:ant-apache-bsf:+'
}
}
// Confirm the classpath contains optional jar.
// The jar contains the required class.
buildscript.configurations.classpath.each { println it }
def sc = new org.apache.tools.ant.util.optional.ScriptRunner();
println "sure we are able to create a script runner object: $sc"
ant.importBuild "build.xml"
いいえ正常に終了しました。 Gradle User Guideに有望なタイトル42.9 Ant optional dependenciesの記事があります。残念ながら、この記事で私が理解している唯一のことは、私のソリューションがうまくいかないことです。与えられた例は役に立たない。
私のantスクリプトタスクを利用するにはどうすればよいですか?