Details
Description
The attached patch (against https://svn.codehaus.org/cargo/core/trunk) allows you to escape delimiters in property values using backslashes, e.g. for specifying resource parameters.
Example use:
<cargo.resource.resource.testdb> cargo.resource.name=jdbc/testdb| cargo.resource.type=javax.sql.DataSource| cargo.resource.parameters=factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory;driverClassName=org.h2.Driver;url=jdbc:h2:${project.build.outputDirectory}/testdb\;AUTO_SERVER=TRUE;username=sa;password=;minIdle=1 </cargo.resource.resource.eventbuffer>
Hello
The patch looks good and has a test; but why did you use regular expressions? Isn't it possible using a simple String.replace ?
Cheers