| ||||||||||||||||
[Back to Index] | ||||||||||||||||
The Tynamo™ server can be deployed to your TINI 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. [BIG NOTE: The "mkdir" FTP action does not work with firmware 1.02e. This is because 1.02e uses a slightly non-standard "mkdir" command. This means that this deployment scheme won't work properly with this firmware. However, firmware 1.02f fixes this.] The Tynamo™ server 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 TINI 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 tini/ on the local disk will be transferred to the appropriate place under <deploy.rootdir> on the TINI. 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 Slush. 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™-TINI/1.0.4 Email: shawn@pobox.com © 2002-2006 Shawn Silverman |