[Iiop-net-commits] IIOPNet/Examples/EJBChatRoom/WebSphere_5/java Makefile,NONE,1.1 build.xml,NONE,1.
Brought to you by:
dullmann,
patrik_reali
From: <pat...@us...> - 2003-07-31 13:59:51
|
Update of /cvsroot/iiop-net/IIOPNet/Examples/EJBChatRoom/WebSphere_5/java In directory sc8-pr-cvs1:/tmp/cvs-serv20362/EJBChatRoom/WebSphere_5/java Added Files: Makefile build.xml Log Message: new demo --- NEW FILE: Makefile --- ANT_ARGS=-Dbasedir="." -Dwas_home="$(WAS_HOME)" JAVA_HOME=$(WAS_HOME)\java ANTCLASSPATH="$(JAVA_HOME)\lib\tools.jar";"$(WAS_HOME)\lib\xerces.jar";"$(WAS_HOME)\lib\j2ee.jar";"$(WAS_HOME)\lib\ant.jar" build: build-app build-idl build-deploy build-app: "$(JAVA_HOME)\bin\java" -classpath $(ANTCLASSPATH) org.apache.tools.ant.Main $(ANT_ARGS) buildApp @endlocal build-idl: "$(JAVA_HOME)\bin\java" -classpath $(ANTCLASSPATH) org.apache.tools.ant.Main $(ANT_ARGS) buildIdl @endlocal build-deploy: "$(WAS_HOME)\bin\wsadmin" -conntype none -c "$$AdminApp install bin/WAS5EJBChatroom.ear {-appname WAS5EJBChatroom -usedefaultbindings -deployejb }" clean: "$(WAS_HOME)\bin\wsadmin" -conntype none -c "$$AdminApp uninstall WAS5EJBChatroom" if exist bin del /s /q bin if exist bin rmdir /s /q bin if exist IDL del /s /q IDL if exist IDL rmdir /s /q IDL --- NEW FILE: build.xml --- <?xml version="1.0"?> <project name="WAS5EJBChatroom" default="all"> <property name="name" value="EJBChatroom (WAS5)" /> <property name="jarfile" value="bin/WAS5EJBChatroom.jar" /> <property name="earfile" value="bin/WAS5EJBChatroom.ear" /> <property name="package" value="ch/elca/iiop/demo/ejbChatroom" /> <target name="all" depends="buildApp, buildIdl"/> <target name="buildApp" depends="init, removeLast, compile, makejar, makeear"/> <!--target name="buildApp" depends="init, removeLast, compile, makejar, makeear"/ --> <target name="init"> <tstamp/> <echo message="${name}: build initialization..."/> <mkdir dir="bin"/> </target> <target name="removeLast"> <tstamp/> <delete file="${jarfile}"/> <delete file="${earfile}"/> </target> <target name="compile"> <tstamp/> <echo message="${name}: compiling..."/> <javac srcdir="." destdir="bin" deprecation="true" debug="on" classpath="${prereq.classpath}" failonerror="${failonerror}"/> </target> <target name="makejar" depends="compile"> <tstamp/> <echo message="${name}: creating jar file..."/> <jar jarfile="${jarfile}"> <fileset dir="bin/" includes="**/${package}/*.class"/> <zipfileset dir="JAR-META-INF" prefix="META-INF"/> </jar> </target> <target name="makeear" depends="makejar"> <tstamp/> <echo message="${name}: creating ear file..."/> <ear earfile="${earfile}" appxml="APP-META-INF/application.xml"> <fileset dir="bin/" includes="WAS5EJBChatroom.jar" /> </ear> </target> <target name="buildIdl" depends="compile"> <tstamp/> <echo message="${name}: creating IDL files..."/> <mkdir dir="IDL"/> <rmic base="bin/" includes="${package}/ChatroomHome.class,${package}/Chatroom.class,${package}/MessageListener.class" classpath="${prereq.classpath}" idl="true"/> <copy todir="IDL/"> <fileset dir="bin/" includes="**/*.idl"/> </copy> <delete includeEmptyDirs="true"> <fileset dir="bin/" includes="**/*.idl,**/*."/> </delete> <delete includeEmptyDirs="true"> <fileset dir="bin/javax"/> <fileset dir="bin/org"/> <fileset dir="bin/java"/> </delete> </target> </project> |