|
From: Teiniker E. <tei...@us...> - 2007-01-17 17:45:29
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaRemoteComponents/facet_oneway In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17801/test/JavaRemoteComponents/facet_oneway Added Files: Test.idl Makefile build.xml Log Message: Added oneway operation test case for remote Java components. --- NEW FILE: Makefile --- DEST_DIR = xxx IDL3_DIR = ${DEST_DIR}/idl3 IDL2_DIR = ${DEST_DIR}/idl2 INCLUDE = -I${IDL3_DIR}/interface -I${IDL3_DIR}/component all: clientlib idl3: Test.idl ccmmodel -validator Test.idl ccmidl -idl3 -o ${IDL3_DIR} Test.idl local: idl3 ccmjava -iface -local -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/interface/world/*.idl ccmjava -iface -local -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/component/world/Test*.idl ccmjava -app -o ${DEST_DIR}/src ${INCLUDE} ${IDL3_DIR}/component/world/Test*.idl stubs: local ccmidl -idl2 -o ${IDL2_DIR} Test.idl ccmtools-idl -java -o ${DEST_DIR}/src-gen -I${CCMTOOLS_HOME}/idl -I${IDL2_DIR} ${IDL2_DIR}/*.idl remote: stubs ccmjava -remote -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/interface/world/*.idl ccmjava -remote -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/component/world/Test*.idl clientlib: remote ccmjava -clientlib -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/interface/world/*.idl ccmjava -clientlib -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/component/world/Test*.idl server: cp impl/TestImpl.java ${DEST_DIR}/src/world/ cp impl/TestportImpl.java ${DEST_DIR}/src/world/ ant -f ./build.xml bin/runServer client: bin/runClient clean: rm -rf ${DEST_DIR} --- NEW FILE: build.xml --- <project name="JavaClientLibTest" default="compile"> <property name="dest" location="xxx" /> <property name="idl2" location="${dest}/idl2" /> <property name="src-gen" location="${dest}/src-gen" /> <property name="src-app" location="${dest}/src" /> <property name="build" location="${dest}/build" /> <property name="src" location="src" /> <path id="compile.classpath"> <pathelement path="${java.class.path}" /> </path> <!-- Create the build directory--> <target name="init" description="" > <mkdir dir="${build}" /> </target> <!-- Compile generated Java files--> <target name="compile" depends="init" description="" > <javac srcdir="${src-gen}:${src-app}:${src}" destdir="${build}" debug="on" source="1.5" target="1.5"> <classpath refid="compile.classpath" /> </javac> </target> <!-- Clean up --> <target name="clean" description="" > <delete dir="${build}" /> </target> </project> --- NEW FILE: Test.idl --- module world { interface IFace { /** * Operations can be declared oneway if it is desirable for the caller to * send a noncritical message to an object. * Oneway operation invocations will use best-effort semantics!!! * The caller will get an immediate return and cannot know for certain * if the request has been invoked. * * For obvious reasons there can be no "out" or "inout" parameters * declared in oneway operatios. There must be no raises clause, and the * operation must have a void return type. */ oneway void foo(in string str); }; component Test { provides IFace port; }; home TestHome manages Test { }; }; // /module world |