The attachment from my initial response contained special characters 3D and
=20 
throughout so I am re-sending with the build XML text in-line:

sample.xml

<?xml version="1.0"?>

<project name="sample" default="test">
   
        <property name="basename" value="sample"/>
        <property name="srcdir" value="c:/${basename}/src/"/>
        <property name="bindir" value="c:/${basename}/bin/"/>
        <property name="msidir" value="c:/${basename}/deploy/"/>
        <property name="scm_dbpath" value="" />
        <property name="scm_path" value="" />
        <property name="componentsdir" value="c:/components/" />
        <property name="dotnetframeworkdir"
value="c:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/" />

        <loadtasks
assembly="C:/nantcontrib-0.85-nightly-2005-07-24/bin/NAnt.Contrib.Tasks.dll"
/>
        
        <!-- Composite Targets -->

        <!-- ********* For testing primary targets **************** -->
        <target name="test" depends="nodebug,compile,install_service" />
        <!-- ********* For testing targets **************** -->

        <!-- Build and package using source on hard drive -->
        <target name="full" depends="build,package" />
        <target name="full_debug" depends="build_debug,package" />
        
        <!-- Build and package using source retrieved from scm -->
        <target name="scm_full" depends="scm_build,package" />
        <target name="scm_full_debug" depends="scm_build_debug,package" />
        
        <!-- Build using source already on hard drive -->
        <target name="build" depends="init,clean,nodebug,compile" />
        
        <target name="build_debug" depends="clean,debug,compile" />

        <!-- Build using source retrieved from scm  -->
        <target name="scm_build"
depends="init,clean,scm_get,nodebug,compile" />
        <target name="scm_build_debug"
depends="init,clean,scm_get,debug,compile" />
        
        <!-- Attribute Setting Targets -->
        <target name="debug" description="Set debug attribute to true for
compile" >
                <property name="debug" value="true"/>
        </target>

        <target name="nodebug" description="Set debug attribute to false for
compile" >
                <property name="debug" value="false"/>
        </target>       

        <!-- Build Initiated Message -->
        <target name="init">
                <echo message="${basename} Build Initiated."/>
                <tstamp />
        </target>

        <!-- delete previous versions -->
        <target name="clean" description="remove all generated files">
                <delete file="${bindir}${basename}.exe"
failonerror="false"/>
                <delete file="${bindir}${basename}.pdb"
failonerror="false"/>
        </target>

        <!-- standard SCM targets to be defined -->    
        <target name="scm_list" />
        <target name="scm_list_promotion_group" />
        <target name="scm_promote" />
        <target name="scm_checkForDuplicateLabel" />

        <!-- Source code get -->
        <target name="scm_get" >
        
                <!-- Clean source directory 
                <echo message="Deleting previous contents of source
drectory: ${srcdir}..." />
                <delete>
                        <fileset>
                                <include name="${srcdir}**.*" />
                        </fileset>
                </delete>
                
        
                <echo message="Getting source code from VSS..." />
                <vssget username="Admin" 
                        password="" 
                        localpath="${srcdir}" 
                        recursive="true" 
                        replace="true" 
                        writable="true" 
                        removedeleted="true" 
                        dbpath="${scm_dbpath}" 
                        path="${scm_path}" />
                        
                -->                             
                        
                
        </target> 
        
        <target name="compile" description="Compile source files into
executable.">
                <csc target="exe"
                     output="${bindir}${basename}.exe" 
                     debug="${debug}" >
                        
                        <sources>
                                <include name="${srcdir}**.cs"/>
                        </sources>
                        
                        <resources prefix="${basename}"
dynamicprefix="false">
                                <include name="${srcdir}*.resx" />
                        </resources>

                        <references>
                                <include name="System.dll" />
                                <include name="System.Collections.dll" />
                                <include name="System.ComponentModel.dll" />
                                <include name="System.Data.dll" />
                                <include name="System.Diagnostics.dll" />
                                <include name="System.ServiceProcess.dll" />
                                <include
name="System.Configuration.Install.dll" />
                                
                                <include name="C:\Program
Files\IBM\WebSphere MQ\bin\amqmdnet.dll" />
                        </references>
                </csc>
        </target>
        
        <target name="uninstall_service" >
              <exec program="InstallUtil.exe" 
                    basedir="${dotnetframeworkdir}" 
                    commandline="/u ${bindir}${basename}.exe" />
        </target>       
        
        
        <target name="install_service" >
              <exec program="InstallUtil.exe" 
                    basedir="${dotnetframeworkdir}" 
                    commandline="${bindir}${basename}.exe" />
        </target>

        <!-- Create MSI Installer Package for manual non service
installation -->
        <target name="package" description="Creates MSI file.">
                
                <property name="product.name" value="${basename}" />
                <property name="company.name" value="yourcompany" />
                <property name="msi.version" value="1.0.0" />
                <property name="msi.guid.product"
value="{2FCA27CF-D7A4-4a1c-989E-87066A6CD26D}" />
                <property name="msi.guid.upgrade"
value="{805A971B-DE4C-4c42-BC95-27799053CAB9}" />
                <property name="source.dir" value="${bindir}" />
                <property name="output.dir" value="${msidir}" />

                <msi sourcedir="${output.dir}"
                     output="${msidir}${product.name}.msi"
                     debug="true"
                     verbose="true" >
                     
                        <properties>
                                <property name="ProductName"
value="${product.name}" />
                                <property name="ProductVersion"
value="${msi.version}" />
                                <property name="Manufacturer"
value="${company.name}" />
                                <property name="ProductCode"
value="${msi.guid.product}" />
                                <property name="UpgradeCode"
value="${msi.guid.upgrade}" />
                        </properties>

                        <directories>
                                <directory name="D__PRODUCT"
foldername="${product.name}" root="ProgramFilesFolder" />
                                <directory name="D__PROGRAM"
foldername="bin" root="D__PRODUCT" />
                        </directories>

                        <components>
                                <component name="sample" 
        
id="{459DD06A-987B-46eb-B40A-AAD2EE654A24}" 
                                           attr="2"
                                           directory="D__PROGRAM" 
                                           feature="mainfeature" >
                                           
                                        <key file="${basename}.exe" />
                                        
                                        <fileset basedir="${source.dir}">
                                                <include name="*.*" />
                                        </fileset>
                                        
                                </component>
                                
                        </components>

                        <features>
                                <feature name="mainfeature" 
                                         title="${product.name} Main
Feature" 
                                         display="1" 
                                         typical="true" 
                                         directory="D__PROGRAM" />
                        </features>
                </msi>
        </target>

</project>




*************************************************************************
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to