|
|
@ -11,7 +11,8 @@ ext{ |
|
|
|
// 如果依赖的jar需要打包到zip中,放置在/lib目录下 |
|
|
|
// 如果依赖的jar需要打包到zip中,放置在/lib目录下 |
|
|
|
libPath = "$projectDir/webroot/WEB-INF/lib" |
|
|
|
libPath = "$projectDir/webroot/WEB-INF/lib" |
|
|
|
def pluginInfo = getPluginInfo() |
|
|
|
def pluginInfo = getPluginInfo() |
|
|
|
pluginPre = "fr-plugin" |
|
|
|
pluginPre = "fine-plugin" |
|
|
|
|
|
|
|
// 这里读取的是插件的id,开发者可修改为固定的名字 |
|
|
|
pluginName = pluginInfo.id |
|
|
|
pluginName = pluginInfo.id |
|
|
|
pluginVersion = pluginInfo.version |
|
|
|
pluginVersion = pluginInfo.version |
|
|
|
} |
|
|
|
} |
|
|
@ -52,7 +53,7 @@ publishing { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ant.importBuild("ant_build.xml") |
|
|
|
ant.importBuild("encrypt.xml") |
|
|
|
//定义ant变量 |
|
|
|
//定义ant变量 |
|
|
|
ant.projectDir = projectDir |
|
|
|
ant.projectDir = projectDir |
|
|
|
ant.references["compile.classpath"] = ant.path { |
|
|
|
ant.references["compile.classpath"] = ant.path { |
|
|
@ -94,7 +95,7 @@ task copyFile(type: Copy,dependsOn: ["makeJar"]){ |
|
|
|
include "*.jar" |
|
|
|
include "*.jar" |
|
|
|
} |
|
|
|
} |
|
|
|
from "$projectDir/plugin.xml" |
|
|
|
from "$projectDir/plugin.xml" |
|
|
|
into file("$buildDir/temp/fr-plugin-"+"$pluginName"+"-$pluginVersion") |
|
|
|
into file("$buildDir/temp/" + "$pluginPre"+"-$pluginName"+"-$pluginVersion") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
task zip(type:Zip,dependsOn:["copyFile"]){ |
|
|
|
task zip(type:Zip,dependsOn:["copyFile"]){ |
|
|
|