ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54819] PropertyFile Task entry key/value adds backslash to properties
Date Tue, 09 Apr 2013 13:12:04 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54819

Peter Reilly <peterreilly@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 OS|                            |All

--- Comment #1 from Peter Reilly <peterreilly@apache.org> ---
This is not a bug. This is the correct format for a properties file.
See
http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html#store(java.io.Writer,
java.lang.String)

Also:
    @Test public void property() throws Exception {
        Properties p = new Properties();
        p.setProperty("name", "-Dnirvana.syncSendPersistent=false
-XX:MaxPermSize=256M");
        StringWriter sw = new StringWriter();
        p.store(sw, "");
        System.out.println(sw.toString());
    }

outputs:

#
#Tue Apr 09 14:09:54 IST 2013
name=-Dnirvana.syncSendPersistent\=false -XX\:MaxPermSize\=256M

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message