My project use cygwin for compile.
I start cygwin, then run script that set all environment variables (CLASSPATH, ANT_HOME ... etc) after that script calls ant to compile project and that is all.
I tryed to compile my project with TeamCity -> Build from command line. I wrote a script, that calls cygwin and run there commands to compile project as usuall.
But after setting environment variables and trying to run build target, I receive error on the begining of build.xml parsing:
[09:42:26]: C:\p4\phoenix\branch04\build\build.xml:64: taskdef class com.sun.tools.javamake.ant.JavaMake cannot be found
[09:42:26]: Total time: 0 seconds
[09:42:26]: [32mSYSTEM@SFO-3VDZOBA-V [33m/p4/phoenix/2011.04/build [0m
[09:42:26]: $ logout
[09:42:26]: Process exited with code 1
63: <!-- same as antcall but without the overhead nor the weird property manipulation -->
64: <taskdef name="javamake" classname="com.sun.tools.javamake.ant.JavaMake"/>
65: <taskdef name="call" classname="ise.antelope.tasks.Call"/>
When it runs not with TeamCity all is fine. But when I use TeamCity I get this error.
Also, when I run ant in debug mode, in cygwin I get this message:Class com.sun.tools.javamake.ant.JavaMake loaded from parent loader (parentFirst)
So, I supose, that TeamCity try's to load JavaMake from his environment, but not from my (that was set in set environments script).
I don't know what should I do, or how to add JavaMake to TeamCity environment (adding JavaMake's librarys in c:\BuildAgent\lib\ didn't help).
Windows XP SP2, TeamCity Professional Version 6.0.3 (build 15925)