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.
我的 grails 应用程序中有两个脚本,我怎么能需要一个脚本的目标到另一个,我该怎么做?
我试着做:
includeTargets << grailsScript("FirstScript")
但是 grails 抛出异常...我也尝试过:
includeTargets << FirstScript
但是这个说grails找不到类... 我该怎么办?
谢谢
您需要将文件句柄转移到脚本:
includeTargets << new File("${basedir}/scripts/_FirstScript.groovy)