I'm currently trying to run a Team City build task for a Java GUI Application which I'm packaging with Excelsior Jet. Jet provides a batch file which will build the executable prior to packaging. I'd like to call this from Team City so that it gets the latest code, compiles it and creates the exe.
So far it gets the code (from Perforce) and compiles it ok, and the first two times I ran it it actually worked (the part that doesn't work now). My ant file itself works fine and can be called from a command line and it will run the batch file. However when I let Team City run it, it doesn't recognise the exe that the batch file is calling (...jc is not regognized as an internal or external command).
This is the extract from the ant file, which works fine on it's own but not through Team City...
The batch file contains a call to "jc.exe", the Jet compiler. This is what Team City doesn't seem to recognise.
I've tried setting the path to the executable (in the batch file) but that doesn't help. It seems Team City itself wants to know the path, which I can't understand.
Would much appreciate any suggestions.