On Sun, 3 Sep 2000, Jon Stevens wrote:
> You have an itch! Scratch it! :-)
Okay - I started - and I may have gone a bit far :P
I noticed someone already added new ant and build file - I
had already adapted old build file to include what he had
done.
The ant file I did mean't that you *never* have to set
classpath via scripts. It is all done with ant via things
like ../lib/*.jar. Unfortunately this means that the
conflicting jars (webmacro and freemarker) have to go to
another directory (I placed them in ../lib/optional). The
particular instance is read from .ant.properties file.
The current turbine build file only allows per user
.ant.properties - I added a per project .ant.properties
aswell.
I redid the webapp target so that it creates a valid webapp
and is off and running - with a line in .ant.properties
(webapp.dir=/path/to/my/tomcat/webapp/myturbineapp) it is
even *installed* in the correct place. The only thing you have to
do is
1> set up database
2> edit proeprties files of both webmacro and turbine to
point log to correct place
You can also do it on per project basis by placing
.ant.properties alongside build-turbine.xml file.
For 1 I have a half written script (for another
project) that I could convert to ant so that different
databases are automatically setup ? Is it worth it ?
For 2 - would it be possible to let turbine pick a
reasonable default. For instance if it is not setup then it
logs to <webappdir>WEB-INF/logs/... and same with webmacro
???
The only problem with what I have done is that I have been
unable to test it properly with templates as I have no idea
how they work yet :P.
I can access screen/Error by default as it maps to a java
object and if I add in org.apache.turbine.examples to module
path I am sweet. However I imititate behaviour of old build
file so I *shouldn't* have broken anything but you may want
to check it out.
So to use this build file you will have to download latest
ant CVS snapshot. Move webmacro-* and freemarker-* to
lib/optional, setup database, setup logs and drop a
.ant.properties into build/ directory that looks something
like
deprecation=false
database.jar=mysql.jar
database.lib.dir=/RHI/lib
jsdk.jar=/RHI/tomcat/lib/servlet.jar
webmacro.jar=webmacro-jdk1.2-CVS.jar
You then can practically delete all of
build-turbine.[sh|bat] except for part that sets CLASSPATH
for xerces and ant and then you are off.
The reason for doing this is because I am trying to get
Turbine used in uni classes next year (a summer course on
web-applications) and thus it needs to be as painless as
possible :P.
I would also like to see a more standardised structure in
turbine repository to make it look/behave a lot like some of
the other apache projects. What I would like to see is a
filesystem setup like
build/ (directory for files generated from build)
build/classes (directory for compiled class files)
build/src (directory for java src after copy and filtering)
build/lib (directory for generated and supplied libs)
conf/ (directory for configuration files)
src/java (directory for java src)
src/xdocs (directory for xml docs src)
src/sql (directory for sql src)
src/sh (directory for any scripts used in distribution but not in build)
src/mf (directory for manfiests - if any)
src/mk (directory for extra ant build.xml files - ie unit testing/profiling)
skins/ (directory to hold skins for xdocs)
bin/ (directory for ant build scripts/other scripts used while building)
lib/ (all jars used in project)
lib/optional (all jars that have different version ie freemarker/webmacro)
build.[sh|bat] (convenience script to wrap ant script)
build.xml (turbine build script)
README
INSTALL
TODO
Thoughts ???
Cheers,
Pete
*--------------------------------------------------*
| Latrobe University, | Does the name 'Pavlov' |
| Bundoora, Australia | ring a bell ? |
*--------------------------------------------------*
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]