You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by he...@dnbnor.no on 2006/03/06 13:52:15 UTC
[M2] Mojo plugin - acessing jar'd batch file
Hi
I am working on a plugin (Mojo) where one of the resources is a batchfile. When I run the plugin I want to be able to execute the batch file from the mojo antscript. Anybody have any idea of how to reference the (jar'd) batch file.
Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email.
This email message has been virus checked by the virus programs used
in the DnB NOR Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Re: [M2] Mojo plugin - acessing jar'd batch file
Posted by Raphaël Piéroni <ra...@gmail.com>.
Hi Hermod,
The axistools plugin at mojo read a wsdl file in a jar file by using
JarUrlConnection.
The axistools plugin can be checkouted at mojo-sandbox (mojo.codehaus.org)
Hope this will help.
Regards,
Raphaël
hermod.opstvedt@dnbnor.no a écrit :
> Hi
>
> I am working on a plugin (Mojo) where one of the resources is a batchfile. When I run the plugin I want to be able to execute the batch file from the mojo antscript. Anybody have any idea of how to reference the (jar'd) batch file.
>
> Hermod
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2] Mojo plugin - acessing jar'd batch file
Posted by Martin van der Plas <mv...@imc.nl>.
Hi,
You can register the jar'd batch file as an attached artifact.
Use the assembly plugin to package the batch file as a jar.
Refere to this attached artifact as:
...
<dependency>
<groupId>aGroupId</groupId>
<artifactId>anArtifactId</artifactId>
<classifier>batchfile</classifier>
</dependency>
...
The classifier element does the trick. Here you use the id as specified
in the assembly desciptor. See also
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
The dependency loads the file in your localRepository. You certainly
need another plugin to use this dependency in the dependend project.
Check the antrun plugin.
Succes
Martin
hermod.opstvedt@dnbnor.no wrote:
>Hi
>
>I am working on a plugin (Mojo) where one of the resources is a batchfile. When I run the plugin I want to be able to execute the batch file from the mojo antscript. Anybody have any idea of how to reference the (jar'd) batch file.
>
>Hermod
>
>
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>This email with attachments is solely for the use of the individual or
>entity to whom it is addressed. Please also be aware that the DnB NOR Group
>cannot accept any payment orders or other legally binding correspondence with
>customers as a part of an email.
>
>This email message has been virus checked by the virus programs used
>in the DnB NOR Group.
>
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org