修改脚本

This commit is contained in:
cheney 2022-04-13 10:59:56 +08:00
parent 50de278cd3
commit e339cdb7cf

View File

@ -37,7 +37,7 @@ function sync( cmds , options = {}){
} else {
resolve( stdout.toString() )
resolve( stdout.toString() , stderr.toString() )
// resolve({
// pid : process.pid,
// exitCode : process.exitCode,
@ -95,6 +95,11 @@ function mvn(){
return new Promise(function (cbok, cberr) {
sync('mvn package -DskipTests').then(function (value, error) {
if ( error ) {
throw error
}
l.d( value )
if ( value.indexOf("BUILD SUCCESS") < 0 ){
throw new Error("请检查 maven package 命令")