Not sure if Maven has a plugin for this (I'm sure someone else will step in
with the proper Maven approach), but you can certainly run them via Ant tags
in your maven scripts.  Here's an example from a Windows environment:

...
        <exec executable="db2cmd.exe">
           <arg line="/c /w"/>
           <arg line="${db2commandfile}"/>
           <arg line="${db2args}"/>
           <arg line=">${db2logfile} 2>&amp;1"/>
        </exec>
...

Doco for the exec tag in Ant:
http://ant.apache.org/manual/CoreTasks/exec.html

Hope this helps.

Russ Jubenville, Senior Technical Consultant
Consulting Services, EDS Canada
Currently on-site at SOLCORP:
177 Lakeshore Blvd. E.  *  Toronto, ON  M5A 1B7
(416) 673-6210 ext. 5338
[EMAIL PROTECTED]


-----Original Message-----
From: Tate Austin [mailto:[EMAIL PROTECTED] 
Sent: January 24, 2005 10:13
To: users@maven.apache.org
Subject: executing scripts from Maven


I'm still new to maven, but looking through the documentation I don't see
the capabilities to execute scripts or *nix commands.  Is maven not built to
do that, is it simply something for the java-centric world or did I just not
see that capability?  We are attempting to use it as the principle part in
migrating an old application to java and I am looking to see if it can
execute some of the commands necessary for making a build happen.  I can't
really find a maven lexicon of commands aside from the plugins(or did are
the plugins the source of command
infrastructure?)

############################################################################
#########
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal
############################################################################
#########

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal
#####################################################################################

Reply via email to