| ||
[Back to Index] | ||
It may be the case that you wish to leave the Tynamo™ distribution alone, and keep all your source and configuration files in a separate place. This is possible to do, and does not take much effort to accomplish. The intended audience of this guide is those who have become moderately familiar with the Tynamo™ setup process. SummaryIn short, only the files to be sent to your TINI, your sources, and the two *.properties files need to be in your own project directory. When you set the basedir Ant property, you will have completely separated your project from the Tynamo™ distribution. Steps
[If you will be modifying the
build.xml script then copy this file as well. In this case,
make sure to change the <dirname property="distro.root" file="${ant.file}"/> with a line that looks like <property name="distro.root" value="/tynamo-tini-1.0.4"/> Be sure, also, to replace "/tynamo-tini-1.0.4" with the actual location of the distribution.] Project Location — How to Use AntThe build.xml file, by default, executes from the distribution location. To override this, set the basedir property when starting Ant. For example, say your project directory is located in /Projects/coolserver and your Tynamo™ distribution is located in /tynamo-tini-1.0.4. The two ways of setting this as your base project directory are as follows:
The second option is more explicit, and probably safer to use in the presence of many different projects and project files. Note: Starting Ant this way is unnecessary if you have chosen to copy the build.xml file to your project directory. Project FilesAll your project files are arranged in the same way as the Tynamo™ distribution, just located in a different directory. Source FilesPlace all your source files into the src/ directory you have just created (or another location of your choosing), and set up the build.properties file to use this as the source files location. For example: src.paths=src src.files=com/mycompany/servlet/**/*.java TINI FilesAll the files to be transferred to your TINI server should reside in the tini/ directory. You can set up the contents by using the example in the distribution:
Build and Deployment ConfigurationThe build.properties and deploy.properties files are set up as usual. Please consult the documentation for further details. The relevant documents include Building a Custom Web Server and Deploying Tynamo™-TINI with Ant. | ||
Tynamo™-TINI/1.0.4 Email: shawn@pobox.com © 2002-2006 Shawn Silverman |