From: Owen R. <exo...@us...> - 2004-11-15 05:13:41
|
Update of /cvsroot/netreflector/NetReflector In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2560 Modified Files: .cvsignore reflector.build Added Files: NetReflector.key netreflector.FxCop Log Message: - working on XmlDocumentationGenerator - started Xsd generation for NetReflector - lots of FxCop inspired improvements --- NEW FILE: NetReflector.key --- (This appears to be a binary file; contents omitted.) Index: .cvsignore =================================================================== RCS file: /cvsroot/netreflector/NetReflector/.cvsignore,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** .cvsignore 22 Oct 2004 12:45:32 -0000 1.4 --- .cvsignore 15 Nov 2004 05:13:00 -0000 1.5 *************** *** 2,4 **** dist .project ! cvs_root \ No newline at end of file --- 2,5 ---- dist .project ! cvs_root ! temp \ No newline at end of file --- NEW FILE: netreflector.FxCop --- (This appears to be a binary file; contents omitted.) Index: reflector.build =================================================================== RCS file: /cvsroot/netreflector/NetReflector/reflector.build,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** reflector.build 22 Oct 2004 12:45:32 -0000 1.6 --- reflector.build 15 Nov 2004 05:13:00 -0000 1.7 *************** *** 16,19 **** --- 16,20 ---- <property name="test.dll" value="NetReflector.Test.dll" /> <property name="plugin.dll" value="NetReflectorPlugin.Test.dll" /> + <property name="documenter.dll" value="NetReflectorDocumenterTask.dll" /> <!-- ALL --> *************** *** 46,60 **** <call target="compile.core" /> <call target="compile.test" /> </target> - <target name="compile.core" depends="init" description="compiles the core assembly" > ! <csc target="library" output="${build.dir}\${core.dll}" debug="${debug}" doc="${build.dir}\${core.dll}.xml"> <sources basedir="${src.dir}\NetReflector"> <include name="**\*.cs"/> </sources> - <references> - <include name="${lib.dir}\nunit.framework.dll"/> - </references> <!-- don't warn about uncommented public methods --> <arg value="/nowarn:1591"/> --- 47,58 ---- <call target="compile.core" /> <call target="compile.test" /> + <call target="compile.documenter" /> </target> <target name="compile.core" depends="init" description="compiles the core assembly" > ! <csc target="library" output="${build.dir}\${core.dll}" debug="${debug}"> <sources basedir="${src.dir}\NetReflector"> <include name="**\*.cs"/> </sources> <!-- don't warn about uncommented public methods --> <arg value="/nowarn:1591"/> *************** *** 63,67 **** <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}" doc="${build.dir}\${plugin.dll}.xml"> <sources basedir="${src.dir}\NetReflectorPluginTest"> <include name="**\*.cs"/> --- 61,65 ---- <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"> <include name="**\*.cs"/> *************** *** 75,79 **** <target name="compile.test" depends="compile.plugin" description="compiles the core assembly" > ! <csc target="library" output="${build.dir}\${test.dll}" debug="${debug}" doc="${build.dir}\${test.dll}.xml"> <sources basedir="${src.dir}\NetReflector.Test"> <include name="**\*.cs"/> --- 73,77 ---- <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"> <include name="**\*.cs"/> *************** *** 89,92 **** --- 87,104 ---- </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"> + <include name="**\*.cs"/> + </sources> + <references> + <include name="${build.dir}\${core.dll}"/> + <include name="tools\nant\NAnt.Core.dll"/> + </references> + <!-- don't warn about uncommented public methods --> + <arg value="/nowarn:1591"/> + </csc> + </target> + <!-- TEST --> <target name="test.unit" depends="compile" description="runs unit tests"> *************** *** 106,119 **** <!-- ZIP PACKAGE --> ! <target name="package" description="Creates a package zip file."> <!-- create zip file --> <property name="project.zip-path" value="${nant.project.name}.zip"/> <zip zipfile="${project.zip-path}"> <fileset> ! <includes name="**/*"/> ! <excludes name="**/obj/**"/> ! <excludes name="**/bin/**"/> ! <excludes name="dist/**"/> ! <excludes name="build/**"/> </fileset> </zip> --- 118,127 ---- <!-- 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> *************** *** 122,124 **** --- 130,193 ---- </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> + <include name="lib/*"/> + <include name="src/**/*"/> + <exclude name="**/obj/**"/> + <exclude name="**/bin/**"/> + <exclude name="**/.*/**"/> + <exclude name="**/_*/**"/> + </fileset> + </zip> + + <echo message="Created zip package at file://${nant.project.basedir}\${project.zip-path}"/> + </target> + + <!-- FOR RUNNING CCNET AGAINST ITSELF --> + <target name="ContinuousIntegration"> + <ifnot test="${property::exists('label-to-apply')}"> + <fail message="label-to-apply property not set, so can't create labelled distribution files" /> + </ifnot> + + <call target="transform.build.number" /> + <call target="createAssemblyInfo" /> + <call target="all" /> + <call target="dist.publish" /> + <call target="reporting" /> + <echo message="CI Run for build number ${label-to-apply} successfully completed" /> + </target> + + <target name="transform.build.number" > + <regex pattern="(?'major'\d+)_(?'minor'\d+)_(?'revision'\d+)_(?'build'\d+)" input="${label-to-apply}" /> + <property name="build.number" value="${major}.${minor}.${revision}.${build}" /> + <echo message="Build number: ${build.number}"/> + </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 name="System.Reflection" /> + </imports> + <attributes> + <attribute type="AssemblyVersionAttribute" value="${build.number}" /> + </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"> + <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> + </project> \ No newline at end of file |