mapping file-* to a property

Posted by andersonbd1 on Stack Overflow See other posts from Stack Overflow or by andersonbd1
Published on 2010-06-01T18:30:49Z Indexed on 2010/06/01 18:33 UTC
Read the original article Hit count: 194

Filed under:

Hi, I'd like to:

<unjar src="lib/mst-service-impl*.zip"

but I can't put an asterisk in there. It is only one file, but I don't want to hardcode the version in there. Is there a way to create a property with the asterisk (I know this particular example doesn't work, but perhaps something along these lines):

<property name="my.jar" file="lib/mst-service-impl*.zip">

so that I could then do this:

<unjar src="${my.jar}"

Thanks, Ben

© Stack Overflow or respective owner

Related posts about ant