Try to use exec task attribute failonerror="true". For more information see the manuals( http://ant.apache.org/manual/index.html ). Manual for exec task: http://ant.apache.org/manual/CoreTasks/exec.html
Please use only the Ant Users List <user@ant.apache.org> for your messages. Thanks, Alexey -----Ursprüngliche Nachricht----- Von: Yona Eilat [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. Oktober 2007 12:10 An: Stojanov Alexej Betreff: RE: Map a drive ("The ' characters around the executable and arguments are not part of the command.") Thanks. I run it and got the same log - How can I be sure that it is ok? -----Original Message----- From: Stojanov Alexej [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 09:46 To: Ant Users List Subject: AW: Map a drive ("The ' characters around the executable and arguments are not part of the command.") Hi Yona, for Windows try with that: <exec executable="net"> <arg line="use n: \\cm-web01"/> </exec> <!-- or --> <exec executable="net"> <arg line="use n: \\cm-web01 <password> /user:<user>"/> </exec> Alexey -----Ursprüngliche Nachricht----- Von: Yona Eilat [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. Oktober 2007 09:23 An: Ant Users List Betreff: Map a drive ("The ' characters around the executable and arguments are not part of the command.") Hi All, I wrote the following simple code to map a NT drive to some path: <target name="map_drive" depends="" description="--> description"> <exec executable="cmd.exe"> <arg value="NET USE N: \\cm-web01"/> </exec> </target> And once I execute it, I get the following errors: "The ' characters around the executable and arguments are not part of the command." The file attached include the full error log. Please advice. Thanks, Yona. *********************************************************************** Die Information in dieser email ist vertraulich und ist ausschließlich für den/die benannten Adressaten bestimmt. Ein Zugriff auf diese email durch andere Personen als den/die benannten Adressaten ist nicht gestattet. Sollten Sie nicht der benannte Adressat sein, löschen Sie bitte diese email. *********************************************************************** ARGE Informationssysteme in der gesetzlichen Krankenversicherung GmbH Paul-Klinger-Straße 15, 45127 Essen Amtsgericht Essen HRB 11122 Vorsitzender des Aufsichtsrates: Wolfgang Schmeinck Geschäftsführer: Frank Krause, Andreas Prenneis --------------------------------------------------------------------- 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]