From: Steve L. <st...@us...> - 2004-06-29 16:03:53
|
Update of /cvsroot/smartfrog/core/components/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19396/core/components/net Modified Files: build.xml Log Message: -New build file for components -uprated common.xml with much more commonality -removed duplicates from the build.xml files of common.xml users Index: build.xml =================================================================== RCS file: /cvsroot/smartfrog/core/components/net/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.xml 22 Jun 2004 09:02:36 -0000 1.2 --- build.xml 29 Jun 2004 16:03:14 -0000 1.3 *************** *** 31,37 **** <property file="build.properties" /> - <!-- this component keeps its test files in a different place from the - rest, for historical reasons (i.e. it is nothing but test) --> - <property name="test.src.dir" location="testcases" /> <property name="net.lib.dir" location="lib" description= "place to put third party libraries"/> --- 31,34 ---- *************** *** 47,54 **** <target name="init" depends="init-standard-output-dirs,use-smartfrog-tasks"> - <property name="target.jar" - location="${dist.lib.dir}/networkComponents.jar" /> - - <!-- the compile time path includes net--> <path id="compile.classpath"> --- 44,47 ---- *************** *** 65,117 **** </target> ! ! <!-- ========================================================== --> ! <!-- compile --> ! <!-- ========================================================== --> ! <target name="compile" ! depends="verify-smartfrog,init"> ! <depend srcdir="${src.dir}" ! destdir="${build.classes.dir}" ! cache="${build.dir}/depends" ! closure="yes"/> ! <sf-javac ! classpathref="compile.classpath" ! srcdir="${src.dir}" ! destdir="${build.classes.dir}" ! /> ! <copy-useful-files src="${src.dir}" dest="${build.classes.dir}" /> ! </target> <!-- ========================================================== --> ! <!-- use rmi to generate stubs and skeleton--> <!-- ========================================================== --> ! <target name="compile-RMI" depends="compile" ! description="create the RMI classes"> ! <sf-rmic ! base="${build.classes.dir}" ! verify="true" ! includes="**/*.class"> ! <classpath refid="compile.classpath"/> ! </sf-rmic> ! </target> <!-- ========================================================== --> <!-- create the jar --> <!-- ========================================================== --> ! <target name="dist" depends="compile" description="create the jar files"> - <jar destfile="${target.jar}" basedir="${build.classes.dir}" includes="**/*"/> - <!--copydir src = "${net.lib.dir}" dest= "${dist.lib.dir}" - includes ="**/*.jar" / --> <copy todir = "${dist.lib.dir}"> <fileset dir ="${net.lib.dir}" /> </copy> - <!--copy file ="${target.jar}" todir="${smartfrog.dist.lib.dir}"/ --> </target> - <!-- ========================================================== --> - <!-- default target --> - <!-- ========================================================== --> - <target name="default" depends="compile, compile-RMI, dist" description="default target" /> - </project> --- 58,89 ---- </target> ! <!-- ========================================================== --> ! <!-- this is an override point --> ! <!-- set the verified.ok property if everything needed is present --> ! <!-- Do Not Fail. This test is used to control conditional builds --> ! <!-- NB, set property verify.fail.message to something meaningful ! for better diagnostic messages on failure (see assert-prerequisites) ! --> <!-- ========================================================== --> ! <target name="verify-prerequisites" depends="init"> ! <available property="verified.ok" ! classname="org.apache.commons.net.SocketFactory" ! classpathref="compile.classpath" ! ignoresystemclasses="false"/> ! <property name="verify.fail.message" ! value="No apache commons.net found"/> ! </target> <!-- ========================================================== --> <!-- create the jar --> <!-- ========================================================== --> ! <target name="dist" depends="common.dist" description="create the jar files"> <copy todir = "${dist.lib.dir}"> <fileset dir ="${net.lib.dir}" /> </copy> </target> </project> |