Commit cbbe7438 authored by tower's avatar tower

fff

parent 40e689ff
...@@ -318,14 +318,20 @@ def build_java(systemName, branchName,contextDir) { ...@@ -318,14 +318,20 @@ def build_java(systemName, branchName,contextDir) {
buildCmd = projectAttr["buildCmd"] buildCmd = projectAttr["buildCmd"]
jarFilePath = projectAttr["jarFilePath"] jarFilePath = projectAttr["jarFilePath"]
sh "mkdir ${contextDir}/lib;touch ${contextDir}/lib/lib_folder.txt" sh "mkdir ${contextDir}/ext;touch ${contextDir}/ext/ext_info.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------ ${libfolder.exists()}---" echo "${currentPath}/target/lib is exist : ${libfolder.exists()}"
if (libfolder.exists()){ if (libfolder.exists()){
sh "mv ${jarFilePath}/lib/* ${contextDir}/lib" sh "mv ${jarFilePath}/lib ${contextDir}/ext"
}
def configfolder = new File( "${currentPath}/target/config" )
echo "${currentPath}/target/config is exist : ${libfolder.exists()}"
if (libfolder.exists()){
sh "mv ${jarFilePath}/config ${contextDir}/ext"
} }
} }
......
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