Directory structure

EasyAnt cames with a lot of convention, most of them are inspired by maven conventions.

Those conventions can be configured through properties such as : In this document will try to explain you the directory structure of standard EasyAnt project.

Standard directory structure

Standard directory structure looks like this :

Separating project main code and test code

In a ideal world application may have some tests (functionnal / unit test / integration test, etc...).
This tests doesn't make sense at all to be shipped during the packaging phase of your application.
To avoid this, by default EasyAnt makes a separation between By convention, project code is stored in src/main directory, whereas your test code is in src/test directory.

Separating source code and resources

To clarify the directory structure source files and resources are separated in two directory.

The directory structure of project source code looks like : The directory structure of test source code:
Note: this also apply with non-java project (like groovy / scala project).

Groovy project

  • src/main/groovy for main source code (note that this can be configured through the property src.main.groovy)
  • src/test/groovy for test source code (note that this can be configured through the property src.test.groovy)

Scala project

  • src/main/scala for main source code (note that this can be configured through the property src.main.scala)
  • src/test/scala for test source code (note that this can be configured through the property src.test.scala)

WebApp ressources

By convention, WebApp ressources are stored in src/main/webapp.
This can be adapted through the property src.main.webapp

Documentation files

By convention, documentation files are stored in src/documentation.
You can configure it through the property named src.documentation.dir.