在gradle中我想使用目录变量,ant中的内容是$ .
def mydir = new File("mydir")
copy {
from 'example.txt'
into '${mydir}/out/'
}
这该怎么做?文档不包含有关此问题的信息AFAICS,http://gradle.org/docs/current/userguide/working_with_files.html
在gradle中我想使用目录变量,ant中的内容是$ .
def mydir = new File("mydir")
copy {
from 'example.txt'
into '${mydir}/out/'
}
这该怎么做?文档不包含有关此问题的信息AFAICS,http://gradle.org/docs/current/userguide/working_with_files.html
1 回答
尝试:
或者如果
GString
(注意双
"
引号)