Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.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
Ant构建在TFS 2015中失败_Ant_Tfs_Tfsbuild_Tfs 2015 - Fatal编程技术网

Ant构建在TFS 2015中失败

Ant构建在TFS 2015中失败,ant,tfs,tfsbuild,tfs-2015,Ant,Tfs,Tfsbuild,Tfs 2015,我有一个java项目,我将使用运行TFS 2015的构建代理来构建它。我安装了JDK和ANT,还设置了JAVA_HOME和ANT_HOME系统变量。但是,由于以下错误消息,生成过程失败 Unable to find Ant. Verify ANT_HOME is set and pointing to a valid Ant installation on the build agent: http://ant.apache.org/manual/install.html. 根据说明,我还应该

我有一个java项目,我将使用运行TFS 2015的构建代理来构建它。我安装了JDK和ANT,还设置了JAVA_HOME和ANT_HOME系统变量。但是,由于以下错误消息,生成过程失败

Unable to find Ant. Verify ANT_HOME is set and pointing to a valid Ant installation on the build agent: http://ant.apache.org/manual/install.html.
根据说明,我还应该安装TFS build extensions,但我假设TFS 2015不需要,并且默认情况下随附


我能找出问题所在

确保运行tfs构建过程的用户在其
%PATH%
上有
%ANT\u HOME%\bin
设置
ANT\u HOME
是必要的,但还不够

听起来ant可执行文件没有打开path@DBug:是的,我的意思是我还将ANT_PATH/bin添加到PATH变量中。我可以从测试代理运行ant命令,它可以运行。它是Windows Server 2012 R2。不熟悉tfs,但我认为我建议使用明显的。SORRYS%ANT\U HOME%\lib集在CLASSPATH系统变量中?%PATH%\bin已在系统变量下的路径中。其他用户也可以访问Ir,对吗?您想添加%PATH%=%ANT\u HOME%\b对不起,我的意思是%ANT\u HOME%/bin存在于系统变量下。