You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/06/12 10:43:07 UTC

DO NOT REPLY [Bug 42641] New: - Updating properties file through ant

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42641>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42641

           Summary: Updating properties file through ant
           Product: Ant
           Version: 1.6.2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: dev@ant.apache.org
        ReportedBy: vishal.arora1@wipro.com
                CC: vishal.arora1@wipro.com


My problem is regarding that while i update a key of properties file through 
ant script it changes the format of my properties file and removes all the 
comments and adds '\' charcters in front of url and wherever there is space.

Could i change the value of a key in my properties file through build.xml 
without changing the format of my properties file , without removing the 
comments in my properties file and also without adding '\' escape charcter in 
my properties file.
Or if this could not be done through through ant without changing the format 
of properties file or comments then  how can i execute a java file that will; 
do the same .?


the code which i have written is this.

<target name="stamp">
	<tstamp>
		<format property="date" pattern="dd-MMM-yyyy hh:mm zzzz" />
	</tstamp>
    <propertyfile file="${mss_config_loc}/configuration-devEnv.properties">
      <entry key="count" operation="=" value="${date}" />
    </propertyfile>
 </target>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 42641] - Updating properties file through ant

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42641>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42641


peterreilly@apache.org changed:

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




------- Additional Comments From peterreilly@apache.org  2007-06-12 03:42 -------
See: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
for the reason for escaping
and
http://issues.apache.org/bugzilla/show_bug.cgi?id=36901
for an enhancement request to retain comments

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org