For #1:
I always use the following function (it works very nicely under bash),
and found it very usefull:
#------------------------------------------------------------------------
# Use all the jar in a dir $1 to append in the CLASSAPTH
#
function fLoadClassPath() {
for f in `find $1 -name '*.jar' `; do
CLASSPATH=$CLASSPATH:$f
done
# Avoid a CLASSPATH beginging with ':'
CLASSPATH=`echo $CLASSPATH | sed "s/^://"`
}
#------------------------------------------------------------------------
sample: fLoadClassPath /usr/local/java/lib/
Bugs: - append also the jar in subdirectories
- append alos non desiered jar files
Here is a proposed diff:
[admin@penguin tdk]$ cvs -z3 -d
:pserver:[EMAIL PROTECTED]:/products/cvs/turbine diff
src/share/webmacro/WEB-INF/build/build.sh
Index: src/share/webmacro/WEB-INF/build/build.sh
===================================================================
RCS file:
/products/cvs/turbine/tdk/src/share/webmacro/WEB-INF/build/build.sh,v
retrieving revision 1.4
diff -r1.4 build.sh
19,35d18
< #-------------------------------------------------------------------
< # Define the paths to each of the packages
< #-------------------------------------------------------------------
< JAVAMAIL=@NEWAPP@/lib/mail-1.1.3.jar
< JAF=@NEWAPP@/lib/activation-1.0.1.jar
< NAMING=@NEWAPP@/lib/jndi-1.2.1.jar
< VILLAGE=@NEWAPP@/lib/village-1.3.jar
< ECS=@NEWAPP@/lib/ecs-1.3.3.jar
< XERCES=@NEWAPP@/lib/xerces-1.1.3.jar
<
CASTOR=@NEWAPP@/lib/castor-0.8.2.jar:@TDK@/lib/jdbc-se2.0.jar:@TDK@/lib/jta1.0.1.jar
< XMLRPC=@NEWAPP@/lib/xmlrpc.jar
< TURBINE=@NEWAPP@/lib/turbine-2.0.jar
< SERVLET=@NEWAPP@/lib/servlet.jar
< ANT=@NEWAPP@/lib/ant.jar
< ANTXML=@NEWAPP@/lib/xml.jar
< WEBMACRO=@NEWAPP@/lib/webmacro-jdk1.2-CVS.jar
< #WEBMACRO=@NEWAPP@/lib/webmacro-jdk1.1-CVS.jar
36a20,34
> CP=''
> #------------------------------------------------------------------------
> # Use all the jar in a dir $1 to append in the CLASSAPTH
> #
> function fLoadClassPath() {
> for f in `find $1 -name '*.jar' `; do
> CP=$CP:$f
> done
> # remove leading ':'
> CP=`echo $CP | sed "s/^://"`
> }
>
>
> fLoadClassPath @NEWAPP@/lib
> fLoadClassPath @TDK@/lib
65,66d62
<
<
CP=${CLASSPATH}:${ANT}:${ANTXML}:${TURBINE}:${SERVLET}:${XERCES}:${JAVAMAIL}:${JAF}:${VILLAGE}:${ECS}:${WEBMACRO}:${NAMING}:${CASTOR}:${XMLRPC}
Hope this help,
Didier,
Jon Stevens wrote:
>
> I would like to say that the TDK is really starting to take shape and look
> great! I can't wait to unleash it on the world. :-)
>
> All, people always ask how they can help out, here are a few tasks that need
> to be completed. :-) Please speak up on the list to announce that you will
> be making these changes before doing so so that things are coordinated.
>
> #1. tdk/src/share/webmacro/WEB-INF/build.sh:
> the build.sh file has a lot of paths to various .jar files that should
> really be defined somewhere else or have them auto loaded instead with a
> for loop. rightnow, the current setup makes upgrading .jar files a pita
> cause we need to edit files in a bazillion places.
>
> #2. tdk/src/share/webmacro/WEB-INF/build.bat:
> needs to be created
>
> #3. when a newapp is created, a TestLink.java file is copied into
> newapp/WEB-INF/classes/org/apache/turbine/modules/screens and it really
> should be copied into
> newapp/WEB-INF/src/org/apache/turbine/modules/screens.
>
> #4. I would prefer it if the HypersonicSQL database files were created in
> newapp/WEB-INF/db instead
>
> #5. What is the newapp/WEB-INF/turbine.properties file? It seems like
> hypersonicsql creates that. that file should also probably be moved into
> newapp/WEB-INF/db as well.
>
> #6. The files in newapp/WEB-INF/conf/test should probably be really put into
> newapp/WEB-INF/src with the right package name (org.apache.turbine.om).
> I believe that these are generated by torque.
>
> #7. I would prefer it if all the Torque config stuff lived in the directory:
> newapp/WEB-INF/conf/torque instead.
>
> thanks,
>
> -jon
>
> --
> http://scarab.tigris.org/ | http://noodle.tigris.org/
> http://java.apache.org/ | http://java.apache.org/turbine/
> http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
> http://www.collab.net/ | http://www.sourcexchange.com/
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
--
mailto:[EMAIL PROTECTED] http://www.idbsoft.ch
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]