From: Owen R. <exo...@us...> - 2005-09-09 02:25:27
|
Update of /cvsroot/netreflector/NetReflector In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20631 Modified Files: reflector.build Log Message: updating build script to publish built versions of netreflector Index: reflector.build =================================================================== RCS file: /cvsroot/netreflector/NetReflector/reflector.build,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** reflector.build 8 Sep 2005 12:42:25 -0000 1.15 --- reflector.build 9 Sep 2005 02:25:18 -0000 1.16 *************** *** 12,15 **** --- 12,16 ---- <property name="src.dir" value="src" /> <property name="lib.dir" value="lib"/> + <property name="publish.dir" value="dist" /> <property name="core.dll" value="NetReflector.dll" /> *************** *** 23,41 **** <!-- ALL --> ! <target name="all" description="runs everything"> ! <call target="clean" /> ! <call target="test.unit" /> ! </target> ! ! <target name="all.ccnet"> ! <property name="debug" value="false"/> ! <property name="nunit.output" value="Xml"/> ! <call target="all"/> ! </target> ! <!-- CLEAN --> <target name="clean" description="cleans up everything"> <delete dir="${build.dir}" failonerror="false" verbose="${verbosity}"/> </target> --- 24,33 ---- <!-- ALL --> ! <target name="all" depends="clean,compile,test.unit" description="runs everything" /> <!-- CLEAN --> <target name="clean" description="cleans up everything"> <delete dir="${build.dir}" failonerror="false" verbose="${verbosity}"/> + <delete dir="${publish.dir}" failonerror="false" verbose="${verbosity}"/> </target> *************** *** 44,56 **** <target name="init" description="initial compilation setup"> <mkdir dir="${build.dir}" verbose="${verbosity}"/> </target> <!-- COMPILE --> ! <target name="compile" depends="init" description="compiles everything"> ! <call target="compile.core" /> ! <call target="compile.test" /> ! <call target="compile.documenter" /> ! </target> <target name="compile.core" depends="init" description="compiles the core assembly" > --- 36,45 ---- <target name="init" description="initial compilation setup"> <mkdir dir="${build.dir}" verbose="${verbosity}"/> + <mkdir dir="${publish.dir}" verbose="${verbosity}"/> </target> <!-- COMPILE --> ! <target name="compile" depends="init,compile.core,compile.documenter,compile.plugin,compile.test" description="compiles everything"/> <target name="compile.core" depends="init" description="compiles the core assembly" > *************** *** 64,68 **** </target> ! <target name="compile.plugin" depends="compile.core" description="compiles plugin assembly to be used by the tests"> <csc target="library" output="${build.dir}\${plugin.dll}" debug="${debug}"> <sources basedir="${src.dir}\NetReflectorPluginTest"> --- 53,57 ---- </target> ! <target name="compile.plugin" depends="init" description="compiles plugin assembly to be used by the tests"> <csc target="library" output="${build.dir}\${plugin.dll}" debug="${debug}"> <sources basedir="${src.dir}\NetReflectorPluginTest"> *************** *** 76,80 **** </target> ! <target name="compile.test" depends="compile.plugin" description="compiles the core assembly" > <csc target="library" output="${build.dir}\${test.dll}" debug="${debug}"> <sources basedir="${src.dir}\NetReflector.Test"> --- 65,69 ---- </target> ! <target name="compile.test" depends="init" description="compiles the core assembly" > <csc target="library" output="${build.dir}\${test.dll}" debug="${debug}"> <sources basedir="${src.dir}\NetReflector.Test"> *************** *** 91,95 **** </target> ! <target name="compile.documenter" depends="compile.core" description="compiles the nant documenter task" > <csc target="library" output="${build.dir}\${documenter.dll}" debug="${debug}"> <sources basedir="${src.dir}\NetReflectorDocumenterTask"> --- 80,84 ---- </target> ! <target name="compile.documenter" depends="init" description="compiles the nant documenter task" > <csc target="library" output="${build.dir}\${documenter.dll}" debug="${debug}"> <sources basedir="${src.dir}\NetReflectorDocumenterTask"> *************** *** 106,110 **** <!-- TEST --> ! <target name="test.unit" depends="compile" description="runs unit tests"> <nunit2> <formatter type="${nunit.output}" /> --- 95,99 ---- <!-- TEST --> ! <target name="test.unit" description="runs unit tests"> <nunit2> <formatter type="${nunit.output}" /> *************** *** 114,140 **** <!-- DISTRIBUTION BUILD --> ! <target name="dist" description="build distribution version"> <property name="build.dir" value="dist" /> <property name="debug" value="false" /> - - <call target="all" /> </target> <!-- ZIP PACKAGE --> ! <target name="package" description="Creates an assembly zip file."> <!-- create zip file --> ! <property name="project.zip-path" value="${nant.project.name}.zip"/> <zip zipfile="${project.zip-path}"> <fileset> ! <include name="build/NetReflector.dll"/> </fileset> </zip> ! <echo message="Created zip package at file://${nant.project.basedir}\${project.zip-path}"/> </target> <target name="package.src" description="Creates a source zip file."> <!-- create zip file --> ! <property name="project.zip-path" value="${nant.project.name}.src.zip"/> <zip zipfile="${project.zip-path}"> <fileset> --- 103,131 ---- <!-- DISTRIBUTION BUILD --> ! <target name="dist" depends="dist.properties,all,package" description="build distribution version"/> ! ! <target name="dist.properties" description="sets properties for release build"> <property name="build.dir" value="dist" /> <property name="debug" value="false" /> </target> <!-- ZIP PACKAGE --> ! <target name="package" depends="package.dll, package.src"/> ! ! <target name="package.dll" description="Creates an assembly zip file."> <!-- create zip file --> ! <property name="project.zip-path" value="${publish.dir}\${nant.project.name}-${CCNetLabel}.zip"/> <zip zipfile="${project.zip-path}"> <fileset> ! <include name="${build.dir}/NetReflector.dll"/> </fileset> </zip> ! <echo message="Created zip package at file://${project.zip-path}"/> </target> <target name="package.src" description="Creates a source zip file."> <!-- create zip file --> ! <property name="project.zip-path" value="${publish.dir}\${nant.project.name}-${CCNetLabel}.src.zip"/> <zip zipfile="${project.zip-path}"> <fileset> *************** *** 148,188 **** </zip> ! <echo message="Created zip package at file://${nant.project.basedir}\${project.zip-path}"/> </target> ! <!-- FOR RUNNING CCNET AGAINST ITSELF --> ! <target name="ContinuousIntegration" depends="createAssemblyInfo,all.ccnet,dist.publish,reporting" /> ! <target name="createAssemblyInfo" description="Create an assembly info file with the current build number" > ! <asminfo output="src/NetReflector/VersionAssemblyInfo.cs" language="CSharp"> ! <imports> ! <import namespace="System.Reflection" /> ! </imports> ! <attributes> ! <attribute type="AssemblyVersionAttribute" value="${CCNetLabel}" /> ! </attributes> ! </asminfo> ! </target> ! ! <target name="dist.publish" depends="package, package.src"> ! <property name="publish.dir" value="dist" /> ! <mkdir dir="${publish.dir}" /> ! <copy todir="${publish.dir}" file="${nant.project.name}.zip" /> ! </target> ! ! <target name="reporting" depends="compile,fxcop,vil" /> ! <target name="fxcop"> ! <mkdir dir="${build.dir}\fxcop" /> ! <exec program="tools\fxcop\fxcopcmd.exe" ! commandline="/file:${build.dir}\NetReflector.dll /o:${build.dir}\fxcop\netreflector-fxcop.xml" failonerror="false"/> ! </target> ! <target name="vil"> ! <mkdir dir="${build.dir}\vil" /> ! <exec program="${vil.executable}" ! workingdir="${build.dir}" ! commandline='/a="${vil.assemblies}" /outxml="vil\NetReflector.results-vil.xml" /m classes,enumerations,structs,types,LOC,events,impInterfaces,WMC,DIT,CBO,RFC,NOC,constructors,methods,imps,fields,properties /sc=type' ! failonerror="false"/> ! </target> </project> \ No newline at end of file --- 139,179 ---- </zip> ! <echo message="Created zip package at file://${project.zip-path}"/> </target> ! <!-- FOR RUNNING CCNET AGAINST ITSELF --> ! <target name="ContinuousIntegration" depends="ccnet.properties,createAssemblyInfo,all,package,reporting" /> ! <target name="ccnet.properties"> ! <property name="debug" value="false"/> ! <property name="nunit.output" value="Xml"/> ! <property name="publish.dir" value="${CCNetArtifactDirectory}\${CCNetLabel}"/> ! </target> ! ! <target name="createAssemblyInfo" description="Create an assembly info file with the current build number" > ! <asminfo output="src/NetReflector/VersionAssemblyInfo.cs" language="CSharp"> ! <imports> ! <import namespace="System.Reflection" /> ! </imports> ! <attributes> ! <attribute type="AssemblyVersionAttribute" value="${CCNetLabel}" /> ! </attributes> ! </asminfo> ! </target> ! ! <target name="reporting" depends="compile,fxcop,vil" /> ! <target name="fxcop"> ! <mkdir dir="${build.dir}\fxcop" /> ! <exec program="tools\fxcop\fxcopcmd.exe" ! commandline="/file:${build.dir}\NetReflector.dll /o:${build.dir}\fxcop\netreflector-fxcop.xml" failonerror="false"/> ! </target> ! <target name="vil"> ! <mkdir dir="${build.dir}\vil" /> ! <exec program="${vil.executable}" ! workingdir="${build.dir}" ! commandline='/a="${vil.assemblies}" /outxml="vil\NetReflector.results-vil.xml" /m classes,enumerations,structs,types,LOC,events,impInterfaces,WMC,DIT,CBO,RFC,NOC,constructors,methods,imps,fields,properties /sc=type' ! failonerror="false"/> ! </target> </project> \ No newline at end of file |