Hi,
I tried to use this feature, but with no success.
Neither "if" nor "unless" work.
I tried Version 1.1 and 1.2-SNAPSHOT of antrun-plugin.
Is there somewhere a successstory about this <tasks> attributes?
Regards
Andreas
Michael Meyer-5 wrote:
>
> Hi
> in the example[1] they use unless="maven.test.skip" and not
> unless="${maven.test.skip}". Just a guess...
>
> Cheers, michael
>
> [1]
> http://maven.apache.org/plugins/maven-antrun-plugin/examples/tasksAttributes.html
>
> [EMAIL PROTECTED] wrote:
>> Do the if and/or unless attributes of the <tasks> element actually work?
>> It seems that my ant code gets run no matter what.
>>
>> <plugins>
>> <plugin>
>> <artifactId>maven-antrun-plugin</artifactId>
>> <executions>
>> <execution>
>> <phase>install</phase>
>> <configuration>
>> <tasks if="${XXXXXXXXXX}"> <!-- runs even if i change to unless
>> -->
>> <echo>Echo here</echo>
>> </tasks>
>> </configuration>
>> <goals>
>> <goal>run</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>> </plugins>
>>
>> Robert Egan
>>
>>
>> This email message and any attachments may contain confidential,
>> proprietary or non-public information. The information is intended
>> solely
>> for the designated recipient(s). If an addressing or transmission error
>> has misdirected this email, please notify the sender immediately and
>> destroy this email. Any review, dissemination, use or reliance upon this
>> information by unintended recipients is prohibited. Any opinions
>> expressed in this email are those of the author personally.
>
> --
> Michael Meyer | [EMAIL PROTECTED]
> phone +41-44-247 79 12 | fax +41-44-247 70 75
> Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/maven-antrun-plugin-tf4272816s177.html#a13037744
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]