Commit 40e689ff authored by tower's avatar tower

fff

parent 26128f69
......@@ -321,9 +321,9 @@ def build_java(systemName, branchName,contextDir) {
sh "mkdir ${contextDir}/lib;touch ${contextDir}/lib/lib_folder.txt"
sh buildCmd
sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar"
def libfolder = new File( "${jarFilePath}/lib" )
echo "${jarFilePath}/lib------ ${libfolder.exists()}---"
currentPath = sh (script: 'pwd',returnStdout: true).trim()
def libfolder = new File( "${currentPath}/target/lib" )
echo "${currentPath}/target/lib------ ${libfolder.exists()}---"
if (libfolder.exists()){
sh "mv ${jarFilePath}/lib/* ${contextDir}/lib"
}
......
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