[Jpeergen-cvs] dev build.properties.sample,NONE,1.1 build.xml,NONE,1.1
Status: Beta
Brought to you by:
pspeed
|
From: <ps...@us...> - 2004-08-12 07:52:15
|
Update of /cvsroot/jpeergen/dev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17098 Added Files: build.properties.sample build.xml Log Message: Checking in initial build environment. --- NEW FILE: build.properties.sample --- # ----------------------------------------------------------------------------- # build.properties # # Defines local build properties for customizing the environment. # ----------------------------------------------------------------------------- # ----- Compile Control Flags ----- javac.debug=on #javac.deprecation=on javac.optimize=on # ------ Javah control flags ----- javah.verbose=on # ------ Additional build-specific stuff ---- #dist.install=../../someproject/dev/lib --- NEW FILE: build.xml --- <project name="JPeerGen Development" default="build" basedir="."> <!-- See "build.properties.sample" in the top level directory for all --> <!-- property values you must customize for successful building!!! --> <property file="build.properties"/> <property file="${user.home}/build.properties"/> <!-- set global properties for this build --> <property name="src" value="src"/> <property name="src.java" value="${src}/java" /> <property name="build" value="build"/> <property name="build.classes" value="${build}/classes" /> <property name="dist" value="dist"/> <property name="dist.jpeergen" value="${dist}/jpeergen"/> <property name="doc" value="${basedir}/doc" /> <property name="doc.javadoc" value="${doc}/javadoc" /> <!-- Construct a build classpath pointing to related libs and directories other than build/classes. --> <path id="build.classpath"> <pathelement location="build/classes"/> <!-- Pull in any jars files that are in the relative lib directory. --> <fileset dir="lib"> <include name="**/*.jar" /> </fileset> </path> <property name="build.classpath" refid="build.classpath" /> <!-- Targets for creating some convenience scripts for setting up an environment. --> <target name="setclasspath.cmd" > <echo message="Creating setclasspath.cmd to set the CLASSPATH environment variable." /> <copy file="template/setclasspath.cmd.template" tofile="setclasspath.cmd" overwrite="yes" /> <replace file="setclasspath.cmd" token="@build.classpath@" value="${build.classpath}" /> </target> <target name="setclasspath.cmd.relative" > <echo message="Creating setclasspath.cmd to set the CLASSPATH environment variable." /> <copy file="template/setclasspath.cmd.template" tofile="setclasspath.cmd" overwrite="yes" /> <!--<echo message="lib path: ${lib.path}" /> --> <pathconvert targetos="windows" property="relative.classpath" refid="build.classpath"> <map from="${basedir}" to="." /> </pathconvert> <replace file="setclasspath.cmd" token="@build.classpath@" value="${relative.classpath}" /> </target> <target name="setclasspath.sh" > <echo message="Creating setclasspath.sh to set the CLASSPATH environment variable." /> <copy file="template/setclasspath.sh.template" tofile="setclasspath.sh" overwrite="yes" /> <replace file="setclasspath.sh" token="@build.classpath@" value="${build.classpath}" /> </target> <target name="setclasspath.csh" > <echo message="Creating setclasspath.csh to set the CLASSPATH environment variable." /> <copy file="template/setclasspath.csh.template" tofile="setclasspath.csh" overwrite="yes" /> <replace file="setclasspath.csh" token="@build.classpath@" value="${build.classpath}" /> </target> <target name="init"> <!-- Create the time stamp --> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build.classes}"/> </target> <target name="compile" depends="init"> <!-- Compile the java code from ${src} into ${build} --> <javac srcdir="${src}/java" destdir="${build.classes}" deprecation="${javac.deprecation}" debug="${javac.debug}" optimize="${javac.optimize}" excludes="${javac.excludes}" classpathref="build.classpath" > </javac> </target> <target name="rmic" depends="init"> <!-- Generate the RMI stubs and skeletons. --> <rmic base="${build.classes}" includes="**/Remote*Impl.class" classpathref="build.classpath" /> </target> <!-- Create the Javadocs. --> <target name="javadoc" description="Generates the Javadocs for the JPeerGen project source." > <!-- clean the old version out and recreate. Javadoc will be happier this way. --> <delete dir="${doc.javadoc}"/> <mkdir dir="${doc.javadoc}"/> <javadoc packagenames="org.progeeks.*" sourcepath="${src.java}" destdir="${doc.javadoc}" author="true" version="true" windowtitle="Progeeks.org Project Documentation" doctitle="Progeeks-Dev" bottom="Copyright © 2004 Paul Speed. All Rights Reserved." /> </target> <target name="java.resources" depends="init"> <copy todir="${build.classes}"> <fileset dir="${src}/java"> <include name="**/LICENSE" /> <include name="**/*.gif" /> <include name="**/*.jpg" /> <include name="**/*.wav" /> <include name="**/*.txt" /> <include name="**/*.p" /> </fileset> </copy> <copy todir="${build.classes}"> <fileset dir="${src}"> <include name="**/LICENSE" /> </fileset> </copy> </target> <target name="build" depends="compile,rmic,java.resources" description="Builds the source files and copies any resources into the build directories." > </target> <target name="dist" depends="build,jpeergen.dist" description="Builds a full distribution of all projects." > <!-- Create the distribution directory --> <mkdir dir="${dist}/lib"/> </target> <target name="jpeergen.jars" depends="build" description="Builds the JPeerGen distribution jar files." > <!-- Create the distribution directory --> <mkdir dir="${dist.jpeergen}" /> <!-- Make the core jar. --> <jar jarfile="${dist.jpeergen}/jpeergen.jar" > <fileset dir="${build.classes}"> <include name="LICENSE" /> <include name="org/progeeks/**" /> </fileset> </jar> </target> <target name="jpeergen.dist" depends="build,jpeergen.jars" description="Builds a full JPeerGen distribution include javadocs and source tarball." > <!-- Create the distribution directory --> <mkdir dir="${dist.jpeergen}" /> <!-- Create the documentation distribution. --> <!-- clean the old version out and recreate. Javadoc will be happier this way. --> <delete dir="${dist.jpeergen}/javadoc"/> <mkdir dir="${dist.jpeergen}/javadoc"/> <javadoc packagenames="org.progeeks.jni.*" sourcepath="${src.java}" destdir="${dist.jpeergen}/javadoc" author="true" version="true" windowtitle="JPeerGen Documentation" doctitle="JPeerGen" bottom="Copyright © 2004 Paul Speed. All Rights Reserved." > <packageset dir="${src.java}" defaultexcludes="yes"> <include name="org/progeeks/jni/**" /> </packageset> </javadoc> <!-- Make the docs tar ball. --> <delete file="${dist.jpeergen}/jpeergen-javadoc.tar.gz" /> <tar destfile="${dist.jpeergen}/jpeergen-javadoc.tar.gz" compression="gzip" > <tarfileset dir="${dist.jpeergen}"> <include name="javadoc/**" /> <exclude name="**/backups/**" /> </tarfileset> </tar> <!-- Make the source tar ball. --> <tar destfile="${dist.jpeergen}/jpeergen-src.tar.gz" compression="gzip" > <tarfileset dir="${basedir}"> <include name="build.xml" /> <include name="doc/**" /> <include name="src/**" /> <exclude name="**/backups/**" /> </tarfileset> </tar> </target> <target name="install" depends="jpeergen.jars" description="Installs distribution jars into the ${dist.install} directory." > <copy todir="${dist.install}"> <fileset dir="${dist.jpeergen}"> <include name="*.jar" /> </fileset> </copy> </target> <target name="pmd"> <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/> <pmd rulesetfiles="rulesets/jpeergen.xml"> <formatter type="html" toFile="pmd_report.html"/> <fileset dir="${src}/java"> <include name="**/*.java"/> </fileset> </pmd> </target> <target name="cvslog"> <cvschangelog destfile="${dist.jpeergen}/changelog.xml" /> <style in="${dist.jpeergen}/changelog.xml" out="${dist.jpeergen}/changelog.html" style="${ant.home}/etc/changelog.xsl"> <param name="title" expression="JPeerGen ChangeLog"/> <param name="module" expression="dev"/> <param name="cvsweb" expression="http://cvs.sourceforge.net/viewcvs.py/jpeergen/"/> </style> </target> <target name="clean"> <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build.classes}"/> <delete dir="${dist}"/> </target> </project> |