Because Maven supports Ant, you just use the Ant <exec> task.  Here is
an example of calling netsvc.exe on windows:

        <exec dir="." executable="${plugin.resources}/netsvc.exe"
os="Windows 2003,Windows 2000,Windows XP" >
                        <arg line="tomcat-${pom.name}
\\${upstate.testserver} /stop"/>
        </exec> 

Eric

-----Original Message-----
From: Tate Austin [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 24, 2005 10:13 AM
To: [email protected]
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?)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to