[Mrpostman-cvs] mrpostman build.properties,1.1,1.2 build.xml,1.20,1.21
Brought to you by:
chris_humphreys,
mrbook
From: <lb...@us...> - 2003-04-07 19:08:48
|
Update of /cvsroot/mrpostman/mrpostman In directory sc8-pr-cvs1:/tmp/cvs-serv19661 Modified Files: build.properties build.xml Log Message: Modified the build system so that IzPack is not necessary to compile. Added also a few useful extra features to the build system: if the "checkstyle.notused" property is set checkstyle is *NOT* used ( boosting compilation performance.) Index: build.properties =================================================================== RCS file: /cvsroot/mrpostman/mrpostman/build.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** build.properties 3 Apr 2003 23:40:47 -0000 1.1 --- build.properties 7 Apr 2003 19:08:44 -0000 1.2 *************** *** 1 **** ! project.version=1.0 RC 5 \ No newline at end of file --- 1,3 ---- ! project.version=1.0 RC 5 ! # Uncomment this property to prevent the use of checkstyle ! #checkstyle.notused=true \ No newline at end of file Index: build.xml =================================================================== RCS file: /cvsroot/mrpostman/mrpostman/build.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** build.xml 3 Apr 2003 23:40:45 -0000 1.20 --- build.xml 7 Apr 2003 19:08:44 -0000 1.21 *************** *** 31,34 **** --- 31,39 ---- Mozilla's mail client etc. to different web mail services like Yahoo and Hotmail. It is being designed for extensibility so is easy to add more web mail services to it. + + Parameters: + + IZPACK_HOME: This environment variable must be set to build the IzPack windows installer. + project.version: This property can be set by modifying the build.properties file. </description> *************** *** 47,55 **** <property name="izpack.dir" value="${myenv.IZPACK_HOME}"/> - <target name="init"> <!-- Create the time stamp --> <tstamp/> <property name="inst.jarfile" value="MrPostman-${DSTAMP}.jar"/> <available classname="com.izforge.izpack.ant.IzPackTask" property="izpack.present"> <classpath id="izpack.classpath"> --- 52,71 ---- <property name="izpack.dir" value="${myenv.IZPACK_HOME}"/> <target name="init"> <!-- Create the time stamp --> <tstamp/> <property name="inst.jarfile" value="MrPostman-${DSTAMP}.jar"/> + <!-- Create the build directory structure used by compile --> + <mkdir dir="${build}"/> + + <!-- Copy over the documentation files --> + <copy todir="${build}/"> + <fileset dir="docs/html/"/> + </copy> + <!-- Create the distribution directory --> + <mkdir dir="${dist}/"/> + </target> + + <target name="init.izpack" depends="init" if="myenv.IZPACK_HOME" unless="izpack.notused"> <available classname="com.izforge.izpack.ant.IzPackTask" property="izpack.present"> <classpath id="izpack.classpath"> *************** *** 59,63 **** </classpath> </available> ! <available classname="com.puppycrawl.tools.checkstyle.Main" property="checkstyle.present"> <classpath id="checkstyle.classpath"> --- 75,81 ---- </classpath> </available> ! </target> ! ! <target name="init.checkstyle" depends="init" unless="checkstyle.notused"> <available classname="com.puppycrawl.tools.checkstyle.Main" property="checkstyle.present"> <classpath id="checkstyle.classpath"> *************** *** 67,71 **** </classpath> </available> ! <available classname="de.hunsicker.jalopy.plugin.ant.AntPlugin" property="jalopy.present"> <classpath id="jalopy.classpath"> --- 85,91 ---- </classpath> </available> ! </target> ! ! <target name="init.jalopy" depends="init" unless="jalopy.notused"> <available classname="de.hunsicker.jalopy.plugin.ant.AntPlugin" property="jalopy.present"> <classpath id="jalopy.classpath"> *************** *** 75,92 **** </classpath> </available> - - <!-- Create the build directory structure used by compile --> - <mkdir dir="${build}"/> - - <!-- Copy over the documentation files --> - <copy todir="${build}/"> - <fileset dir="docs/html/"/> - </copy> - <!-- Create the distribution directory --> - <mkdir dir="${dist}/"/> </target> <!-- This target has been used once. It is one too many.:-) --> ! <target name="jalopy" depends="init" if="jalopy.present"> <taskdef name="jalopy" classname="de.hunsicker.jalopy.plugin.ant.AntPlugin" classpathref="checkstyle.classpath"/> <jalopy fileformat="auto" --- 95,104 ---- </classpath> </available> </target> + + <!-- This target has been used once. It is one too many.:-) --> ! <target name="jalopy" depends="init.jalopy" if="jalopy.present"> <taskdef name="jalopy" classname="de.hunsicker.jalopy.plugin.ant.AntPlugin" classpathref="checkstyle.classpath"/> <jalopy fileformat="auto" *************** *** 102,107 **** </target> ! <target name="checkstyle" depends="init" if="checkstyle.present" ! description="check the codestyle"> <taskdef resource="checkstyletask.properties" classpathref="checkstyle.classpath"/> <checkstyle config="checkstyle_checks.xml"> --- 114,119 ---- </target> ! <target name="checkstyle" depends="init.checkstyle" if="checkstyle.present" ! description="check the codestyle - set the checkstyle.notused property not to use it"> <taskdef resource="checkstyletask.properties" classpathref="checkstyle.classpath"/> <checkstyle config="checkstyle_checks.xml"> *************** *** 161,165 **** </target> ! <target name="install.win32" depends="dist" if="izpack.present" description="create an installer"> <taskdef name="izpack" classname="com.izforge.izpack.ant.IzPackTask" classpathref="izpack.classpath"/> --- 173,177 ---- </target> ! <target name="install.win32" depends="dist, init.izpack" if="izpack.present" description="create an installer"> <taskdef name="izpack" classname="com.izforge.izpack.ant.IzPackTask" classpathref="izpack.classpath"/> *************** *** 215,219 **** <target name="tarsrc" depends="checkstyle" ! description="generate a zip of the src and everything that's need for compilation"> <tar destfile="${dist}/mrpostman-src-${DSTAMP}.tar.gz" compression="gzip"> <tarfileset dir="${basedir}" --- 227,231 ---- <target name="tarsrc" depends="checkstyle" ! description="generate a tarball of the src and everything that's needed for compilation"> <tar destfile="${dist}/mrpostman-src-${DSTAMP}.tar.gz" compression="gzip"> <tarfileset dir="${basedir}" *************** *** 227,231 **** </target> <target name="buildall" depends="tarsrc, javadoc, install.win32" ! description="build all the distribution files."/> </project> --- 239,243 ---- </target> <target name="buildall" depends="tarsrc, javadoc, install.win32" ! description="builds all the distribution files."/> </project> |