帆软报表设计器国际化文件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1016 B

apply plugin: 'java'
tasks.withType(JavaCompile){
options.encoding = 'UTF-8'
}
//指定构建的jdk版本
7 years ago
sourceCompatibility=1.8
//jar包版本
version='10.0'
//jar包名称
jar{
baseName='fine-report-designer'
}
def srcDir="."
def baseDir=".."
//获取什么分支名
FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('\\'))
def branchName=buildDir.substring(buildDir.lastIndexOf ('\\')+1)
//输出jar名称
7 years ago
FileTree f=fileTree(dir:"${baseDir}/design/designer-base/build/libs",include:"**/*.jar");
f.each{File file->
println "----------${file.path}"
}
task unjars {
ant{
unjar(dest:"build/classes/main"){
7 years ago
fileset(dir:"${baseDir}/design/designer-base/build/libs"){
7 years ago
include(name:'fr-*.jar')
}
7 years ago
fileset(dir:"${baseDir}/design/designer-chart/build/libs"){
7 years ago
include(name:'fr-*.jar')
}
7 years ago
fileset(dir:"${baseDir}/design/designer-form/build/libs"){
include(name:'fr-*.jar')
}
}
}
}
jar.dependsOn unjars