jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r169980 - in /incubator/jackrabbit/trunk/contrib/examples: project.properties project.xml src/java/org/apache/jackrabbit/examples/FirstSteps.java
Date Fri, 13 May 2005 08:26:12 GMT
Author: mreutegg
Date: Fri May 13 01:26:11 2005
New Revision: 169980

URL: http://svn.apache.org/viewcvs?rev=169980&view=rev
Log:
JCR-121: JCRTest.java (First Steps example code) creates a StringValue with "new"

Modified:
    incubator/jackrabbit/trunk/contrib/examples/project.properties
    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.properties
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/examples/project.properties?rev=169980&r1=169979&r2=169980&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/examples/project.properties (original)
+++ incubator/jackrabbit/trunk/contrib/examples/project.properties Fri May 13 01:26:11 2005
@@ -1 +1,3 @@
+maven.repo.remote = http://www.ibiblio.org/maven/,http://www.day.com/maven/
+
 maven.jar.mainclass=org.apache.jackrabbit.examples.Main

Modified: incubator/jackrabbit/trunk/contrib/examples/project.xml
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/examples/project.xml?rev=169980&r1=169979&r2=169980&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/examples/project.xml (original)
+++ incubator/jackrabbit/trunk/contrib/examples/project.xml Fri May 13 01:26:11 2005
@@ -53,12 +53,12 @@
     <dependency>
       <groupId>jsr170</groupId>
       <artifactId>jcr</artifactId>
-      <version>0.16.4</version>
+      <version>0.16.4.1</version>
       <url>http://www.day.com/maven/jsr170/jars/jcr-0.16.4.jar</url>
     </dependency>
     <dependency>
       <id>jackrabbit</id>
-      <version>0.16.4-dev</version>
+      <version>0.16.4.1-dev</version>
     </dependency>
     <!-- Runtime dependencies needed by Jackrabbit -->
     <dependency>

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=169980&r1=169979&r2=169980&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
Fri May 13 01:26:11 2005
@@ -27,7 +27,6 @@
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.SimpleCredentials;
-import javax.jcr.StringValue;
 import javax.jcr.Value;
 
 /**
@@ -43,8 +42,6 @@
 
     /**
      * Run the First Steps example.
-     *
-     * @param args command line arguments (ignored)
      */
     public void run() {
         try {
@@ -58,7 +55,7 @@
             if (!root.hasNode("testnode")) {
                 System.out.println("creating testnode");
                 Node node = root.addNode("testnode", "nt:unstructured");
-                node.setProperty("testprop", new StringValue("Hello, World."));
+                node.setProperty("testprop", session.getValueFactory().createValue("Hello,
World."));
                 session.save();
             }
 



Mime
View raw message