You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicvoidexecInstall() {
ProcessBuilderpb = newProcessBuilder("mvnd install").inheritIO();
Processprocess = pb.start();
process.waitFor();
if (process.exitValue() == 0) {
// This means suceed
} else {
// This means some error occured
}
}
But this haven't act as what I want.When something wrong occurs with the "mvnd install", I didn't get a non-zero value from the process.exitValue().
When I change the mvnd to mvn, it just act as I want.
Help me plz.
The text was updated successfully, but these errors were encountered:
Here is my java code:
But this haven't act as what I want.When something wrong occurs with the "mvnd install", I didn't get a non-zero value from the
process.exitValue()
.When I change the
mvnd
tomvn
, it just act as I want.Help me plz.
The text was updated successfully, but these errors were encountered: