EXEC args (valeur) avec les citations sur linux à partir du script Ant

shell bash:

./mimic_cmd "startDaemon()"

Correspondant Ant code:

 <exec failonerror="true" executable="/bin/mimic_cmd">
    <arg value='"startDaemon()"' />
 </exec>
  1. Ne la Fourmi de code exactement représentent la commande ci-dessus dans le shell bash? Basé sur les informations de débogage, il ressemble à ça:
 [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.

Cependant, la Fourmi code retourne et le code de sortie 1, tandis que le shell Bash commande retourne 0.

Basculement vmlauncher n'aide pas, et les chemins sont tous corrects.

La même Fourmi code fonctionne sur windows avec la sortie de débogage:

 [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.

OriginalL'auteur | 2010-03-03