⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rmibuild.xml.svn-base

📁 rmi server web service for a stock track systerm
💻 SVN-BASE
字号:
<?xml version="1.0" ?>
<!DOCTYPE project [
        <!ENTITY properties SYSTEM "file:../../../xmls/properties.xml">
<!ENTITY paths  SYSTEM "file:../../../xmls/path_refs.xml">
<!ENTITY taskdefs SYSTEM "file:../../../xmls/taskdefs.xml">
<!ENTITY taskdefs_post_compile SYSTEM "file:../../../xmls/taskdefs_post_compile.xml">
<!ENTITY targets SYSTEM "file:../../../xmls/targets.xml">
]>

<!-- ===================================================================
<description>
   To generate wsdl and Axis implementation classes

Notes:
   This is a build file for use with the Jakarta Ant build tool.

Prerequisites:

   jakarta-ant from http://jakarta.apache.org

Build Instructions:
	Please startup Tomcat server with Axis first.
	
   To deploy
        deploy the Service
   To undeploy
        undeploy the Service

Author:
  Lionel Wang lionel.wang@163.com

</description>
==================================================================== -->

<project default="jar" basedir="." name="StockTrackerSystem RMI deployer">
	<property environment="myenv" />
	<property name="axis.home" location="${myenv.CATALINA_HOME}/webapps/axis" />
	<property name="axis.lib" location="${axis.home}/WEB-INF/lib" />
	<property name="project.root" location="." />
	<property name="rmibuild" location="${project.root}\rmibuild" />

	<property name="src.dir" location="${project.root}/src" />
	<property name="bin.dir" location="${project.root}/WebContent/WEB-INF/classes" />
	<property name="project.lib" location="${project.root}/WebContent/WEB-INF/lib" />

	<path id="classpath">
		<fileset dir="${axis.lib}">
			<include name="**/*.jar" />
		</fileset>
		<fileset dir="${project.lib}">
			<include name="**/*.jar" />
		</fileset>
		<pathelement path="${bin.dir}" />
	</path>

	<target name="compile">
		<antcall target="clean"></antcall>
		<!-- Compile the code -->
		<javac srcdir="${src.dir}" destdir="${bin.dir}" nowarn="yes" debug="no">
			<classpath>
				<path refid="classpath" />
			</classpath>
			<include name="**/*.java" />
		</javac>
	</target>

	<target name="rmic" depends="compile">
		<!--
		<rmic classname="ase.assignment.sts.rmi.impl.CustomerHandlerRMIImpl" base="${bin.dir}" stubversion="1.2" classpathref="classpath" />
		<rmic classname="ase.assignment.sts.rmi.impl.SampleServerImpl" base="${bin.dir}" classpathref="classpath" stubversion="1.2" />
					sourcebase="g:/"
		-->

		<rmic stubversion="1.2" classpathref="classpath" 
			base="${bin.dir}" 
			includes="**/rmi/server/*Impl.class" />
	</target>

	<target name="jar" depends="rmic">
		<copy todir="${rmibuild}/classes" overwrite="yes">
			<fileset dir="${bin.dir}">
				<include name="**/*.class" />
				<exclude name="**/test/*.class" />
			</fileset>
		</copy>
				
		<jar jarfile="${rmibuild}\rmiserver.jar" basedir="${bin.dir}" />
	</target>

	<target name="server" depends="jar">
		<exec executable="cmd" spawn="true">
			<arg line="/c start rmiregistry" />
		</exec>

		<java classname="ase.assignment.sts.rmi.impl.RMIServerStarter" classpathref="classpath">
			<jvmarg value="-Djava.security.policy=rmiserver.policy" />
			<jvmarg value="-Djava.rmi.server.codebase=${bin.dir}\" />
		</java>

		<!--
		<rmic classname="ase.assignment.sts.rmi.impl.SampleServerImpl" base="${bin.dir}" classpathref="classpath" stubversion="1.2" />
		
		<exec executable="cmd" spawn="true">
			 <arg line="/c start rmiregistry" />
		</exec>
			
		<echo>${basedir}</echo>
		<java classname="ase.assignment.sts.rmi.impl.SampleServerImpl" classpathref="classpath" classpath="${bin.dir}\ase\assignment\sts\rmi\impl">
			<jvmarg value="-Djava.security.policy=rmiserver.policy" />
			<jvmarg value="-Djava.rmi.server.codebase=${bin.dir}\" />
		</java>
		-->
	</target>

	<target name="clean">
		<delete file="${rmibuild}\rmiserver.jar" />
		<delete dir="${rmibuild}\ase" />
	</target>

</project>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -