ant-notifications mailing list archives

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

            Bug ID: 54819
           Summary: PropertyFile Task entry key/value adds backslash to
                    properties
           Product: Ant
           Version: 1.8.4
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: vasilena.treneva@softwareag.com
    Classification: Unclassified

Here is the how the script looks:

    <property name="machinename" value="localhost" />
    <property name="installdir" value="C:/SoftwareAG" />
    <property name="platform.profiles" value="SPM,CTP" />
    <property name="reusable.ant.targets" location="./../reusable-ant-targets"
/>
    <property name="event.type.store.location"
value="${installdir}/common/EventTypeStore" />
    <property name="broker.name" value="Broker #1" />
    <property name="broker.port" value="6849" />
    <property name="broker.host" value="${machinename}" />
    <property name="use.nirvana" value="false" />
    <property name="nirvana.port" value="9000" />
    <property name="nirvana.protocol" value="nsp" />
    <property name="nirvana.host" value="${machinename}" />
    <property name="nerv.property.file.name"
value="com.softwareag.eda.nerv.properties" />
    <property name="nirvana.sync.mode" value="false" />
    <property name="platform.config.file.name" value="wrapper.conf" />

<target name="set.platform.props">
        <for list="${platform.profiles}" param="profile" delimiter=",">
            <sequential>
                <echo message="Starting substitution of platform config
properties for profile: @{profile}" />
                <echo message="Setting nirvana.syncSendPersistent:
${nirvana.sync.mode}" />
                <var name="platform.config.location"
value="${installdir}/profiles/@{profile}/configuration" />
                <propertyfile
file="${platform.config.location}/${platform.config.file.name}">
                    <entry key="wrapper.java.additional.77"
value="-Dnirvana.syncSendPersistent=${nirvana.sync.mode}" />
                </propertyfile>
            </sequential>
        </for>
    </target>

There is only a single property that we need to add to this wrapper.conf file.
It is: wrapper.java.additional.77=-Dnirvana.syncSendPersistent=false
After the file is processed by the script all properties in it, are "escaped",
i.e:

Original value of the property: 
wrapper.java.additional.4=-XX:MaxPermSize=256M

New value of the property: 
wrapper.java.additional.4=-XX\:MaxPermSize\=256M

This breaks products that use the file.

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

Mime
View raw message