You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeffrey Mutonho <ej...@gmail.com> on 2004/10/18 14:43:30 UTC
Copying jars
Hi
I wish to copy some non-versioned jars (excluding the versioned ones)
to a some location and this is what I'm trying and it's not working.
<copy todir="${maven.application.lib}">
<fileset dir="${maven.repo.local}/${pom.name}/jars" include="*.jar"
exclude="*${pom.currentVersion}.jar"/>
</copy>
Eg if I have Support.jar and Support-1.1.jar , then Support-1.1.jar
must be excluded(i.e not copied) .Right now Support.jar and
Support-1.1.jar are both copied to the destination directory.
jeff Mutonho
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Copying jars
Posted by Brett Porter <br...@gmail.com>.
**/*${pom.currentVersion}.jar
should work, though this is the most bizarre use case I've seen :)
- Brett
On Mon, 18 Oct 2004 14:43:30 +0200, Jeffrey Mutonho <ej...@gmail.com> wrote:
> Hi
>
> I wish to copy some non-versioned jars (excluding the versioned ones)
> to a some location and this is what I'm trying and it's not working.
>
> <copy todir="${maven.application.lib}">
> <fileset dir="${maven.repo.local}/${pom.name}/jars" include="*.jar"
> exclude="*${pom.currentVersion}.jar"/>
> </copy>
>
> Eg if I have Support.jar and Support-1.1.jar , then Support-1.1.jar
> must be excluded(i.e not copied) .Right now Support.jar and
> Support-1.1.jar are both copied to the destination directory.
>
> jeff Mutonho
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org