db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1365552 - /db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java
Date Wed, 25 Jul 2012 12:25:53 GMT
Author: rhillegas
Date: Wed Jul 25 12:25:53 2012
New Revision: 1365552

URL: http://svn.apache.org/viewvc?rev=1365552&view=rev
Log:
DERBY-5878: Add message argument names, as comments, to message file generated by MessageBuilder.

Modified:
    db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java

Modified: db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java?rev=1365552&r1=1365551&r2=1365552&view=diff
==============================================================================
--- db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java (original)
+++ db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java Wed Jul 25 12:25:53
2012
@@ -572,7 +572,6 @@ public class MessageBuilder extends Task
         {
             displayText = replaceSpecialChars( escapeTextWithAQuote( rawText ) );
             displayText = plugInArgs( displayText , args );
-
         }
         else
         {
@@ -585,7 +584,18 @@ public class MessageBuilder extends Task
             ditaWriter.writeTextElement( "entry", "colname=\"col2\"", displayText );
         }
         ditaWriter.endTag();
-        
+
+        propertiesPW.println( "" );
+        if ( args.length != 0 )
+        {
+            propertiesPW.println( "# Arguments:" );
+            propertiesPW.println( "#" );
+            for ( int i = 0; i < args.length; i++ )
+            {
+                propertiesPW.println( "#    " + args[ i ] );
+            }
+            propertiesPW.println( "#" );
+        }
         propertiesPW.println( name + "=" + propertyText );
     }
 



Mime
View raw message