NEF provides a series of scripts that, among other functions, allow you to compile your application, generate code, and upgrade NEF libraries and components. All of the scripts are built to be executed in the industry-standard Apache Ant tool. Apache Ant is included in the NEF distribution.
To execute an Ant script through the Console, login to the Console and go to Project -> Ant Build tab. A list of Ant script targets are available for execution. You can easily run a script by selecting it from the list. Complete description of each Ant target is also provided there for your reference.

Make sure the JAVA_HOME environment variable is set to point to the JDK folder.
Make sure the ANT_HOME environment variable is set to point to the Ant folder.
Open command prompt or terminal window.
cd to the directory where your build.xml script resides.
On Win32 type build and on UNIX type sh build.sh
Using Intellij IDEA, open the Ant tool window by pressing the Ant Build tool window button. The Ant tool window consists of an Ant Target View and a toolbar. The Ant Target View shows available Ant scripts and targets in a tree-like structure. In the toolbar, choose the Add new Ant script button. Choose the Properties option in the toolbar. Uncheck the Inlcude XML parser option in the Additional Classpath Pane. Use the Add button in the Additional Classpath Pane to include the resources needed to compile your project. (ex. jars provided by NEFS, Servlet jar, etc.).