maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: clean plugin
Date Mon, 19 Sep 2005 15:25:27 GMT
Arnaud HERITIER wrote on Monday, September 19, 2005 4:43 PM:

> It's not possible in maven 1.
> Dependencies are checked for any goal called.
> It's a feature already implemented in m2.

It can and it has published here on the list more than once:

    <goal name='multiproject:clean'>
        <maven:reactor basedir='${maven.multiproject.basedir}'
                       banner='Gathering project list'
                       includes='${maven.multiproject.includes}'
                       excludes='${maven.multiproject.excludes}'
                       postProcessing='true'
                       ignoreFailures='${maven.multiproject.ignoreFailures}'
                       collectOnly='true' />
        <j:forEach var='reactorProject' items='${reactorProjects}'>
            <j:set var='_clean_dir'>${reactorProject.context.getVariable('maven.build.dest')}</j:set>
            <ant:delete dir='${_clean_dir}' />
            <j:set var='_clean_dir'>${reactorProject.context.getVariable('maven.build.dir')}</j:set>
            <ant:delete dir='${_clean_dir}' />
        </j:forEach>
        <j:remove var='_clean_dir' />
    </goal>

- Jörg

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


Mime
View raw message