|
|
|
@ -21,6 +21,7 @@ ext {
|
|
|
|
|
pluginVersion = pluginInfo.version |
|
|
|
|
|
|
|
|
|
outputPath = "$projectDir/../webroot/WEB-INF/plugins/plugin-" + pluginName + "-1.0/classes" |
|
|
|
|
webPath = "$projectDir/../plugin-demo/src/main/resources/com/finebi/plugin/web" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
group = 'com.fr.plugin' |
|
|
|
@ -45,6 +46,8 @@ ant.references["compile.classpath"] = ant.path {
|
|
|
|
|
classes.dependsOn('clean') |
|
|
|
|
|
|
|
|
|
task copyFiles(type: Copy,dependsOn: 'classes'){ |
|
|
|
|
(new File("$webPath/js/chart.js")).text = files("$webPath/scripts/bi.chart.provider.js", "$webPath/scripts/echarts.js").collect{it.getText()}.join("\n") |
|
|
|
|
|
|
|
|
|
from outputPath |
|
|
|
|
into "$projectDir/classes" |
|
|
|
|
} |
|
|
|
|