Howdy,
Three letters: Ant.

Don't develop inside the server directories.  Develop in a separate
source tree.  Compile/build into a build directory.  Deploy from that
build directory into the server.  Never copy the "apps" directory
directly from one server to another.

See Craig's guide at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Greg Speechley [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 26, 2003 8:01 PM
>To: Tomcat User
>Subject: Re: Guidelines on application development
>
>I have just migrated from Tomcat 4.0.3 to 4.1.24 on win2k. At present
we
>have a test server which we do all development and testing on then once
the
>app is stable we transfer the app directory onto the live server to
>$CATALINA_HOME\webapps, restart tomcat and it's good to go.
>
>During development we use a java editor eg jGrasp to edit .java files
which
>are stored in $CATALINA_HOME\webapps\app\WEB-INF\classes and compile
these
>individually. It gets a bit tiresome restarting tomcat after each
recompile
>but I can live with that (I have reloadable=true but this doesn't seem
to
>be
>reliable). Obviously this is a fairly poor way to do things so I am
keen to
>use the manager in 4.1.24 to reload apps and ant to build it. I have
looked
>at the docs and created the directory structure as suggested in the
>Application Developer's guide (java files in src\WEB-INF\classes, etc)
and
>can build from src directory so that class files are stored in the
>build\WEB-INF\classes. BTW this dir structure should be stored in
folder
>called "projectname" somewhere other than $CATALINA_HOME\webapps?
>
>Now from what I can tell I would then have to move these class files to
>$CATALINA_HOME\webapps\app\WEB-INF\classes to be able to test it,
surely I
>am missing something because this seems to be quite laborious. Do you
use
>ant each time you recompile during development or just compile from
your
>editor? If anyone can provide some suggestions on the recommended way
to do
>things I would greatly appreciate it coz I am trying to implement much
>better development practices :)
>
>Cheers
>Greg
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to