| ||||||||||||||||
[Back to Index] | ||||||||||||||||
Tynamo™ can be deployed to your SNAP using Ant. A target called deploy in the build script is provided for this purpose. Simply execute Ant as you would normally, but add the string "deploy" on the command line. Also remember to fill in the appropriate values in the deploy.properties file. Tynamo™ can also be started using the startserver target. This will execute a specifiable startup command via Telnet. SetupFirst, in order to provide the required FTP and Telnet support, Ant needs either the NetComponents.jar or Jakarta Commons/Net library, depending on the version of Ant: NetComponents is required for Ant versions 1.5.4 and earler, and the Jakarta Commons/Net library is required for Ant versions 1.6.0 and later. This library must be copied into Ant's lib/ directory. For those not using the default Ant execution script, this JAR file must be added manually somehow to the CLASSPATH before Ant is executed. TransferThe deploy script will first check for the existence of the FTP library, and display a message if it is not found. If it is found, then the build is deployed to the SNAP according to the following structure. If the transfer doesn't work, then try setting the FTP client to passive mode by changing passive="no" to passive="yes" in all the tags in your build.xml file. StructureThe script will first try to create the deploy root directory, and then a logs/ directory below this. Next, all the files below snap/ on the local disk, and any JAR specified by target.jar in the build process, will be transferred to the appropriate place under <deploy.rootdir> on the SNAP. Starting the ServerThe startup script will connect to the deployment server via Telnet using its own userid and password, and then execute a single, specifiable command. Remember that it is also possible to start the server from the startup script in Ish. The deploy.properties FileThe deploy.properties file is used to control the deploy and startup processes. There are four properties that describe how the build is to be transferred, and three that help describe how to start the server.
| ||||||||||||||||
Tynamo™-SNAP/1.0.4 Email: shawn@pobox.com © 2002-2007 Shawn Silverman |