0

第一次面对这个问题,现在已经绕着它跑了一段时间。

运行 ant.cmd 时出现以下错误

C:\>ant.cmd

C:\>/*
'/*' is not recognized as an internal or external command,
operable program or batch file.

C:\>Licensed to the Apache Software Foundation (ASF) under one or more
'Licensed' is not recognized as an internal or external command,
operable program or batch file.

C:\>contributor license agreements.  See the NOTICE file distributed with
'contributor' is not recognized as an internal or external command,
operable program or batch file.

C:\>this work for additional information regarding copyright ownership.
'this' is not recognized as an internal or external command,
operable program or batch file.

C:\>The ASF licenses this file to You under the Apache License, Version 2.0
'The' is not recognized as an internal or external command,
operable program or batch file.
you was unexpected at this time.       

C:\>   (the "License"); you may not use this file except in compliance with

C:\>
  1. 尝试将文件设置为 ANSI 编码仍然相同的错误
  2. 环境变量的所有设置都是正确的。
  3. 用户 ant1.7、ant1.8.2 和现在的 ant1.9.2,所有版本中的相同问题

有什么想法吗?

4

1 回答 1

0

您不应该运行ant.cmd,该脚本适用于 OS/2,而不是 Windows。

你应该跑ant.bat。或者只是ant,如果 ant 的 bin\ 目录在您的 PATH 中,您可能会在此处找到更多信息

于 2013-07-16T14:05:22.927 回答