Instead of adding 'path_to_document_root' in the config file, couldn't we
use Ant's token replacer to allow the user to manipulate the config files
'dynamically'? The creation of the config files could be a seperate task in
Ant or part of the building of the jar.
Maybe I'm missing something...
josh
----- Original Message -----
From: David Leal <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 07, 2000 4:45 AM
Subject: A little patch, some doubts
> Hi,
>
> I made some little changes to the config files, so that people can see
> more easily want they need to change. I was thinking about writing a new
> INSTALL file, but the problem is that I have some doubts about how to do
> it. Jserv, Tomcat and Turbine (those are what I saw) have specific
> documentation that I'm just going to be duplicating here. On the other
> hand, the fact that all libs that Jetspeed needs are distributed with it
> makes me think that some documentation would need to be included, too.
> So, wouldn't it be better to, instead of distributing the libs within
> the Jetspeed package, create the needed packages with their own
> documentation and link to those on the Jetspeed page?
>
> Cheers,
>
> David
>
>
> ----------------
>
>
> diff -Nru src/config_old/JetspeedResources.properties
src/config/JetspeedResources.properties
> --- src/config_old/JetspeedResources.properties Fri Apr 7 11:03:50 2000
> +++ src/config/JetspeedResources.properties Fri Apr 7 11:47:01 2000
> @@ -41,7 +41,8 @@
> #Defines the standard set of properties for Jetspeed
>
> #specify the default set of portlets to use for the Home page
> -portletmarkup.default.url=/content/xml/defaultPortlets.xml
>
+portletmarkup.default.url=file:///path_to_document_root/content/xml/default
Portlets.xml
>
+portletmarkup.all.url=file:///path_to_document_root/content/xml/allPortlets
.xml
>
> #specify the default portlet control that should be instantiated
> #Default: org.apache.jetspeed.portal.DefaultPortletControl
> @@ -75,7 +76,7 @@
> # Example: /content -> /content/xml/mydocument.xml
> # Example: http://myserver/mycontent ->
http://myserver/mycontent/xml/mydocument.xml
> # Default: /content
> -content.root.url = /content
> +content.root.url = http://server_name/content
>
> ##########################################
> # Remote Object Storage System #
> @@ -101,13 +102,13 @@
> #original machine happens to be down when this request happens.
> #The cache directory
> #Default: /usr/home/httpd/wwwroot/jetspeed-cache
> -public.cache.directory=/usr/home/httpd/wwwroot/jetspeed-cache
> +public.cache.directory=/path_to_document_root/jetspeed-cache
>
> #the directory that you want your HTTPD to serve files from. This should
be
> #the public URL for the above document. Make sure your HTTP daemon has
the
> #correct permission to serve files from this directory.
> #Default: /jetspeed-cache
> -public.cache.url=/jetspeed-cache
> +public.cache.url=http://server_name/jetspeed-cache
>
>
> ##########################################
> @@ -124,14 +125,14 @@
> #########################################
> xmlportletcontroller.width=700
> #xmlportletcontroller.stylesheet=d:/tmp/defaultstyle.xsl
> -xmlportletcontroller.stylesheet=/projects/jetspeed/src/content/xml/defaul
tstyle.xsl
>
+xmlportletcontroller.stylesheet=/path_to_document_root/content/xml/defaults
tyle.xsl
>
>
> #########################################
> # Cocoon config #
> #########################################
> #Jetspeed attempts to initialize it's own Cocoon Engine.
> -cocoon.properties.file=/projects/jetspeed/src/config/cocoon.properties
> +cocoon.properties.file=/path_to_jetspeed/config/cocoon.properties
>
>
> #########################################
> @@ -165,7 +166,7 @@
> contentfeeds.feed.xmltree.url=http://www.xmltree.com/export/ocs.cfm
>
> #The stylesheet used to transform OCS into PortletMarkup
> -contentfeeds.stylesheet.url=/content/xml/ocs/ocs.xsl
>
+contentfeeds.stylesheet.url=file:///path_to_document_root/content/xml/ocs/o
cs.xsl
>
> #Jetspeed has the option to continually fetch all of its channels and
keep them
> #in cache. The upside is that your clients will be able to see content
> @@ -255,7 +256,7 @@
> #content.feeds.[provider-name].description=[a full description of your
content]
> #content.feeds.[provider-name].title=[a title for your content.]
>
> -content.feeds.jetspeed.url=/content/xml/jetspeed-content.xml
> -content.feeds.jetspeed.stylesheet.url=/content/xsl/jpc-full.xsl
>
+content.feeds.jetspeed.url=file:///path_to_document_root/content/xml/jetspe
ed-content.xml
>
+content.feeds.jetspeed.stylesheet.url=file:///path_to_document_root/content
/xsl/jpc-full.xsl
> content.feeds.jetspeed.title=Jetspeed
> content.feeds.jetspeed.description=Jetspeed weblog
> diff -Nru src/config_old/TurbineResources.properties
src/config/TurbineResources.properties
> --- src/config_old/TurbineResources.properties Fri Apr 7 11:03:50 2000
> +++ src/config/TurbineResources.properties Fri Apr 7 11:18:50 2000
> @@ -41,8 +41,8 @@
>
> # These are your database settings, look in the
> # org.apache.turbine.util.db.pool.* packages for more information.
> -database.default.driver=oracle.jdbc.driver.OracleDriver
> -database.default.url=jdbc:oracle:thin:@localhost:1521:ORCL
> +database.default.driver=org.gjt.mm.mysql.Drive
> +database.default.url=jdbc:mysql://localhost/turbine
> database.default.username=dbUser
> database.default.password=dbPass
>
> @@ -193,7 +193,7 @@
>
>
> # FreeMarker path where templates are stored.
> -freemarker.path=/path/to/turbine/examples/freemarker
> +freemarker.path=/path_to_turbine/examples/freemarker
>
>
> #FIX ME: add a description to why this is needed
> @@ -223,7 +223,7 @@
> login.message=Please login to Jetspeed
>
> #the properties file for Jetspeed
> -jetspeed.properties=/projects/jetspeed/src/config/JetspeedResources.prope
rties
> +jetspeed.properties=/path_to_jetspeed/config/JetspeedResources.properties
>
> # This is the default action to validate whether or not
> # a session is valid. For example, if you want to make
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]