Skip to content
Advertisement

Tag: bash

Using Maven Exec Plugin inside Bash

I’m writing a bash script which will execute some part of a maven project. The script looks like this: But this fails every time with the following error: If I skip the CMD=… assignment, and just run the mvn part directly, like this… …it works just fine. How can I get maven and the exec plugin to understand that I

java executing bash script, error=26 Text file busy

I’ve got a java code that is writing a Linux bash script out, then doing a chmod to add execute permission, then trying to execute it. I’m getting an IOException during the start of the process saying error=26, Text file busy. I’ve verified that the file is finished being written and the stream was closed. The chmod works fine, but

Advertisement