简体   繁体   中英

TFS Builds with Java and Eclipse

I need to use TFS and Eclipse (Java Ant Project).

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/ .

But the builds always failed by don't show any error. With .NET project when a build failed the error is showed.

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)

Run TfsBuild for Configuration Folder

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)"

Built $/HW/HW/projectBuilder.xml for default targets.

Generating list of changesets and updating work items

If CompilationStatus = Unknown

If TestStatus = Unknown

Set TestStatus to Succeeded

Anyone can use TFS with Eclipse, Java and Ant?

Thanks in advance

To resolve this question: I uploaded the compiled jar file... Apparently the build agent can't overwrite this...

Solution: delete the jar file, and the build work!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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