Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Windows中配置Sublime Text 2 ANT构建脚本?_Windows_Ant_Sublimetext2 - Fatal编程技术网

如何在Windows中配置Sublime Text 2 ANT构建脚本?

如何在Windows中配置Sublime Text 2 ANT构建脚本?,windows,ant,sublimetext2,Windows,Ant,Sublimetext2,我通常在工作时在Mac电脑上使用升华文本,这很好。但我正在尝试在家里用我的Windows PC设置Sublime文本,并且在尝试运行构建脚本时不断出错 这是我的项目文件: { "folders": [ { "path": "my-folder" } ], "build_systems": [ { "name": "Ant", "cmd":

我通常在工作时在Mac电脑上使用升华文本,这很好。但我正在尝试在家里用我的Windows PC设置Sublime文本,并且在尝试运行构建脚本时不断出错

这是我的项目文件:

{
    "folders":
    [
        {
            "path": "my-folder"
        }
    ],
    "build_systems":
    [
        {
            "name": "Ant",
            "cmd": ["ant"],
            "working_dir": "${project_path}"
        }
    ]
}
下面是我得到的错误:

[Error 2] The system cannot find the file specified
[cmd:  [u'ant']]
[dir:  D:\Users\****\Projects]
[path: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\]
[Finished]

好像找不到蚂蚁?但这不是与崇高的文本捆绑在一起吗?

在命令行中键入“ant”。如果它抛出一个错误,那么ant就不在您的路径中。您需要安装它(),然后将其添加到PATH环境变量中


我使用Sublime,但我不知道它是否默认打包了Ant。如果需要,只需将二进制文件的位置添加到系统路径中。

谢谢。蚂蚁似乎是未定义的。我正在按照这些说明进行操作,但是我如何“将它添加到我的PATH环境变量中”?不管怎样,我明白了你的意思。刚刚进行了一次构建。谢谢