简体   繁体   English

使用Java和Eclipse构建TFS

[英]TFS Builds with Java and Eclipse

I need to use TFS and Eclipse (Java Ant Project). 我需要使用TFS和Eclipse(Java Ant项目)。

The TFS is offered by Microsoft ( http://tfs.visualstudio.com ) and I followed this instructions http://tfs.visualstudio.com/en-us/learn/build/setup-ci-build-in-eclipse/ . TFS由Microsoft( http://tfs.visualstudio.com )提供,我遵循以下说明http://tfs.visualstudio.com/en-us/learn/build/setup-ci-build-in-eclipse/

But the builds always failed by don't show any error. 但是构建始终失败,因为没有显示任何错误。 With .NET project when a build failed the error is showed. 对于.NET项目,当构建失败时,将显示错误。

The information that I've in log is: 我登录的信息是:

Overall Build Process 总体构建过程

Get the Build 获取构建

Update Build Number 更新内部版本号

Run On Agent (reserved build agent Hosted Build Agent) 运行代理(保留的构建代理托管的构建代理)

Get the Build Directory 获取构建目录

If Not String.IsNullOrEmpty(ConfigurationFolderPath) 如果不是String.IsNullOrEmpty(ConfigurationFolderPath)

Run TfsBuild for Configuration Folder 为配置文件夹运行TfsBuild

Getting sources 获取资源

Labeling sources 标签来源

Running Ant 奔跑的蚂蚁

C:\\a\\src\\Tools\\java\\bin\\java.exe -jar C:\\a\\src\\Tools\\ant\\lib\\ant-launcher.jar -buildfile C:\\a\\src\\src\\projectBuilder.xml -DBinariesRoot=C:\\a\\bin -DBuildDefinitionName="Hello World CI" -DBuildDefinitionUri=vstfs:///Build/Definition/2 -DBuildDirectory=C:\\a -DBuildNumber="Hello World CI_20130422.15" -DDropLocation=$/HW/Drops -DLogLocation= -DSourceGetVersion=C90 -DTestResultsRoot=C:\\a\\TestResults -DTeamProject=HW -DWorkspaceName=WIN-50B0FC22RNF_2_40 -DWorkspaceOwner="LOCAL AUTHORITY\\Elastic Build (remotemonitoring)" C:\\ a \\ src \\ Tools \\ java \\ bin \\ java.exe -jar C:\\ a \\ src \\ Tools \\ ant \\ lib \\ ant-launcher.jar -buildfile C:\\ a \\ src \\ src \\ projectBuilder.xml -DBinariesRoot = C:\\ a \\ bin -DBuildDefinitionName =“ Hello World CI” -DBuildDefinitionUri = vstfs:/// Build / Definition / 2 -DBuildDirectory = C:\\ a -DBuildNumber =“ Hello World CI_20130422.15” -DDropLocation = $ / HW / Drops -DLogLocation = -DSourceGetVersion = C90 -DTestResultsRoot = C:\\ a \\ TestResults -DTeamProject = HW -DWorkspaceName = WIN-50B0FC22RNF_2_40 -DWorkspaceOwner =“ LOCAL AUTHORITY \\ Elastic Build(remotemonitoring)”

Built $/HW/HW/projectBuilder.xml for default targets. 为默认目标构建$ / HW / HW / projectBuilder.xml。

Generating list of changesets and updating work items 生成变更集列表并更新工作项

If CompilationStatus = Unknown 如果CompilationStatus =未知

If TestStatus = Unknown 如果TestStatus =未知

Set TestStatus to Succeeded 将TestStatus设置为Succeeded

Anyone can use TFS with Eclipse, Java and Ant? 任何人都可以将TFS与Eclipse,Java和Ant一起使用吗?

Thanks in advance 提前致谢

To resolve this question: I uploaded the compiled jar file... Apparently the build agent can't overwrite this... 解决此问题的方法:我上传了已编译的jar文件。显然,构建代理无法覆盖此文件。

Solution: delete the jar file, and the build work! 解决方案:删除jar文件,然后进行构建!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM