To run Decision Center Ant tasks, you must first set up the appropriate environment variables.
When preparing to run Ant tasks, make sure that the following conditions are met.
To test your current version of Ant, type the following command in a Windows Command Prompt or UNIX shell: ant -version
You can download Ant from the Apache web site, or you can use the Ant 1.7.1 distribution that is packaged at <ODM_InstallDir>/shared/tools/ant, where <ODM_InstallDir> is your Operational Decision Manager installation directory.
Communication between the Ant tasks and Decision Center supports the HTTP or HTTPS communication protocols. For more information, see Ant task communication protocol.
To set up your environment to use Ant:
ant <taskName> <parameters list>
ant execute-schema -Dserver.url=<protocol://host:port>/teamserver/ -DdatasourceName=jdbc/ilogDataSource -Dfile=my_sql_file.sql
The <protocol://host:port> URL is defined in the file <ODM_InstallDir>/teamserver/bin/teamserver-anttasks.properties. If your browser is not running on the same host as the application server, replace localhost with the address of the computer. If your web application is mapped to a host on a port that is different from the port number shown, change the port number to your host port number.
The file <ODM_InstallDir>/teamserver/bin/teamserver-anttasks.properties defines the value of some common parameters and others that depend on the application server. If these parameters are properly defined in this file, you do not have to include them in your Ant task command. The content of the teamserver-anttasks.properties file is as follows:
# Default properties
# ------------------------------------
rtsAdmin.login=rtsAdmin
rtsAdmin.password=rtsAdmin
protocol=http
server.host=localhost
server.port=9080
server.url=${protocol}://${server.host}:${server.port}/teamserver
datasourceName=jdbc/ilogDataSource
outputFile=output.sql
languagePackPath = .
languagePackOutputPath = ./generated
persistenceLocale =
selector =
branch =
override = false