ant调用java


	  	<property name="libs_rft" value="D:\eclipse\plugins" />
	  	<property name="libs" value="${TestProject}/lib" />		
			
	  	<path id="path.id.classpath">
	  		<fileset dir="${libs_rft}">
					<include name="**/*.jar" />
				</fileset>
				<fileset dir="${libs}">
					<include name="**/*.jar" />
				</fileset>
				<pathelement location="${TestProject}" />
			</path>
	
			<echo>Start javac command-----compile ${TestProject}</echo>
	  	<javac srcdir="${TestProject}" 
	  				 classpathref="path.id.classpath" 
	  				 destdir="${TestProject}" 
	  				 excludes="com/huawei/cmc/**,script/logic/vip/**,com/huawei/m2000gui/vip/**,com/huawei/womat/vipaw/**"
	  				 debug="false"  
	  				 failonerror="true"  
	  				 memoryMaximumSize="1024m" 
	  				 fork="true"/>
 
			<java classname="script.main.EntryPoint"
					classpathref="path.id.classpath"
					failonerror="false"
					fork="true"
					maxmemory="1024m"
					output="master.txt">
				<jvmarg value="-Djava.library.path=${womat}\eclipse\plugins\com.huawei.af_1.0.0"/>
				<arg file="${TestProject}"/>
				<arg file="${TestProject1}"/>
			</java>

你可能感兴趣的:(java,ant)