Archived
0

Zond: запуск внешних программ

This commit is contained in:
2017-06-15 17:49:37 +03:00
parent 6fa8b4ecc4
commit 1c7e4d3545
6 changed files with 242 additions and 3 deletions

View File

@@ -7,11 +7,20 @@ mainClassName = "asys.zond.Main"
configurations {
included
includedEx
compile.extendsFrom included
compile.extendsFrom includedEx
}
def zp(FileTree ft) {
return ft.matching {
exclude 'org/apache/commons/exec/StreamPumper.class'
}
}
jar {
dependsOn configurations.included
dependsOn configurations.includedEx
manifest {
attributes 'Implementation-Title': 'ASys Zond',
'Implementation-Version': version,
@@ -19,8 +28,10 @@ jar {
}
baseName = project.group + '.' + project.name
from { configurations.included.collect { it.isDirectory() ? it : zipTree(it) } }
from { configurations.includedEx.collect { it.isDirectory() ? it : zp(zipTree(it)) } }
}
dependencies {
included group: 'jline', name: 'jline', version: '2.14.3'
includedEx group: 'org.apache.commons', name: 'commons-exec', version: '1.3'
}