tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dougsle...@apache.org
Subject svn commit: r801658 - in /tuscany/sandbox/dougsleite/policy-recoveryrules: ./ src/main/java/org/apache/tuscany/sca/policy/recoveryrules/ src/test/java/org/apache/tuscany/sca/policy/recoveryrules/
Date Thu, 06 Aug 2009 14:26:47 GMT
Author: dougsleite
Date: Thu Aug  6 14:26:47 2009
New Revision: 801658

URL: http://svn.apache.org/viewvc?rev=801658&view=rev
Log:
- Solving some problems related with java version;

Modified:
    tuscany/sandbox/dougsleite/policy-recoveryrules/   (props changed)
    tuscany/sandbox/dougsleite/policy-recoveryrules/pom.xml
    tuscany/sandbox/dougsleite/policy-recoveryrules/src/main/java/org/apache/tuscany/sca/policy/recoveryrules/RecoveryRulesPolicyProcessor.java
    tuscany/sandbox/dougsleite/policy-recoveryrules/src/test/java/org/apache/tuscany/sca/policy/recoveryrules/PolicyReadTestCase.java

Propchange: tuscany/sandbox/dougsleite/policy-recoveryrules/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Aug  6 14:26:47 2009
@@ -0,0 +1,3 @@
+.project
+.settings
+.classpath

Modified: tuscany/sandbox/dougsleite/policy-recoveryrules/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/dougsleite/policy-recoveryrules/pom.xml?rev=801658&r1=801657&r2=801658&view=diff
==============================================================================
--- tuscany/sandbox/dougsleite/policy-recoveryrules/pom.xml (original)
+++ tuscany/sandbox/dougsleite/policy-recoveryrules/pom.xml Thu Aug  6 14:26:47 2009
@@ -17,7 +17,7 @@
  * specific language governing permissions and limitations
  * under the License.    
 -->
-<project>
+<project xmlns:pom="http://maven.apache.org/POM/4.0.0">
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
@@ -26,8 +26,8 @@
         <relativePath>../pom.xml</relativePath>
     </parent>
     <artifactId>tuscany-policy-recoveryrules</artifactId>
-    <name>Apache Tuscany SCA Recovery Rules Model</name>
-    
+    <name>Apache Tuscany SCA Recovery Rules Policy Model</name>
+
     <dependencies>
 
         <dependency>
@@ -35,29 +35,29 @@
             <artifactId>tuscany-contribution</artifactId>
             <version>1.6-SNAPSHOT</version>
         </dependency>
-        
+
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-assembly-xml</artifactId>
             <version>1.6-SNAPSHOT</version>
         </dependency>
-        
+
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-policy</artifactId>
             <version>1.6-SNAPSHOT</version>
         </dependency>
-        
+
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-contribution-impl</artifactId>
             <version>1.6-SNAPSHOT</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.apache.tuscany.sca</groupId>
-            <artifactId>tuscany-guardian-model</artifactId>
-            <version>1.6-SNAPSHOT</version>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-guardian</artifactId>
+            <version>1.6-SNAPSHOT</version>
         </dependency>
     </dependencies>
 
@@ -81,3 +81,4 @@
 
 </project>
 
+

Modified: tuscany/sandbox/dougsleite/policy-recoveryrules/src/main/java/org/apache/tuscany/sca/policy/recoveryrules/RecoveryRulesPolicyProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/dougsleite/policy-recoveryrules/src/main/java/org/apache/tuscany/sca/policy/recoveryrules/RecoveryRulesPolicyProcessor.java?rev=801658&r1=801657&r2=801658&view=diff
==============================================================================
--- tuscany/sandbox/dougsleite/policy-recoveryrules/src/main/java/org/apache/tuscany/sca/policy/recoveryrules/RecoveryRulesPolicyProcessor.java
(original)
+++ tuscany/sandbox/dougsleite/policy-recoveryrules/src/main/java/org/apache/tuscany/sca/policy/recoveryrules/RecoveryRulesPolicyProcessor.java
Thu Aug  6 14:26:47 2009
@@ -124,7 +124,7 @@
                     break;
                 case XMLStreamConstants.CHARACTERS:
                     String text = reader.getText().trim();
-                    if (!text.isEmpty()) {
+                    if (text.length() != 0) {
                         fac.createOMText(current, reader.getText());
                     }
                     break;

Modified: tuscany/sandbox/dougsleite/policy-recoveryrules/src/test/java/org/apache/tuscany/sca/policy/recoveryrules/PolicyReadTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/dougsleite/policy-recoveryrules/src/test/java/org/apache/tuscany/sca/policy/recoveryrules/PolicyReadTestCase.java?rev=801658&r1=801657&r2=801658&view=diff
==============================================================================
--- tuscany/sandbox/dougsleite/policy-recoveryrules/src/test/java/org/apache/tuscany/sca/policy/recoveryrules/PolicyReadTestCase.java
(original)
+++ tuscany/sandbox/dougsleite/policy-recoveryrules/src/test/java/org/apache/tuscany/sca/policy/recoveryrules/PolicyReadTestCase.java
Thu Aug  6 14:26:47 2009
@@ -82,7 +82,7 @@
             }
 
             //write texts
-            if (!el.getText().isEmpty()) {
+            if (el.getText().length() != 0) {
                 writer.writeCharacters(el.getText());
             }
 



Mime
View raw message