修改脚本
This commit is contained in:
parent
50de278cd3
commit
e339cdb7cf
@ -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 命令")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user