Hi Adrian. Are you searching something like :
<exec dir="." executable="${maven.ssh.executable}" failonerror="true"> <arg line="${maven.ssh.args} -l ${siteUsername} ${siteAddress} 'cd ${maven.homepage} && ${maven.site.gunzip.executable} ${maven.final.name}-site.tar.gz && ${maven.site.tar.executable} ${maven.site.tar.options} ${maven.final.name}-site.tar && chmod ${maven.site.chmod.options} ${maven.site.chmod.mode} * . && rm ${maven.final.name}-site.tar'"/> </exec> You can take a look at the exec task in ant. Arnaud > -----Message d'origine----- > De : Adrian Zaharie [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 12 octobre 2005 21:43 > À : users@maven.apache.org; dev@maven.apache.org > Objet : run executable with args from maven.xml > > I'm trying to run an executable (windows, script on linux) > via maven.xml; program needs to take command line arguments; > > I'm looking for an example on how to do this; could not find > anything in any docs, or examples except on calling built in > functionality, or classes; > > could anyone send me an example or pointer to an example doing this > > here is what I need to do in my program > 1. set some variables, and to program to execute 2. run the program > > thank you > > Adrian > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]