Use ant's flatten mapper:

<mapper type="flatten"/>

On 10/15/05, Antonio PAROLINI <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to put jars referenced by a pom into an EAR using a ant
> task:
> -------------------
>  <target name="make-ear-maven" if="maven.aware" >
>     <artifact:dependencies  filesetId="dependency.fileset">
>        <artifact:pom id="maven.project" file="${file.maven.pom}" />
>     </artifact:dependencies>
>
>     <ear manifest="${file.manifest}" appxml="${file.applicationxml}"
> compress="false" destfile="${ear}">
>             <fileset refid="dependency.fileset"/>
>     </ear>
>   </target>
> ---------------------------
>
> The probleme is that this generates an EAR file with the jar fullpath.
>
> My ear will look like:
>  groupID/artifact/version/myjar1.jar
>  groupID/artifact/version/myjar2.jar
>  groupID/artifact/version/myjar2r.jar
>
> instead of:
> myjar1.jar
> myjar2.jar
> myjar3.jar
>
> Any idea of to correct this ?
>
> Thanks in advance.
>
> -antonio
>
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> **********************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to