You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2013/04/09 15:12:04 UTC

[Bug 54819] PropertyFile Task entry key/value adds backslash to properties

https://issues.apache.org/bugzilla/show_bug.cgi?id=54819

Peter Reilly <pe...@apache.org> changed:

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

--- Comment #1 from Peter Reilly <pe...@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.