I'll answer my own question. <localRepository> isn't a property. Although you can reference it like one, it does not return the value you set, but apparently modifies it. I solved this by creating a property <local.repository>. A bit redundant, but it got the job done.
Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640 -----Original Message----- From: Brewster, Richard [mailto:[EMAIL PROTECTED] Sent: Friday, December 07, 2007 5:43 PM To: [email protected] Subject: localRepository property prepends backslash on Windows I am using the maven-antrun-plugin to execute a simple copy task that configures my JBoss instance prior to running integration-test with Cargo. I want to include the JDBC driver jar, which is installed into my local maven repository. I've relocated the repository in settings.xml as follows: <localRepository>C:/m2/repository</localRepository> Here is the task element <copy todir="${cargo.container.home}/server/default/lib"> <fileset dir="${localRepository}/com/oracle/${jdbc.artifactId}/${jdbc.version}"> <include name="*.jar"/> </fileset> </copy> I get: [INFO] Error executing ant tasks Embedded error: C:\dev\af-modular\web\[local] -> file:\C:\m2\repository\com\oracle\ojdbc14\10.2.0.3.0 not found. If I replace the localRepository property reference with the literal 'C:/m2/repository' all is well. It is the backslash before C: that's the trouble. Where is it coming from? Any suggestion to solve this, or a completely different approach, would be welcome. TIA, Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
