abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r475052 - in /incubator/abdera/java/trunk: build/build.xml examples/src/main/java/org/apache/abdera/examples/appclient/Services.java
Date Tue, 14 Nov 2006 23:26:08 GMT
Author: jmsnell
Date: Tue Nov 14 15:26:07 2006
New Revision: 475052

URL: http://svn.apache.org/viewvc?view=rev&rev=475052
Log:
Fix for the example build issues
Update the Ant build so that the example code is confirmed to compile

Modified:
    incubator/abdera/java/trunk/build/build.xml
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appclient/Services.java

Modified: incubator/abdera/java/trunk/build/build.xml
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/build/build.xml?view=diff&rev=475052&r1=475051&r2=475052
==============================================================================
--- incubator/abdera/java/trunk/build/build.xml (original)
+++ incubator/abdera/java/trunk/build/build.xml Tue Nov 14 15:26:07 2006
@@ -76,6 +76,9 @@
   <property name="client.work" value="${work}/client" />
   <property name="client.test.java" value="${client}/src/test/java" />
   <property name="client.jar" value="${dist}/${ant.project.name}.client.${version}.jar"
/>
+  <property name="examples" value="${basedir}/examples" />
+  <property name="examples.work" value="${work}/examples" />
+  <property name="examples.src" value="${examples}/src/main/java" /> 
   <property name="debug" value="on" />
   
   <property environment="env" />
@@ -337,7 +340,18 @@
     </copy>
   </target>
   
-  <target name="build" depends="init,compile.core,compile.parser,compile.protocol,compile.server,compile.extensions,compile.client,compile.security"></target>
+  <target name="compile.examples" depends="init,compile.core,compile.parser,compile.protocol,compile.server,compile.extensions,compile.security">
+    <echo>Make sure the example code compiles...</echo>
+    <mkdir dir="${examples.work}" />
+    <javac srcdir="${examples.src}"
+           destdir="${examples.work}"
+           classpathref="jar.dependencies"
+           classpath="${core.work};${parser.work};${protocol.work};${client.work};${server.work};${extensions.work};${security.work}"
+           debug="${debug}" />
+    <delete dir="${examples.work}" />
+  </target>
+  
+  <target name="build" depends="init,compile.core,compile.parser,compile.protocol,compile.server,compile.extensions,compile.client,compile.security,compile.examples"></target>
 
   <target name="docs" depends="init">
     <javadoc packagenames="org.apache.abdera.*"

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appclient/Services.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appclient/Services.java?view=diff&rev=475052&r1=475051&r2=475052
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appclient/Services.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appclient/Services.java
Tue Nov 14 15:26:07 2006
@@ -185,22 +185,22 @@
     entry.setContentAsXhtml("<p>A new calendar event</p>");
     
     // Add the Google Specific extensions
-    entry.addExtension(
+    ((Element)entry.addExtension(
       new QName(
         "http://schemas.google.com/g/2005", 
-        "transparency")).setAttributeValue(
+        "transparency"))).setAttributeValue(
           "value", 
           "http://schemas.google.com/g/2005#event.opaque");
-    entry.addExtension(
+    ((Element)entry.addExtension(
         new QName(
           "http://schemas.google.com/g/2005", 
-          "eventStatus")).setAttributeValue(
+          "eventStatus"))).setAttributeValue(
             "value", 
             "http://schemas.google.com/g/2005#event.confirmed");
-    entry.addExtension(
+    ((Element)entry.addExtension(
         new QName(
           "http://schemas.google.com/g/2005", 
-          "where")).setAttributeValue(
+          "where"))).setAttributeValue(
             "valueString", 
             "Rolling Lawn Courts");
     Element el = entry.addExtension(



Mime
View raw message