add batch file and ant compile method.