I found myself having to run the same commands one after another on Windows 7 from a DOS prompt. So I put the commands in a file, one per line and then named the file buildWindows.bat, but when I run it it only runs the first line (successfully) and the exits.
This is the batch file (note build refers to another batch file build.bat)
build
Build copylatestbuild
C:\Apps\Code\IzPack5beta11\bin\compile C:\Code\Jaikoz\src\installer_windows\install.xml -o C:\Code\Jaikoz\target\installer\windows\\install.jar -b C:\Code\Jaikoz\src\installer_windows
C:\Apps\Code\IzPack5beta11\bin\compile C:\Code\Jaikoz\src\installer_windows\install64.xml -o C:\Code\Jaikoz\target\installer\windows\install64.jar -b C:\Code\Jaikoz\src\installer_windows
C:\Apps\Code\IzPack5beta11\bin\compile C:\Code\Jaikoz\src\installer_linux\install.xml -o C:\Code\Jaikoz\target\installer\linux\install.jar -b C:\Code\Jaikoz\src\installer_linux
build zipinstallers
What am I doing wrong ?
I suspect that
build.batis another batch file. Then you should useCALLto run it, or else it “replaces” the current batch file instead of returning to it.