Zond: запуск внешних программ
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user