Commit f1b4c318 authored by tower's avatar tower

fix

parent 5d02312a
...@@ -318,22 +318,22 @@ def build_java(systemName, branchName,contextDir) { ...@@ -318,22 +318,22 @@ def build_java(systemName, branchName,contextDir) {
buildCmd = projectAttr["buildCmd"] buildCmd = projectAttr["buildCmd"]
jarFilePath = projectAttr["jarFilePath"] jarFilePath = projectAttr["jarFilePath"]
sh "mkdir ${contextDir}/ext;touch ${contextDir}/ext/ext_info.txt" sh "mkdir ${contextDir}/lib ${contextDir}/config;touch ${contextDir}/lib/lib.txt;;touch ${contextDir}/config/config.txt"
sh buildCmd sh buildCmd
sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar" sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar"
currentPath = sh (script: 'pwd',returnStdout: true).trim() currentPath = sh (script: 'pwd',returnStdout: true).trim()
def libfolder = new File( "${currentPath}/target/lib" ) def libfolder = new File( "${currentPath}/target/lib" )
echo "${currentPath}/target/lib is exist : ${libfolder.exists()}" echo "${currentPath}/target/lib is exist : ${libfolder.exists()}"
if (libfolder.exists()){ if (libfolder.exists()){
sh "mv ${jarFilePath}/lib ${contextDir}/ext"
/* sh "mkdir ${contextDir}/lib;touch ${contextDir}/lib/lib.txt;mv ${jarFilePath}/lib/* ${contextDir}/lib"*/ sh "mv ${jarFilePath}/lib/* ${contextDir}/lib"
} }
def configfolder = new File( "${currentPath}/target/config" ) def configfolder = new File( "${currentPath}/target/config" )
echo "${currentPath}/target/config is exist : ${configfolder.exists()}" echo "${currentPath}/target/config is exist : ${configfolder.exists()}"
if (configfolder.exists()){ if (configfolder.exists()){
sh "mv ${jarFilePath}/config ${contextDir}/ext"
/* sh "mkdir ${contextDir}/config;touch ${contextDir}/config/config.txt;mv ${jarFilePath}/config/* ${contextDir}/config"*/ sh "mv ${jarFilePath}/config/* ${contextDir}/config"
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment