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
Post a Comment