如何写ant脚本在Linux中的无业游民了 [英] How to write ant script in Linux for vagrant up

查看:101
本文介绍了如何写ant脚本在Linux中的无业游民了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着写一个无业游民了一个ant脚本,但由于某些原因,它只是没有了参数得到无业游民的命令,我把它写这样

I try to write a ant script for vagrant up, but for some reason it only get the vagrant command without the up parameter, I write it this way

<arg line="-c vagrant up" />

有人可以帮助我了解为什么它没有得到命令和如何解决呢?

can someone help me understand why it doesn't get the up command and how to solve it?

推荐答案

尝试把每个单词到一个单独的 ARG

Try putting each word into a separate arg:

<arg value="-c"/>
<arg value="vagrant"/>
<arg value="up"/>

这往往比工作在行更好变体。

请参阅命令行参数的蚂蚁手册的:

强烈建议,以避免版本可能时。
  蚂蚁会尝试在某种程度上类似于一个命令行分裂
  (UNIX)外壳会做,但可以创造的东西,这是非常不同的
  从你所期望的在某些情况下。

It is highly recommended to avoid the line version when possible. Ant will try to split the command line in a way similar to what a (Unix) shell would do, but may create something that is very different from what you expect under some circumstances.

这篇关于如何写ant脚本在Linux中的无业游民了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆