cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r551161 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/conf/ConfigSaver.java
Date Wed, 27 Jun 2007 13:29:46 GMT
Author: aadamchik
Date: Wed Jun 27 06:29:46 2007
New Revision: 551161

URL: http://svn.apache.org/viewvc?view=rev&rev=551161
Log:
fixing DataNode saving bug - messed up XML tags when user login id is empty

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/conf/ConfigSaver.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/conf/ConfigSaver.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/conf/ConfigSaver.java?view=diff&rev=551161&r1=551160&r2=551161
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/conf/ConfigSaver.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/conf/ConfigSaver.java
Wed Jun 27 06:29:46 2007
@@ -184,8 +184,10 @@
                 + attribute("max", String.valueOf(info.getMaxConnections()))
                 + "/>");
 
+        pw.print("\t<login");
+        
         if (info.getUserName() != null) {
-            pw.print("\t<login" + attribute("userName", info.getUserName()));
+            pw.print(attribute("userName", info.getUserName()));
         }
 
         if (info.getPasswordLocation().equals(DataSourceInfo.PASSWORD_LOCATION_MODEL)) {



Mime
View raw message