I have a particular Windows problem that I don't seem to be able to solve.
I have written an ant build.xml wrapper script that calls targets from subprojects' build.xmls. The wrapper script target builds and deploys war files to a Tomcat 5.5 installation on another machine. First it execs "net stop Apache Tomcat", then it builds/deploys the war to the remote computer, then it starts tomcat.
I have mapped drive H on the build agent to be:
]]>\C$\Program Files\Apache Software Foundation\Tomcat 5.5. I need to set a variable called tomcat.home to the target Tomcat installation where it will then copy the war file to %tomcat.home%\webapps. This works perfectly on a command line when I add "-Dtomcat.home=H:" to the ant command. I have also added this command line argument to the "Additional Ant command line parameters" in the Runner tab of the TeamCity build. But, TeamCity does not see the drive letter and fails. Any Windows expert (I'm more of a 'nix guy) have any suggestions?