You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rice Yeh <ri...@gmail.com> on 2009/05/14 06:45:26 UTC

directory separator not / but \\ in resource filtering

Hi,
  I have a file put in resource like the following:

<property name="hibernate.connection.url"
value="jdbc:h2:tcp://localhost/${project.build.testOutputDirectory}/db/testdb"
/>

I use resource filtering to replaceing project.build.testOutputDirectory,
but the result becomes

            <property name="hibernate.connection.url"
value="jdbc:h2:tcp://localhost/C\:\\projects\\xsf\\jdk15\\persistence\\as-automata-persistence\\target\\test-classes/db/testdb"
/>

, which is not accepted by H2 database. How do I make \\ to / ?

Regards,
Rice

Re: directory separator not / but \\ in resource filtering

Posted by Olivier Lamy <ol...@apache.org>.
Hi,
It's probably due to http://jira.codehaus.org/browse/MSHARED-78.
It must be fixed with resources plugin 2.4-SNAPSHOT.

We "only" need to release maven-filtering and resources plugin. :-)

--
Olivier

2009/5/14 Rice Yeh <ri...@gmail.com>:
> Hi,
>  I have a file put in resource like the following:
>
> <property name="hibernate.connection.url"
> value="jdbc:h2:tcp://localhost/${project.build.testOutputDirectory}/db/testdb"
> />
>
> I use resource filtering to replaceing project.build.testOutputDirectory,
> but the result becomes
>
>            <property name="hibernate.connection.url"
> value="jdbc:h2:tcp://localhost/C\:\\projects\\xsf\\jdk15\\persistence\\as-automata-persistence\\target\\test-classes/db/testdb"
> />
>
> , which is not accepted by H2 database. How do I make \\ to / ?
>
> Regards,
> Rice
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org