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
[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]