2 回答
TA贡献1827条经验 获得超9个赞
我能够针对我的问题提出这个解决方案build.gradle:
def JLINK_DIR = "$buildDir/myApp"
tasks.jlink.doLast {
copy {
from("/") {
include "README.md", "LICENSE"
}
into JLINK_DIR + "/docs"
}
copy {
includeEmptyDirs = false
from("/path/to/sample/input") {
include "sample_input_1/*"
include "sample_input_2/*"
exclude "output"
}
into JLINK_DIR + "/sample_input"
}
}
Gradle Docs on copy和Badass JLink Plugin 示例特别有用。
TA贡献1820条经验 获得超10个赞
对我来说,我试图添加到安装程序。我必须执行以下操作:
def JLINK_DIR = "$buildDir/jpackage/MyApp"
tasks.jpackage.doFirst {
copy {
from("/config") {
include "config.properties"
}
into JLINK_DIR + "/config"
}
}
添加回答
举报