I want to make shell script file in windows and linux with multiple commands inside it.
E.g run.sh and run.bat with the below commands
run.bat or run.sh
mvn clean mvn install mvn exec:java
When I run my run.bat
file it only executes first command mvn clean
but it do not execute other commands.
How to make shell-script file with multiple commands so that when I execute it, It executes all commands inside it.
Thanks.
Advertisement
Answer
mvn
is bat file but not binary.
Try with
call mvn clean call mvn install call mvn exec:java