roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r710051 - in /roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask: ./ README.txt planet-custom.properties roller-custom.properties rollertask.sh
Date Mon, 03 Nov 2008 13:12:19 GMT
Author: snoopdave
Date: Mon Nov  3 05:12:19 2008
New Revision: 710051

URL: http://svn.apache.org/viewvc?rev=710051&view=rev
Log:
Fixes to Roller Task example related to https://issues.apache.org/roller/browse/ROL-1758

Added:
    roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/planet-custom.properties
Modified:
    roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/   (props changed)
    roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/README.txt
    roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/roller-custom.properties
    roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/rollertask.sh

Propchange: roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Nov  3 05:12:19 2008
@@ -1 +1,2 @@
+roller-startup.log
 logs

Modified: roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/README.txt
URL: http://svn.apache.org/viewvc/roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/README.txt?rev=710051&r1=710050&r2=710051&view=diff
==============================================================================
--- roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/README.txt (original)
+++ roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/README.txt Mon Nov
 3 05:12:19 2008
@@ -1,5 +1,14 @@
+
 README for rollertask
 
+###############################################################################
+
+                        NOTE: broken in Roller 4.0
+
+            See https://issues.apache.org/roller/browse/ROL-1758
+
+###############################################################################
+
 rollertask.sh is a script that can be used to run the Roller tasks. Because 
 rollertask.sh runs outside of the Roller application, you have to put some
 files into place before you can run it. 

Added: roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/planet-custom.properties
URL: http://svn.apache.org/viewvc/roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/planet-custom.properties?rev=710051&view=auto
==============================================================================
--- roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/planet-custom.properties
(added)
+++ roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/planet-custom.properties
Mon Nov  3 05:12:19 2008
@@ -0,0 +1,28 @@
+
+# --- ENSURE ALL VALUES ARE CORRECT ---
+
+#--------------------------------------------------------- Example Derby setup
+
+database.configurationType=jdbc
+database.jdbc.connectionURL=jdbc:derby://localhost:1527/roller40
+database.jdbc.driverClass=org.apache.derby.jdbc.ClientDriver
+database.jdbc.username=APP
+database.jdbc.password=APP
+
+#--------------------------------------------------------- Example MySQL setup
+
+#database.configurationType=jdbc
+#database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rwo_20070915
+#database.jdbc.driverClass=com.mysql.jdbc.Driver
+#database.jdbc.username=scott
+#database.jdbc.password=tiger
+#openjpa.jdbc.DBDictionary=mysql(SupportsSubselect=false, SearchStringEscape=\\\\)
+#openjpa.Log=commons
+#hibernate.dialect=org.hibernate.dialect.MySQLDialect
+
+#--------------------------------------------------------- general
+
+planet.aggregator.cache.dir=/Users/dave/roller_data/planet-cache
+planet.aggregator.output.dir=./build/webapp
+planet.aggregator.template.dir=./build/webapp/WEB-INF/templates
+

Modified: roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/roller-custom.properties
URL: http://svn.apache.org/viewvc/roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/roller-custom.properties?rev=710051&r1=710050&r2=710051&view=diff
==============================================================================
--- roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/roller-custom.properties
(original)
+++ roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/roller-custom.properties
Mon Nov  3 05:12:19 2008
@@ -1,10 +1,22 @@
 
 # --- ENSURE ALL VALUES ARE CORRECT --- 
 
-jdbc.driverClass=com.mysql.jdbc.Driver
-jdbc.connectionURL=jdbc:mysql://localhost:3306/roller?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
-jdbc.username=scott
-jdbc.password=tiger
+uploads.dir=/Users/dave/roller_data/uploads
+themes.dir=/Users/dave/src/roller_4.0/apps/weblogger/build/webapp/themes
+
+#--------------------------------------------------------- Example Derby setup
+
+database.configurationType=jdbc
+database.jdbc.connectionURL=jdbc:derby://localhost:1527/roller40test
+database.jdbc.driverClass=org.apache.derby.jdbc.ClientDriver
+database.jdbc.username=APP
+database.jdbc.password=APP
+
+#--------------------------------------------------------- Example MySQL setup
+
+#jdbc.driverClass=com.mysql.jdbc.Driver
+#jdbc.connectionURL=jdbc:mysql://localhost:3306/roller?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
+#jdbc.username=scott
+#jdbc.password=tiger
 
-hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
 

Modified: roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/rollertask.sh
URL: http://svn.apache.org/viewvc/roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/rollertask.sh?rev=710051&r1=710050&r2=710051&view=diff
==============================================================================
--- roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/rollertask.sh (original)
+++ roller/branches/roller_4.0/apps/weblogger/docs/examples/rollertask/rollertask.sh Mon Nov
 3 05:12:19 2008
@@ -13,32 +13,38 @@
 # -- YOU MUST ENSURE THESE SETTINGS ARE CORRECT ---
 
 # Path to Java JDK
-JAVA_HOME=/usr/local/jdk1.5
+JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
 export JAVA_HOME
 
 # Directory of Roller context
-WEBAPP_DIR=/usr/local/tomcat/webapps/roller
+WEBAPP_DIR=${HOME}/src/roller_4.0/apps/weblogger/build/webapp
 export WEBAPP_DIR
 
-# Directory of additional jars
-JARS_DIR=/usr/local/tomcat/common/lib
+# Directory of additional jars (most importantly: your JDBC driver)
+JARS_DIR=${HOME}/tomcat/lib
 export JARS_DIR
 
-# Planet configuration override file specifying JDBC connection parameters
+# Roller configuration override file specifying JDBC connection parameters
 CONFIG_OVERRIDE=roller-custom.properties
 export CONFIG_OVERRIDE
 
+# Planet configuration override file specifying JDBC connection parameters
+PLANETCONFIG_OVERRIDE=planet-custom.properties
+export PLANETCONFIG_OVERRIDE
+
 
 # --- YOU SHOULD NOT NEED TO EDIT BELOW THIS LINE ---
 
+
+ROLLERTASK_CLASSPATH=${WEBAPP_DIR}/WEB-INF/lib/roller-business.jar
+
 # Hack: setting catalina.base=. allows us to save log in ./logs
+mkdirs ./logs
 
 ${JAVA_HOME}/bin/java \
     -Dcatalina.base=. \
     -Droller.custom.config=${CONFIG_OVERRIDE} \
-    -cp ${WEBAPP_DIR}/WEB-INF/lib/roller-business.jar \
-    ${WEBAPP_DIR}/WEB-INF/lib/roller-core.jar \
-    org.apache.roller.business.runnable.TaskRunner \
-    ${WEBAPP_DIR} ${JARS_DIR} \
-    $1
-
+    -Dplanet.custom.config=${PLANETCONFIG_OVERRIDE} \
+    -cp ${ROLLERTASK_CLASSPATH} \
+    org.apache.roller.weblogger.business.runnable.TaskRunner \
+    ${WEBAPP_DIR} ${JARS_DIR} $1



Mime
View raw message