public void antBuild() {
		consoleLogger = new DefaultLogger() {
			@Override
			public void buildFinished(BuildEvent event) {
				super.buildFinished(event);
				proBuildFinished();
				if(AutoBuilder.this.mIAutoBuild!=null)
				{
					AutoBuilder.this.mIAutoBuild.buildFinished();
				}
			}

			@Override
			public void buildStarted(BuildEvent event) {
				// TODO Auto-generated method stub
				super.buildStarted(event);
				
				if(AutoBuilder.this.mIAutoBuild!=null)
				{
					AutoBuilder.this.mIAutoBuild.buildStarted();
				}
			}
			
		};

		 PrintStream out=new PrintStream(new ByteArrayOutputStream())
		 {
			@Override
			public void write(byte[] buf, int off, int len) {
				// TODO Auto-generated method stub
				super.write(buf, off, len);
				
				if(AutoBuilder.this.mIAutoBuild!=null)
				{
					final String message = new String(buf, off, len);
					AutoBuilder.this.mIAutoBuild.printLog(message);
				}
			}
			 
		 };
        consoleLogger.setErrorPrintStream(out);
        consoleLogger.setOutputPrintStream(out);
        consoleLogger.setMessageOutputLevel(Project.MSG_INFO);
		
		preAutoBuild();

        Project p = new Project();
        p.setProperty("java.home", propertyBean.getJavaDir());
        p.addBuildListener(consoleLogger);
	    try {
	    	p.fireBuildStarted();
	    	p.init();
	    	File buildFile = new File(propertyBean.getProjectDir() + "\\build.xml");
	    	ProjectHelper.configureProject(p, buildFile);
	    	String defaultTarget = p.getDefaultTarget();
	    	p.executeTarget(defaultTarget);
	    	p.fireBuildFinished(null);
	    } catch (BuildException e) {
	    	p.fireBuildFinished(e);
	    }
	    
		if(AutoBuilder.this.mIAutoBuild!=null)
		{
			AutoBuilder.this.mIAutoBuild.printLog(out.toString());
		}
	}