You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/03 15:45:23 UTC

svn commit: r1131037 - in /commons/sandbox/digester3/trunk/src/examples/annotations: ./ atom/ atom/src/ atom/src/main/ atom/src/main/java/ pom.xml readme.txt xmlcontent.xml

Author: simonetripodi
Date: Fri Jun  3 13:45:22 2011
New Revision: 1131037

URL: http://svn.apache.org/viewvc?rev=1131037&view=rev
Log:
first checkin of atom sample archetype, this time using annotations instead explicit EDSL

Added:
    commons/sandbox/digester3/trunk/src/examples/annotations/
    commons/sandbox/digester3/trunk/src/examples/annotations/atom/
    commons/sandbox/digester3/trunk/src/examples/annotations/atom/src/
    commons/sandbox/digester3/trunk/src/examples/annotations/atom/src/main/
    commons/sandbox/digester3/trunk/src/examples/annotations/atom/src/main/java/
    commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml   (with props)
    commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt   (with props)
    commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml   (with props)

Added: commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml?rev=1131037&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml (added)
+++ commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml Fri Jun  3 13:45:22 2011
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.apache.commons</groupId>
+    <artifactId>commons-digester3-samples</artifactId>
+    <version>3.0-SNAPSHOT</version>
+    <relativePath>../../</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>commons-digester3-samples-annotations-atom</artifactId>
+  <packaging>jar</packaging>
+  <name>Apache Commons Digester :: Examples :: Annotations :: Atom</name>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <configuration>
+          <mainClass>org.apache.commons.digester3.annotations.atom.Main</mainClass>
+          <arguments>
+            <argument>file:${basedir}/xmlcontent.xml</argument>
+          </arguments>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt?rev=1131037&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt (added)
+++ commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt Fri Jun  3 13:45:22 2011
@@ -0,0 +1,32 @@
+#########################################################################
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#  
+#      http://www.apache.org/licenses/LICENSE-2.0
+#  
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#########################################################################
+
+This directory contains the example code for parsing ATOM newsfeeds.
+
+A packaged distribution can be created by using Apache Maven:
+
+* to compile:
+  mvn compile
+
+* to build the jar artifact
+  mvn package
+
+* to run:
+  mvn verify
+
+Alternatively, you can set up your CLASSPATH appropriately, and
+run the example directly.

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/readme.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml?rev=1131037&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml (added)
+++ commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml Fri Jun  3 13:45:22 2011
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<!--
+    ATOM feed kindly borrowed from Apache Abdera
+    (see http://svn.apache.org/repos/asf/abdera/java/trunk/parser/src/test/resources/xmlcontent.xml)
+-->
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+  <title>Example Feed</title>
+  <link href="http://example.org/" />
+  <updated>2003-12-13T18:30</updated>
+  <author>
+    <name>John Doe</name>
+  </author>
+  <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+
+  <entry>
+    <title>Atom-Powered Robots Run Amok</title>
+    <link href="http://example.org/2003/12/13/atom03" />
+    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+    <updated>2003-12-13T18:30</updated>
+    <content type="text/plain">this is just a simple test!</content>
+  </entry>
+
+</feed>

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/examples/annotations/xmlcontent.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml