mirror of https://github.com/nasa/ziggy.git
66 lines
1.5 KiB
Groovy
66 lines
1.5 KiB
Groovy
task copyPrograms(type: Copy) {
|
|
from(fileTree("src/main/sh").files) {
|
|
include('*.sh')
|
|
rename('(.+)\\.sh$', '$1')
|
|
}
|
|
from(fileTree("src/main/perl").files) {
|
|
include('*.pl')
|
|
rename('(.+)\\.pl$', '$1')
|
|
}
|
|
filePermissions {
|
|
unix 0755
|
|
}
|
|
into "$buildDir/bin"
|
|
}
|
|
|
|
assemble.dependsOn copyPrograms
|
|
|
|
task copyMatlab(type: Copy) {
|
|
from("src/main/matlab")
|
|
include("**/*.m")
|
|
into "$buildDir/src/main/matlab"
|
|
}
|
|
|
|
assemble.dependsOn copyMatlab
|
|
|
|
task copyPython(type: Copy) {
|
|
from("src/main/python")
|
|
include("**/*")
|
|
into "$buildDir/src/main/python"
|
|
}
|
|
|
|
assemble.dependsOn copyPython
|
|
|
|
task copyEtc(type: Copy) {
|
|
from("$projectDir/etc")
|
|
into "$buildDir/etc"
|
|
}
|
|
|
|
assemble.dependsOn copyEtc
|
|
test.dependsOn copyEtc
|
|
|
|
task copyBuildSrc(type: Copy) {
|
|
from("$rootDir/buildSrc/build/repository")
|
|
into "$buildDir/repository"
|
|
}
|
|
|
|
assemble.dependsOn copyBuildSrc
|
|
|
|
// Any task that depends on $buildDir/libs should depend on this task.
|
|
// This task depends on all tasks that populate $buildDir/libs.
|
|
// The relative path to testJar is used because it hasn't been defined yet.
|
|
task copyLibs(type: Copy, dependsOn: [copyOutsideLibs, jar, 'testJar', sourcesJar]) {
|
|
from(configurations.runtimeClasspath) {
|
|
filePermissions {
|
|
unix 0644
|
|
}
|
|
}
|
|
from("$projectDir/src/main/python") {
|
|
include "hdf5mi/**"
|
|
include "zigutils/**"
|
|
}
|
|
into "$buildDir/libs"
|
|
}
|
|
|
|
assemble.dependsOn copyLibs
|