应用:ant的rmic target实践

项目中用到的rmi,
<!-- =================================================================== -->
	<!-- rmic the  code                                            -->
	<!-- =================================================================== -->
	<target name="rmic" depends="build">
		<rmic base="${build.dest}" includes="**/*Impl.class" stubversion="1.2">
			<classpath refid="classpath" />
		</rmic>
		<move todir="${build.rmi}">
			<fileset dir="${build.dest}">
				<include name="**/rmi/**/*_Stub.class" />
			</fileset>
		</move>
		<copy todir="${build.rmi}">
			<fileset dir="${build.dest}/">
				<exclude name="**/otapush/rmi/*" />
				<include name="**/rmi/**/*.class" />
				<exclude name="**/*Impl.*,**/*List.*" />
				<include name="**/galaxy/node/campaign/cache/**/*.class"/>
				<include name="**/galaxy/node/campaign/bean/**/*.class"/>
			</fileset>
		</copy>
		<delete>
		    <fileset dir="${build.rmi}" includes="**/*Impl.*,**/*List.*"/>
		  </delete>
	</target>

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