jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r164874 - in /incubator/jackrabbit/trunk/contrib/examples: project.xml src/java/org/apache/jackrabbit/examples/FirstSteps.java
Date Tue, 26 Apr 2005 20:40:52 GMT
Author: jukka
Date: Tue Apr 26 13:40:51 2005
New Revision: 164874

URL: http://svn.apache.org/viewcvs?rev=164874&view=rev
Log:
examples: Upgraded examples to 0.16.4 API. Also added runtime dependencies.

Modified:
    incubator/jackrabbit/trunk/contrib/examples/project.xml
    incubator/jackrabbit/trunk/contrib/examples/src/java/org/apache/jackrabbit/examples/FirstSteps.java

Modified: incubator/jackrabbit/trunk/contrib/examples/project.xml
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/examples/project.xml?rev=164874&r1=164873&r2=164874&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/examples/project.xml (original)
+++ incubator/jackrabbit/trunk/contrib/examples/project.xml Tue Apr 26 13:40:51 2005
@@ -49,19 +49,75 @@
   </licenses>
 
   <dependencies>
+    <!-- Compile dependencies -->
+    <dependency>
+      <groupId>jsr170</groupId>
+      <artifactId>jcr</artifactId>
+      <version>0.16.4</version>
+      <url>http://www.day.com/maven/jsr170/jars/jcr-0.16.4.jar</url>
+    </dependency>
     <dependency>
       <id>jackrabbit</id>
-      <version>0.16.2-dev</version>
+      <version>0.16.4-dev</version>
     </dependency>
+    <!-- Runtime dependencies needed by Jackrabbit -->
     <dependency>
-      <groupId>jsr170</groupId>
-      <artifactId>jcr</artifactId>
-      <version>0.16.2</version>
-      <url>http://www.day.com/maven/jsr170/jars/jcr-0.16.2.jar</url>
+      <id>concurrent</id>
+      <version>1.3.4</version>
+    </dependency>
+    <dependency>
+      <id>commons-collections</id>
+      <version>2.1</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo-spec</groupId>
+      <artifactId>geronimo-spec-jta</artifactId>
+      <version>1.0-M1</version>
+    </dependency>
+    <dependency>
+      <id>log4j</id>
+      <version>1.2.8</version>
+    </dependency>
+    <dependency>
+      <groupId>lucene</groupId>
+      <artifactId>lucene</artifactId>
+      <version>1.4.3</version>
+    </dependency>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xercesImpl</artifactId>
+      <version>2.6.2</version>
+    </dependency>
+    <dependency>
+      <groupId>xml-apis</groupId>
+      <artifactId>xmlParserAPIs</artifactId>
+      <version>2.0.2</version>
+    </dependency>
+    <!--
+      cqfs-jackrabbit and cqfs are optional runtime dependencies 
+      (an alternative FileSystem implementation); 
+      commons-logging is a dependency of cqfs
+    -->
+    <dependency>
+      <groupId>cqfs</groupId>
+      <artifactId>cqfs-jackrabbit</artifactId>
+      <version>3.5.6</version>
+      <url>http://www.day.com/maven/cqfs/jars/cqfs-jackrabbit-3.5.6.jar</url>
+    </dependency>
+    <dependency>
+      <groupId>cqfs</groupId>
+      <artifactId>cqfs</artifactId>
+      <version>3.5.6</version>
+      <url>http://www.day.com/maven/cqfs/jars/cqfs-3.5.6.jar</url>
+    </dependency>
+    <dependency>
+      <id>commons-logging</id>
+      <version>1.0</version>
     </dependency>
   </dependencies>
 
   <build>
     <sourceDirectory>src/java</sourceDirectory>
   </build>
+
 </project>

Modified: incubator/jackrabbit/trunk/contrib/examples/src/java/org/apache/jackrabbit/examples/FirstSteps.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/examples/src/java/org/apache/jackrabbit/examples/FirstSteps.java?rev=164874&r1=164873&r2=164874&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/examples/src/java/org/apache/jackrabbit/examples/FirstSteps.java
(original)
+++ incubator/jackrabbit/trunk/contrib/examples/src/java/org/apache/jackrabbit/examples/FirstSteps.java
Tue Apr 26 13:40:51 2005
@@ -18,6 +18,7 @@
 
 import org.apache.jackrabbit.core.jndi.RegistryHelper;
 
+import javax.jcr.ImportUUIDBehavior;
 import javax.jcr.Node;
 import javax.jcr.NodeIterator;
 import javax.jcr.Property;
@@ -64,7 +65,8 @@
                 System.out.println("importing xml");
                 Node node = root.addNode("importxml", "nt:unstructured");
                 InputStream xml = new FileInputStream("repotest/test.xml");
-                session.importXML("/importxml", xml);
+                session.importXML(
+                        "/importxml", xml, ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
                 session.save();
             }
 



Mime
View raw message