roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r942612 - in /roller/trunk: ./ test-utils/src/main/java/org/apache/roller/weblogger/ant/ test-utils/src/main/java/org/apache/roller/weblogger/jetty/ weblogger-docs/examples/scripting/groovy/examples/atompub/ weblogger-web/src/test/java/org/...
Date Sun, 09 May 2010 20:22:01 GMT
Author: snoopdave
Date: Sun May  9 20:22:00 2010
New Revision: 942612

URL: http://svn.apache.org/viewvc?rev=942612&view=rev
Log:
Fixing a couple of compiler warnings, updating sign-release.sh script and adding a simple
Groovy AtomPub/OAuth example

Added:
    roller/trunk/weblogger-docs/examples/scripting/groovy/examples/atompub/
    roller/trunk/weblogger-docs/examples/scripting/groovy/examples/atompub/atompost.groovy
Modified:
    roller/trunk/   (props changed)
    roller/trunk/sign-release.sh
    roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StartDerbyTask.java
    roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StopDerbyTask.java
    roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/jetty/DerbyLifeCycle.java
    roller/trunk/weblogger-web/src/test/java/org/apache/roller/weblogger/ui/UIPluginManagerTest.java

Propchange: roller/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sun May  9 20:22:00 2010
@@ -4,6 +4,8 @@ tomcat
 .idea
 classes.eclipse
 build
+dist-roller-weblogger-5.0-RC1
 roller-project.iml
+dist
 .settings
 out

Modified: roller/trunk/sign-release.sh
URL: http://svn.apache.org/viewvc/roller/trunk/sign-release.sh?rev=942612&r1=942611&r2=942612&view=diff
==============================================================================
--- roller/trunk/sign-release.sh (original)
+++ roller/trunk/sign-release.sh Sun May  9 20:22:00 2010
@@ -1,16 +1,13 @@
+export rcstring="-RC2"
+export vstring="5.0.0"
 
-export rcstring="-rc10"
-export vstring="4.0"
-
-cp dist/apache-roller-${vstring}.tar.gz dist/apache-roller-${vstring}${rcstring}.tar.gz
-cp dist/apache-roller-${vstring}.zip    dist/apache-roller-${vstring}${rcstring}.zip
-
-cp dist/apache-roller-src-${vstring}.tar.gz dist/apache-roller-src-${vstring}${rcstring}.tar.gz
-cp dist/apache-roller-src-${vstring}.zip    dist/apache-roller-src-${vstring}${rcstring}.zip
-
-gpg --armor --output dist/apache-roller-${vstring}${rcstring}.tar.gz.asc     --detach-sig
dist/apache-roller-${vstring}${rcstring}.tar.gz
-gpg --armor --output dist/apache-roller-${vstring}${rcstring}.zip.asc        --detach-sig
dist/apache-roller-${vstring}${rcstring}.zip
-
-gpg --armor --output dist/apache-roller-src-${vstring}${rcstring}.tar.gz.asc --detach-sig
dist/apache-roller-src-${vstring}${rcstring}.tar.gz
-gpg --armor --output dist/apache-roller-src-${vstring}${rcstring}.zip.asc    --detach-sig
dist/apache-roller-src-${vstring}${rcstring}.zip
+#cp dist/roller-weblogger-${vstring}-binary.tar.gz dist/roller-weblogger-${vstring}${rcstring}-binary.tar.gz
+#cp dist/roller-weblogger-${vstring}-binary.zip    dist/roller-weblogger-${vstring}${rcstring}-binary.zip
+#cp dist/roller-weblogger-${vstring}-source.tar.gz dist/roller-weblogger-${vstring}${rcstring}-source.tar.gz
+#cp dist/roller-weblogger-${vstring}-source.zip    dist/roller-weblogger-${vstring}${rcstring}-source.zip
+
+gpg --armor --detach-sig dist/roller-weblogger-${vstring}${rcstring}-binary.tar.gz
+gpg --armor --detach-sig dist/roller-weblogger-${vstring}${rcstring}-binary.zip
+gpg --armor --detach-sig dist/roller-weblogger-${vstring}${rcstring}-source.tar.gz 
+gpg --armor --detach-sig dist/roller-weblogger-${vstring}${rcstring}-source.zip
 

Modified: roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StartDerbyTask.java
URL: http://svn.apache.org/viewvc/roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StartDerbyTask.java?rev=942612&r1=942611&r2=942612&view=diff
==============================================================================
--- roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StartDerbyTask.java
(original)
+++ roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StartDerbyTask.java
Sun May  9 20:22:00 2010
@@ -21,6 +21,7 @@ import java.io.File;
 import java.io.PrintWriter;
 import java.sql.Connection;
 import java.sql.DriverManager;
+
 import org.apache.derby.drda.NetworkServerControl;
 import org.apache.roller.util.SQLScriptRunner;
 import org.apache.tools.ant.BuildException;

Modified: roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StopDerbyTask.java
URL: http://svn.apache.org/viewvc/roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StopDerbyTask.java?rev=942612&r1=942611&r2=942612&view=diff
==============================================================================
--- roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StopDerbyTask.java
(original)
+++ roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/ant/StopDerbyTask.java
Sun May  9 20:22:00 2010
@@ -20,6 +20,7 @@ package org.apache.roller.weblogger.ant;
 import java.io.File;
 import java.sql.Connection;
 import java.sql.DriverManager;
+
 import org.apache.derby.drda.NetworkServerControl;
 import org.apache.roller.util.SQLScriptRunner;
 import org.apache.tools.ant.BuildException;

Modified: roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/jetty/DerbyLifeCycle.java
URL: http://svn.apache.org/viewvc/roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/jetty/DerbyLifeCycle.java?rev=942612&r1=942611&r2=942612&view=diff
==============================================================================
--- roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/jetty/DerbyLifeCycle.java
(original)
+++ roller/trunk/test-utils/src/main/java/org/apache/roller/weblogger/jetty/DerbyLifeCycle.java
Sun May  9 20:22:00 2010
@@ -19,6 +19,7 @@
 package org.apache.roller.weblogger.jetty;
 
 import java.io.PrintWriter;
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.derby.drda.NetworkServerControl;

Added: roller/trunk/weblogger-docs/examples/scripting/groovy/examples/atompub/atompost.groovy
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-docs/examples/scripting/groovy/examples/atompub/atompost.groovy?rev=942612&view=auto
==============================================================================
--- roller/trunk/weblogger-docs/examples/scripting/groovy/examples/atompub/atompost.groovy
(added)
+++ roller/trunk/weblogger-docs/examples/scripting/groovy/examples/atompub/atompost.groovy
Sun May  9 20:22:00 2010
@@ -0,0 +1,33 @@
+import com.sun.syndication.propono.atom.client.*
+import com.sun.syndication.feed.atom.*
+
+try {
+
+    def authStrategy = new OAuthStrategy(
+        "joe", // username
+        "xxxxx", // consumer key
+        "yyyyy", // consumer secret
+        "HMAC-SHA1", // key type
+        "http://localhost:8080/roller/roller-services/oauth/requestToken",
+        "http://localhost:8080/roller/roller-services/oauth/authorize",
+        "http://localhost:8080/roller/roller-services/oauth/accessToken")
+
+    // get the AtomPub service
+    def appService = AtomClientFactory.getAtomService(
+        "http://localhost:8080/roller/roller-services/app", authStrategy)
+
+    // find workspace of blog
+    def blog = appService.findWorkspace("Joe's test blog") // find collecton that will accept
entries
+    def entries = blog.findCollection(null, "application/atom+xml;type=entry")
+
+    // create and post an entry
+    def entry = entries.createEntry()
+    entry.title = "TestPost"
+    def content = new Content()
+    content.setValue("This is a test post. w00t!")
+    entry.setContent([content])
+    entries.addEntry(entry)
+
+} catch (Exception e) {
+    e.printStackTrace();
+}
\ No newline at end of file

Modified: roller/trunk/weblogger-web/src/test/java/org/apache/roller/weblogger/ui/UIPluginManagerTest.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-web/src/test/java/org/apache/roller/weblogger/ui/UIPluginManagerTest.java?rev=942612&r1=942611&r2=942612&view=diff
==============================================================================
--- roller/trunk/weblogger-web/src/test/java/org/apache/roller/weblogger/ui/UIPluginManagerTest.java
(original)
+++ roller/trunk/weblogger-web/src/test/java/org/apache/roller/weblogger/ui/UIPluginManagerTest.java
Sun May  9 20:22:00 2010
@@ -50,10 +50,11 @@ public class UIPluginManagerTest extends
     
     
     public void testEntryEditors() throws Exception {
+    	log.debug("Start");
         
         UIPluginManager pmgr = RollerContext.getUIPluginManager();
         
-        // test getEditors() lis
+        // test getEditors() list
         assertEquals(2, pmgr.getWeblogEntryEditors().size());
         
         // test getting a single editor
@@ -61,6 +62,8 @@ public class UIPluginManagerTest extends
         
         // make sure we return default editor if editor id is not found
         assertEquals("editor-text.jsp", pmgr.getWeblogEntryEditor(null).getId());
+        
+    	log.debug("End");
     }
     
 }



Mime
View raw message