Locate the following file, and select Edit from its context menu:
<CAPS_install_dir>\commandlinecodegen\ant.bat |
Locate the line beginning with SET ANT_OPTS, and append the following entry:
-Ddeployment.ear.file.name=filename
where filename is the name you want for the .ear file; for example,
SET ANT_OPTS=-Dantlrmaxaltblklines=3000 -Dcompile=injar -Xms512M -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=256m -Ddeployment.ear.file.name=test_ear |
Save the file.