EXEC args (value) mit Anführungszeichen unter linux aus Ant-script

bash-shell:

./mimic_cmd "startDaemon()"

Entsprechenden Ant-code:

 <exec failonerror="true" executable="/bin/mimic_cmd">
    <arg value='"startDaemon()"' />
 </exec>
  1. Hat die Ameise code genau darstellen, den oben genannten Befehl in die bash-shell? Auf der Grundlage der debug-info, so sieht es aus:
 [exec] Executing '/bin/mimic_cmd' with arguments:
 [exec] '"startDaemon()"'
 [exec] 
 [exec] The ' characters around the executable and arguments are
 [exec] not part of the command.
 Execute:Java13CommandLauncher: Executing '/bin/mimic_cmd' with arguments:
 '"startDaemon()"'
 The ' characters around the executable and arguments are not part of the command.

Jedoch, die Ameise-code zurück und exit-code von 1, während der Bash-shell-Befehl " 0 " zurückgibt.

Umschalten vmlauncher nicht helfen, und die Pfade sind alle korrekt.

Den gleichen Ant code funktioniert unter windows mit der daraus resultierenden debug-Ausgabe:

 [exec] Executing 'C:\bin\mimic_cmd' with arguments:
 [exec] '"startDaemon()"'
 [exec] 
 [exec] The ' characters around the executable and arguments are
 [exec] not part of the command.
 Execute:Java13CommandLauncher: Executing 'C:\bin\mimic_cmd' with arguments:
 '"startDaemon()"'
 The ' characters around the executable and arguments are not part of the command.
InformationsquelleAutor | 2010-03-03
Schreibe einen Kommentar