[jbosstools-issues] [JBoss JIRA] (JBIDE-15350) Using JBoss Tools Properties Editor, breaks the format (or removes) multiline property value

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Aug 16 14:40:26 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-15350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797403#comment-12797403 ] 

Viacheslav Kabanovich commented on JBIDE-15350:
-----------------------------------------------

Yes, JBoss Tools Properties editor is currently based on java.util.Properties.
It does not support multiple values and it does not support the kind of comments presented in the first snippet in description. JBIDE-3833 was not about multiple values, but only about multiline value, and it was resolved with supporting all reasonable cases of splitting value to several lines that we could think of. Still, it can be tricked as in your example.
If you rewrite you entry as 
{code}
#
#
#   JQuery scripts
#
 javascript.files=\
    jquery.js,\
    j2browse.js,\
    livequery.js
{code}
it will be preserved even if you edit/add/remove other properties.

But, ok, we will continue the work on preventing damage to any file.
                
> Using JBoss Tools Properties Editor, breaks the format (or removes) multiline property value
> --------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-15350
>                 URL: https://issues.jboss.org/browse/JBIDE-15350
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common/jst/core
>    Affects Versions: 4.1.0.Final
>            Reporter: thiago andrade
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.2.x
>
>
> In eclipse juno with JbossTools installed and jboss tools property editor opening my .properties files
> when I write in the file some something like
>     javascript.files=\
>         #
>         # JQuery scripts
>         #
>         \
>         jquery.js,\
>         j2browse.js,\
>         livequery.js,\
> it saves the file correctly BUT when I close this file and open it again the jboss tools properties editor parses the file and it becames something like this
>     javascript.files=\#
>         # JQuery scripts
>         #
>         \
>         jquery.js,\
>         j2browse.js,\
>         livequery.js,\
> That's it. 
> another error that I've identified is already reported at this link https://issues.jboss.org/browse/JBIDE-3833 BUT this issue is marked as resolved but it is not resolved.. the jboss tools properties editor still removes multiplie values variables from the file when it OPENS the file.
> so this:
>     js.files = util.js
>     js.files = jquery.meiomask.js
>     js.files = json2.0.js
> becames this:
>     js.files = json2.0.js
> I think that the jboss tools parses the file and removes the multiple.. if the user dont modified the file and save the original file is not changed, but if any change is made to the file it is saved with the modifications made by jboss tools properties editor

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list