且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

崇高文本2 Ant构建目标:[错误2]系统找不到指定的文件

更新时间:2023-11-16 16:35:22

该sublimetext buildsystems文档页面告诉你如何才能使一个特例来执行的ant.bat,而不是在Windows蚁族。请参见特定于平台的选项

The sublimetext buildsystems documentation page show how you can make a special case to execute "ant.bat" instead of "ant" on Windows. See the section "Platform-specific Options":

窗户,OSX和Linux的元素让你提供特定于平台的
  在构建系统数据。这里有一个例子:

The windows, osx and linux elements let you provide platform-specific data in the build system. Here’s an example:

{
    "cmd": ["ant"],
    "file_regex": "^ *\\[javac\\] (.+):([0-9]+):() (.*)$",
    "working_dir": "${project_path:${folder}}",
    "selector": "source.java",

    "windows":
    {
        "cmd": ["ant.bat"]
    } 
}

在这种情况下,蚂蚁将是除Windows平台上的每个执行,
  其中,ant.bat将被用来代替。

In this case, ant will be executed for every platform except Windows, where ant.bat will be used instead.

帮助吗?