maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Siveton (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MNG-3242) It's not possible to get a property with unescaped & sign for urls
Date Sat, 05 Jan 2008 14:26:57 GMT

    [ http://jira.codehaus.org/browse/MNG-3242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118825
] 

Vincent Siveton commented on MNG-3242:
--------------------------------------

Could you provide us your pom? 

The following should work:

{noformat} 
<project>
...
  <properties>
    <jdbc.url>jdbc:mysql://localhost/mydb?user=myuser&amp;password=mypass&amp;useUnicode=true&amp;characterEncoding=utf-8</jdbc.url>
OR
   <jdbc.url><![CDATA[jdbc:mysql://localhost/mydb?user=myuser&amp;password=mypass&amp;useUnicode=true&amp;characterEncoding=utf-8]]></jdbc.url>
  </properties>
...
</project>
{noformat} 

> It's not possible to get a property with unescaped & sign for urls
> ------------------------------------------------------------------
>
>                 Key: MNG-3242
>                 URL: http://jira.codehaus.org/browse/MNG-3242
>             Project: Maven 2
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.6
>            Reporter: Nils Eckert
>             Fix For: 2.0.x
>
>
> I found no way to create a property with a not escaped ampersand (&-sign). This is
needed for a MySQL jdbc-connection String with some connection variabled and should be filtered
in a properties file during compile phase.
> It tried to escape it with &amp; This leeds to following error: Project build error
Cannot read project model from interpolating filter of serialized version.
> It is no option to use a double escaping with &amp;amp;. Here I get a &amp; in
my connection url.
> I also tried to use a <[CDATA[ ... ]]> with the same problems. It's not possible
to use & sign. And if I use &amp; this escaped tag appears in my properties file after
filtering.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message