From: Kumaravel G. <kum...@us...> - 2005-02-15 11:19:49
|
Update of /cvsroot/smartfrog/core/components/arithmetic-testharness In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3939 Modified Files: build.xml Added Files: build.example.properties buildRelease.xml releaseBuild.xml Log Message: Build file changed to use common.xml and proper dir structure (dummy buildrelease and releasebuild files are added) --- NEW FILE: build.example.properties --- # # These properties override properties defined in the build file. # As these properties are set before the environment is read, they # cannot make use of these. but htey may override the environmental # settings. # example: # smartfrog.home=/cvs_smartfrog/core/smartfrog/dist --- NEW FILE: releaseBuild.xml --- <?xml version="1.0"?> <!-- /** (C) Copyright 1998-2004 Hewlett-Packard Development Company, LP This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For more information: www.smartfrog.org */ --> <!DOCTYPE project [ <!ENTITY security SYSTEM "private/buildSecurity.xml"> ]> <!-- =========================================================================== Introduction ============ To Be Written Installing the build tools ========================== To Be Written Build targets ============= These are the meaningful targets for this build file: - build - jdocs --> <project name="Arithmetic-testharnessDist" default="help" basedir="."> <!-- =================================================================== --> <!-- Initialization target --> <!-- =================================================================== --> <target name="init"> <property name="Name" value="Emailer Component"/> <property name="name" value="(C) Copyright 1998-2003 Hewlett-Packard Development Company, LP"/> <property name="version" value="DIST"/> <property name="Version" value="@version"/> <property name="year" value=""/> <echo message=""/> <echo message="==================================================================="/> <echo message="= ${Name} ${version}"/> <echo message="= ${name} "/> <echo message="==================================================================="/> </target> </project> <!-- End of file --> --- NEW FILE: buildRelease.xml --- <?xml version="1.0"?> <!-- /** (C) Copyright 1998-2004 Hewlett-Packard Development Company, LP This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For more information: www.smartfrog.org */ --> <!DOCTYPE project [ <!ENTITY security SYSTEM "./private/buildSecurity.xml"> ]> <!-- =========================================================================== Introduction ============ To use: ant -f buildRelease release Installing the build tools ========================== To Be Written --> <project name="arithmetic-testharness" default="process" basedir="."> <property file="build.properties" /> <property name="root.dir" location="../../" /> <!-- Import common stuff --> <!--available file="../../common.xml" property="root.dir" value="../.."/--> <import file="${root.dir}/common.xml"/> <property name="is.component" value="true" /> </project> <!-- End of file --> Index: build.xml =================================================================== RCS file: /cvsroot/smartfrog/core/components/arithmetic-testharness/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.xml 15 Jul 2004 13:11:28 -0000 1.3 --- build.xml 15 Feb 2005 11:19:38 -0000 1.4 *************** *** 28,61 **** </description> ! <!-- override point --> <property file="build.properties" /> ! <!-- <property name="arithmetic.testharness.lib.dir" location="lib" /> ! --> ! ! <property name="root.dir" location="../.." /> ! <!-- Import common stuff --> <import file="${root.dir}/common.xml"/> ! <!-- ========================================================== --> <!-- ========================================================== --> <target name="init" depends="init-standard-output-dirs,use-smartfrog-tasks"> ! ! <!-- the compile time path includes axis--> ! <!-- <path id="compile.classpath"> ! <path refid="smartfrog.classpath"/> ! <fileset dir="${arithmetic.testharness.lib.dir}"> ! <include name="**/*.jar"/> ! </fileset> ! </path> ! <path id="run.classpath"> ! <path refid="compile.classpath"/> ! <path location="${target.jar}" /> ! </path> ! --> ! </target> <!-- ========================================================== --> --- 28,101 ---- </description> ! ! ! <!-- override point --> <property file="build.properties" /> + <property name="root.dir" location="../../" /> ! <!-- Import common stuff --> ! <!--available file="../../common.xml" property="root.dir" value="../.."/--> <import file="${root.dir}/common.xml"/> + + <property name="is.component" value="true" /> + ! <property name="Name.System" value="arithmetic-testHarness"/> <!-- ========================================================== --> + <!-- pre-dist --> <!-- ========================================================== --> <target name="init" depends="init-standard-output-dirs,use-smartfrog-tasks"> ! <tstamp/> ! <property name="Name.Company" value="(C) Copyright 1998-2004 Hewlett-Packard Development Company, LP"/> ! <property name="version" value="smartfrog components"/> ! <property name="Version" value="@version"/> ! <property name="year" value="2005"/> ! ! <echo message=""/> ! <echo message="==================================================================="/> ! <echo message="= ${Name.System} ${version}"/> ! <echo message="= ${Name.Company} "/> ! <echo message="==================================================================="/> ! <echo message=""/> ! <echo message="(${ant.version})"/> ! </target> ! ! ! <!-- =================================================================== --> ! <!-- JDocs --> ! <!-- =================================================================== --> ! <target name="jdocs" depends="init" description="Generates the API documentation"> ! <!-- Java Docs for all --> ! <echo message=""/> ! <echo message="------------------------------------------------------------------------"/> ! <echo message=" Creating Java Docs for ${Name.System} ${version} [${dist.jdocs.dir}]"/> ! <echo message="------------------------------------------------------------------------"/> ! <mkdir dir="${dist.jdocs.dir}"/> ! <javadoc packagenames="org.smartfrog.*" ! sourcepath="${src.dir}" ! destdir="${dist.jdocs.dir}" ! author="true" ! version="true" ! use="true" ! windowtitle="${Name.System}" ! Header="${Name.System} ${Version}" ! Footer="${Name.System} ${version} ${Version}" ! doctitle="${Name.System}" ! bottom="${Name.Company}" ! source="1.4" ! > ! <group title="SmartFrog Packages" packages="org.smartfrog.*"/> ! <classpath> ! <fileset dir="${dist.lib.dir}"> ! <include name="**/*.jar"/> ! </fileset> ! </classpath> ! </javadoc> ! ! </target> ! ! <!-- ========================================================== --> *************** *** 83,96 **** value="No velocity or beanshell found"/> </target> ! <!-- ========================================================== --> <!-- create the jar --> <!-- ========================================================== --> ! <target name="dist" depends="common.dist" ! description="create the jar files"> ! <!--copy file ="${target.jar}" todir="${smartfrog.dist.lib.dir}"/ --> ! <copy-useful-files src="${lib.dir}" ! dest="${dist.lib.dir}" pattern ="**/*.jar"/> ! </target> --- 123,169 ---- value="No velocity or beanshell found"/> </target> ! ! ! ! ! <!-- ========================================================== --> ! <!-- clean --> <!-- ========================================================== --> + + <target name="clean" depends="common.clean" description="clean up build ,dist and releases" > + <delete dir="releases" /> + <delete dir="test" /> + </target> + + + + <!-- ========================================================== --> <!-- create the jar --> <!-- ========================================================== --> ! <target name="dist" depends="common.dist,verify-prerequisites,jdocs" description="create the jar files"> ! <copy todir = "${dist.lib.dir}"> ! <fileset dir ="${lib.dir}" /> ! </copy> ! ! <copy todir = "${dist.bin.dir}"> ! <fileset dir ="${bin.dir}" /> ! </copy> ! <copy todir = "${dist.doc.dir}"> ! <fileset dir ="${doc.dir}" /> ! </copy> ! <copy todir = "${dist.src.dir}"> ! <fileset dir ="${src.dir}"> ! <include name="**/examples/**"/> ! </fileset> ! </copy> ! <copy tofile="${dist.dir}/build.xml" file="releaseBuild.xml"/> ! <copy tofile="${dist.dir}/build.example.properties" file="build.example.properties"/> ! </target> ! ! ! ! ! ! |