You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by david varnes <li...@varnes.net> on 2005/06/19 07:35:23 UTC

[m2] Marmalade plugin - how to use ant namespace

Question for John,

I am trying to use the marmalade ant compatibility layer.
Using the downloaded m2-alpha-2 binaries.


Questions:

* Do I need to explicitly declare a plugin dependency on
  the marmalade-ant-compat jar ?

* How do I register the ant namespace in the .mmld script?

I have tried:

<mojo xmlns="marmalade:mojo" xmlns:ant="marmalade:ant">
  ... [snip] ...
  <execute>
    <ant:echo>test echo</ant:echo>
  </execute>
</mojo>

As well as just in the ant tag:

<ant:echo xmlns:ant="marmalade:ant">test echo</ant:echo>

but neither work.  The whole tag just gets copied to
standard out.

Is there an example maven plugin anywhere that uses the
marmalade ant compatibility layer ?


thanks for any pointers
davidv

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


Re: [m2] Marmalade plugin - how to use ant namespace

Posted by david varnes <li...@varnes.net>.
Hey thanks for the prompt response John, it all makes sense.

Looking forward to the next cut, appreciate your work.

daivdv

John Casey wrote:
> The short answer is that there is currently a bug in the m2 integration
> of marmalade. Last night I figured out that the taglib discovery
> strategy used for the Ant compatibility mode is not configured when m2
> attempts to execute a marmalade-mojo. This means that the Ant
> functionality will never be recognized.
> 
> I'm going to try to get a stop-gap fix in place for the next release of
> m2 that will fix this shortcoming. Once that's done, you should be able to:
> 
> 1. declare the ant namespace using <mojo xmlns:ant="ant:ant">
> 
> 2. add a project dependency on:
> 
>     <dependency>
>       <groupId>marmalade</groupId>
>       <artifactId>marmalade-compat-ant</artifactId>
>       <version>1.0-alpha-3</version>
>     </dependency>
> 
> A couple of notes:
> 
> * The reason we're not using the "marmalade:ant" namespace for Ant
> compatibility is to leave room for native-marmalade ports of Ant tasks.
> 
> * Under the marmalade configuration used by m2, any tag that cannot be
> found is dumped to the logs for lack of anything better to do. By no
> accident, this is similar to Jelly's behavior in similar circumstances.
> 
> Sorry for the confusion.
> 
> -john
> 
> david varnes wrote:
> 
>>>Question for John,
>>>
>>>I am trying to use the marmalade ant compatibility layer.
>>>Using the downloaded m2-alpha-2 binaries.
>>>
>>>
>>>Questions:
>>>
>>>* Do I need to explicitly declare a plugin dependency on
>>>  the marmalade-ant-compat jar ?
>>>
>>>* How do I register the ant namespace in the .mmld script?
>>>
>>>I have tried:
>>>
>>><mojo xmlns="marmalade:mojo" xmlns:ant="marmalade:ant">
>>>  ... [snip] ...
>>>  <execute>
>>>    <ant:echo>test echo</ant:echo>
>>>  </execute>
>>></mojo>
>>>
>>>As well as just in the ant tag:
>>>
>>><ant:echo xmlns:ant="marmalade:ant">test echo</ant:echo>
>>>
>>>but neither work.  The whole tag just gets copied to
>>>standard out.
>>>
>>>Is there an example maven plugin anywhere that uses the
>>>marmalade ant compatibility layer ?
>>>
>>>
>>>thanks for any pointers
>>>davidv
>>>


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




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


Re: [m2] Marmalade plugin - how to use ant namespace

Posted by John Casey <jd...@commonjava.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The short answer is that there is currently a bug in the m2 integration
of marmalade. Last night I figured out that the taglib discovery
strategy used for the Ant compatibility mode is not configured when m2
attempts to execute a marmalade-mojo. This means that the Ant
functionality will never be recognized.

I'm going to try to get a stop-gap fix in place for the next release of
m2 that will fix this shortcoming. Once that's done, you should be able to:

1. declare the ant namespace using <mojo xmlns:ant="ant:ant">

2. add a project dependency on:

    <dependency>
      <groupId>marmalade</groupId>
      <artifactId>marmalade-compat-ant</artifactId>
      <version>1.0-alpha-3</version>
    </dependency>

A couple of notes:

* The reason we're not using the "marmalade:ant" namespace for Ant
compatibility is to leave room for native-marmalade ports of Ant tasks.

* Under the marmalade configuration used by m2, any tag that cannot be
found is dumped to the logs for lack of anything better to do. By no
accident, this is similar to Jelly's behavior in similar circumstances.

Sorry for the confusion.

- -john

david varnes wrote:
> Question for John,
> 
> I am trying to use the marmalade ant compatibility layer.
> Using the downloaded m2-alpha-2 binaries.
> 
> 
> Questions:
> 
> * Do I need to explicitly declare a plugin dependency on
>   the marmalade-ant-compat jar ?
> 
> * How do I register the ant namespace in the .mmld script?
> 
> I have tried:
> 
> <mojo xmlns="marmalade:mojo" xmlns:ant="marmalade:ant">
>   ... [snip] ...
>   <execute>
>     <ant:echo>test echo</ant:echo>
>   </execute>
> </mojo>
> 
> As well as just in the ant tag:
> 
> <ant:echo xmlns:ant="marmalade:ant">test echo</ant:echo>
> 
> but neither work.  The whole tag just gets copied to
> standard out.
> 
> Is there an example maven plugin anywhere that uses the
> marmalade ant compatibility layer ?
> 
> 
> thanks for any pointers
> davidv
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCtaqOK3h2CZwO/4URAo1SAJ0anX3lAm+vDXqDX2KZuoJwAPth6QCfdMLg
Yq5M3LvGEOEwArT9PIe9wKU=
=R380
-----END PGP SIGNATURE-----

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