You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ro...@aciworldwide.com on 2007/08/15 14:33:26 UTC
maven-antrun-plugin
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.
Re: maven-antrun-plugin
Posted by "L. J." <ap...@gmail.com>.
I have the same problem, does anyone get it work?
Thanks.
LJ
On Thu, Oct 4, 2007 at 4:07 AM, Andreas Rudolf <ar...@gmx.com> wrote:
>
> 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
> >
> > robert.egan@aciworldwide.com 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 | michael.meyer@netcetera.ch
> > 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> --
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: maven-antrun-plugin
Posted by Andreas Rudolf <ar...@gmx.com>.
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
>
> robert.egan@aciworldwide.com 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 | michael.meyer@netcetera.ch
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-antrun-plugin
Posted by Michael Meyer <mi...@netcetera.ch>.
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
robert.egan@aciworldwide.com 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 | michael.meyer@netcetera.ch
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org