> From: Casey Daniell [mailto:[EMAIL PROTECTED] > > <fileset id="lib-files" dir="${libs.dir}"> > <include name="gateway-2.3.6.jar"/> > </fileset> > > <copy todir="${deploy.dest}/lib"> > <fileset refid="lib-files"/> > <mapper type="regexp" > from="^(\w+(\-*\w*)*)(\-+([0-9]?.?)*)*(.jar)$$" > to="\1\5"/> > </copy>
Your regexp looks a bit too complex. Assuming the version number is always after the - and before the .jar, and composed of any number of digits separated with dots, I'd go with (untested): from="^(\w+)-[\d\.]*\.jar$" to="\1.jar" --DD PS: I don't think the trailing $$ is necessary, but I could be wrong. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
