Is there a way to use just build command instead of ant build while using ant scripts? -


i using apache ant scripts building web application. have written targets in build.xml file , script running fine. remember using "build" command run ant build instead of "ant build". can tell me how achieved? bit curious on this.

there's no built in "build" command. create simple script file called "build" in same directory launched ant build.

create text file contents:

ant build 

in windows save file called build.bat can type build command line start build.

on unix or linux, save file build, make executable (with chmod +x build). you'll need type ./build run.

i don't think there's lot of value doing replace simple case of ant build, if have regularly run build has multiple targets, or need pass in system variables come in useful.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -