A very small portion of our codebase is some legacy Java code. I’m trying to add a new build that would invoke ant to build this project.
The first problem is that TFS doesn’t allow you to create a build that doesn’t build a .Net solution. I got around this by copying a previous build file and adding an EndToEndIteration task which is the entry point for the build.
The problem is that none of the usual build variables are populated – $(BuildDirectory), $(SolutionRoot) – all blank. This pretty much means I can’t invoke my ant task without hardcoding the paths (which I definitely can’t do).
Any ideas?
Thanks for all the answers.
In the end I resorted to including an empty solution next to the build file. This way all the variables are populated and I simply included a which did everything I wanted.