You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Raphaël Piéroni <ra...@yahoo.fr> on 2005/06/13 16:58:12 UTC

[maven 1.0.2] [WAR plugin] war:war-resources goal modification request.

Hello,

I would like to have the war plugin modified to add filtering
in the war:war-resources goal.

here is the modified goal extracted from the 1.6.1 war plugin
<goal name="war:war-resources" prereqs="war:init" 
    description="Copy webapp resources to target directory">

    <ant:mkdir dir="${maven.war.webapp.dir}"/>

    <j:set var="webapp.build.webinf"
value="${maven.war.webapp.dir}/WEB-INF"/>
    <ant:mkdir dir="${webapp.build.webinf}"/>

    <j:if test="${webSourcesPresent == 'true'}">
      <ant:copy todir="${maven.war.webapp.dir}" 
                filtering="on" 
                preservelastmodified="true">
        <ant:fileset dir="${maven.war.src}"
          includes="${maven.war.src.includes}"
          excludes="${maven.war.src.excludes}">
        </ant:fileset>
      </ant:copy>
    </j:if>
    
    <util:available file="${maven.war.webxml}">
      <ant:copy file="${maven.war.webxml}"
        filtering="on" 
        tofile="${webapp.build.webinf}/web.xml"
        overwrite="true" />
    </util:available>

  </goal>

In advance thank you.

Do i have to add this request to the jira ?

Raphaël.

------------------------------------
| Raphaël Piéroni                  |
| 33+ 223 351 354                  |
| mailto:rpieroni@dexem.com        |
| http://www.dexem.com             |
| mailing:raphael_mailing@yahoo.fr |
------------------------------------


	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven 1.0.2] [WAR plugin] war:war-resources goal modification request.

Posted by Haryon <ha...@gmail.com>.
yes :). That's what I did and I got answer pretty fast.

On 6/13/05, Raphaël Piéroni <ra...@yahoo.fr> wrote:
> Hello,
> 
> I would like to have the war plugin modified to add filtering
> in the war:war-resources goal.
> 
> here is the modified goal extracted from the 1.6.1 war plugin
> <goal name="war:war-resources" prereqs="war:init"
>    description="Copy webapp resources to target directory">
> 
>    <ant:mkdir dir="${maven.war.webapp.dir}"/>
> 
>    <j:set var="webapp.build.webinf"
> value="${maven.war.webapp.dir}/WEB-INF"/>
>    <ant:mkdir dir="${webapp.build.webinf}"/>
> 
>    <j:if test="${webSourcesPresent == 'true'}">
>      <ant:copy todir="${maven.war.webapp.dir}"
>                filtering="on"
>                preservelastmodified="true">
>        <ant:fileset dir="${maven.war.src}"
>          includes="${maven.war.src.includes}"
>          excludes="${maven.war.src.excludes}">
>        </ant:fileset>
>      </ant:copy>
>    </j:if>
> 
>    <util:available file="${maven.war.webxml}">
>      <ant:copy file="${maven.war.webxml}"
>        filtering="on"
>        tofile="${webapp.build.webinf}/web.xml"
>        overwrite="true" />
>    </util:available>
> 
>  </goal>
> 
> In advance thank you.
> 
> Do i have to add this request to the jira ?
> 
> Raphaël.
> 
> ------------------------------------
> | Raphaël Piéroni                  |
> | 33+ 223 351 354                  |
> | mailto:rpieroni@dexem.com        |
> | http://www.dexem.com             |
> | mailing:raphael_mailing@yahoo.fr |
> ------------------------------------
> 
> 
> 
> 
> 
> 
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> 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