Vikas K Gupta wrote:
I'm new to Web Application Development and want to know why experts prefer this.
Build scripts are portable, repeatable and self-contained. IDE builds are not.
When I or one of my employees creates a project, there are 3 requirements: a README.txt file that describes the project and how to build it, a script to configure the environment and an Ant build file. That way, when I want to check her work, I just run the environment script and the Ant build.
I don't have to try to figure out which JAR file is in her IDE's path but not in mine. I don't have to track down some third-party JAR she wedged into the WAR before deploying. I don't have to futz with my IDE to get the deploy task to go to the correct server.
IDE's are great if one is just throwing something together for fun or educational purposes. For a production environment, it is essential that one has a build process.
And
source control.