Difference in build target and dist directories during deployment

I am creating an ant script and I am wondering what should be the name of the directory in which I pack the whole kaboodle and make it a .war file and put it in the webapps directory.

Should it be dist or build?

+7
source share
4 answers

dist.

build is for .class files only, while dist will include the WEB-INF, META-INF, etc. libraries.

+4
source

Create and delete files created during the build process. But dist contains the ones you really want to keep at the end.

+3
source

The assembly directory is the files into which the files are compiled. The Dist directory is used for distribution files (the location of the resulting application package).

In your case, this is the dist directory.

+1
source
  • The assembly will have all separate resource files .jar, .war and ejb.ear
  • Dist will have distribution files, such as an ear file with all the banks and wars inside it.
+1
source

All Articles