Deploying Java CAPS Projects

ProcedureTo specify the filename of the EAR file from the command line (AIX/Linux/MacOS/Solaris)

  1. Locate the following file, and open it in a text editor:


    <CAPS_install_dir>/commandlinecodegen/ant
    
  2. Locate the following if-then-else statement:


    if [ "$UNAME_SYSTEM" = "AIX" ] || [ "$UNAME_SYSTEM" = "aix" ]; 
    then ANT_OPTS=’-Dantlrmaxaltblklines=3000 -Xms512M -Xmx768m’ 
    else ANT_OPTS=’-Dantlrmaxaltblklines=3000 -Xms512M -Xmx768m 
    -XX:PermSize=256m -XX:MaxPermSize=256m’
  3. Insert the following entry:


    -Ddeployment.ear.file.name=filename
    

    where filename is the name you want for the .ear file, as shown in the following example:


    if [ "$UNAME_SYSTEM" = "AIX" ] || [ "$UNAME_SYSTEM" = "aix" ]; 
    then ANT_OPTS=’-Dantlrmaxaltblklines=3000 -Xms512M -Xmx768m 
    -Ddeployment.ear.file.name=test_ear’ 
    else ANT_OPTS=’-Dantlrmaxaltblklines=3000 -Xms512M -Xmx768m -XX:PermSize=256m 
    -XX:MaxPermSize=256m -Ddeployment.ear.file.name=test_ear
  4. Save the file.