[ 
http://jira.codehaus.org/browse/MEXEC-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MEXEC-78.
-------------------------------

    Resolution: Won't Fix
      Assignee: Robert Scholte

With MEXEC-82 it's possible to skip the execution. Combining this with profiles 
( http://maven.apache.org/guides/introduction/introduction-to-profiles.html ) 
you should be able to get the same result. Preconditions shouldn't be resolved 
in the plugin itself.

> Added a precondition to skip execution by existence or absence of a file
> ------------------------------------------------------------------------
>
>                 Key: MEXEC-78
>                 URL: http://jira.codehaus.org/browse/MEXEC-78
>             Project: Maven 2.x Exec Plugin
>          Issue Type: Improvement
>          Components: exec
>    Affects Versions: 1.1.1
>         Environment: exec-maven-plugin version 1.1.1
>            Reporter: Maik Richey
>            Assignee: Robert Scholte
>         Attachments: AddingPrecondition.diff
>
>
> In our scenario one execution of the exec plugin can be called multiple times 
> for generating a specific file. As an enhancement to our build process I 
> added a precondition to skip execution by existence or absence of that file 
> (see configuration below). So if the file specified is missing and should 
> exist _or_ is existing and should be missing execution will be skipped. Valid 
> preconditions are missing and exists (similar to activation of profiles).
> {code:xml}
> <plugin>
>       <groupId>org.codehaus.mojo</groupId>
>       <artifactId>exec-maven-plugin</artifactId>
>       <executions>
>               <execution>
>                       <goals>
>                               <goal>exec</goal>
>                       </goals>
>               </execution>
>       </executions>
>       <configuration>
>               <executable>...</executable>
>               <precondition>
>                       <file>
>                               <exists>file1</exists>
>               AND/OR
>                               <missing>file2</missing>
>                       </file>
>               </precondition>
>               <arguments>
>                       ...
>               </arguments>
>       </configuration>
> </plugin>
> {code}
> Give it a try and take it into the next release version if you like.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to