there is one more problem when i put srcdir="." then C:/>ant utility at commont prompt try to compile all the file existing inside any perticular folder and if it gets error then compilation get failed.
Wow, a srcdir of '.' and a basedir of c:\ is bound to cause interesting results! If this is in the javac task, like I suspect, Ant will compile every .java file it finds on your C: drive!
You should, instead, create a directory and place everything for your app into that directory, including the build.xml file. Then cd to that directory before running ant!