abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject [PATCH] Add in RSS into Ant build and complete jar
Date Mon, 10 Aug 2009 21:15:35 GMT
Hi gang,

For a demo we're building, we're using Abdera.  Yay.  However, one of
the things is that we're parsing both RSS and Atom feeds.  I saw that
this support was folded into extensions/ in ABDERA-202 ; but it looks
like a few loose ends were left.

Here's my attempt to fix it.  It Works For Me(tm).

Comments welcomed!  -- justin

Add RSS support to complete JAR and add it to the ant build.

* extensions/complete/resources/META-INF/services/org.apache.abdera.factory.ExtensionFactory:
  Add RSS extension factory to complete JAR.
* build/build.xml: Teach Ant how to build RSS support.

Index: extensions/complete/resources/META-INF/services/org.apache.abdera.factory.ExtensionFactory
===================================================================
--- extensions/complete/resources/META-INF/services/org.apache.abdera.factory.ExtensionFactory
(revision
802867)
+++ extensions/complete/resources/META-INF/services/org.apache.abdera.factory.ExtensionFactory
(working
copy)
@@ -3,5 +3,6 @@
 org.apache.abdera.ext.tombstones.TombstonesExtensionFactory
 org.apache.abdera.ext.media.MediaExtensionFactory
 org.apache.abdera.ext.opensearch.OpenSearchExtensionFactory
+org.apache.abdera.ext.rss.RssExtensionFactory
 org.apache.abdera.ext.sharing.SharingExtensionFactory
-org.apache.abdera.protocol.error.ErrorExtensionFactory
\ No newline at end of file
+org.apache.abdera.protocol.error.ErrorExtensionFactory
Index: build/build.xml
===================================================================
--- build/build.xml	(revision 802867)
+++ build/build.xml	(working copy)
@@ -360,7 +360,7 @@
   <target name="docs" depends="init">
     <javadoc
       packagenames="org.apache.abdera.*"
-      sourcepath="${core.src}:${security.src}:${server.src}:${client.src}:${spring.src}:${i18n.src.java}:${extensions}/gdata/src/main/java:${extensions}/geo/src/main/java:${extensions}/html/src/main/java:${extensions}/json/src/main/java:${extensions}/main/src/main/java:${extensions}/media/src/main/java:${extensions}/oauth/src/main/java:${extensions}/opensearch/src/main/java:${extensions}/serializer/src/main/java:${extensions}/sharing/src/main/java:${extensions}/wsse/src/main/java"
+      sourcepath="${core.src}:${security.src}:${server.src}:${client.src}:${spring.src}:${i18n.src.java}:${extensions}/gdata/src/main/java:${extensions}/geo/src/main/java:${extensions}/html/src/main/java:${extensions}/json/src/main/java:${extensions}/main/src/main/java:${extensions}/media/src/main/java:${extensions}/oauth/src/main/java:${extensions}/opensearch/src/main/java:${extensions}/rss/src/main/java:${extensions}/serializer/src/main/java:${extensions}/sharing/src/main/java:${extensions}/wsse/src/main/java"
       destdir="${javadocs}"
       windowtitle="Abdera"
       classpathref="jar.dependencies" />
@@ -445,6 +445,7 @@
       <fileset dir="${extensions.work}/media" includes="**/*"
excludes="META-INF/**/*"/>
       <fileset dir="${extensions.work}/oauth" includes="**/*"
excludes="META-INF/**/*"/>
       <fileset dir="${extensions.work}/opensearch" includes="**/*"
excludes="META-INF/**/*"/>
+      <fileset dir="${extensions.work}/rss" includes="**/*"
excludes="META-INF/**/*"/>
       <fileset dir="${extensions.work}/serializer" includes="**/*"
excludes="META-INF/**/*"/>
       <fileset dir="${extensions.work}/sharing" includes="**/*"
excludes="META-INF/**/*"/>
       <fileset dir="${extensions.work}/wsse" includes="**/*"
excludes="META-INF/**/*"/>
@@ -728,6 +729,10 @@
     </antcall>

     <antcall target="compile.extension">
+      <param name="ext" value="rss" />
+    </antcall>
+
+    <antcall target="compile.extension">
       <param name="ext" value="sharing" />
     </antcall>

@@ -819,6 +824,10 @@
     </antcall>

     <antcall target="dist.extension">
+      <param name="ext" value="rss" />
+    </antcall>
+
+    <antcall target="dist.extension">
       <param name="ext" value="sharing" />
     </antcall>

@@ -885,6 +894,10 @@
     </antcall>

     <antcall target="test.extension">
+      <param name="ext" value="rss" />
+    </antcall>
+
+    <antcall target="test.extension">
       <param name="ext" value="sharing" />
     </antcall>

@@ -945,6 +958,10 @@
     </antcall>

     <antcall target="retro.extension">
+      <param name="ext" value="rss" />
+    </antcall>
+
+    <antcall target="retro.extension">
       <param name="ext" value="sharing" />
     </antcall>

Mime
View raw message