Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 147 lines (125 sloc) 5.585 kb
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
1 <?xml version="1.0" ?>
13558cd @shashankshetty Fixed the build script and updated the Sample Application to the latest ...
shashankshetty authored
2 <project name="ExcelMapper" default="build" xmlns="http://nant.sf.net/schemas/nant.xsd">
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
3
4 <!-- PROPERTIES -->
5 <property name ="current.dir" value="${directory::get-current-directory()}" />
6 <property name="build.dir" value="build" />
0f5c3b1 @shashankshetty Added ExcelMapper release and unmerged release.
shashankshetty authored
7 <property name="release.dir" value="release" />
062090d @shashankshetty Removed NCover and added a Readme.txt
shashankshetty authored
8 <property name="nunit-console.exe" value="tools\nunit\bin\nunit-console-x86.exe" />
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
9 <property name="excel.dir" value="Excel" />
10 <property name="include.dir" value="Templates\Include" />
134b700 @shashankshetty Moved Samples to ExcelMapper solution and brought it under tests.
shashankshetty authored
11 <property name="lib.dir" value="lib" />
12 <property name="BuildDTOsFromExcel.exe" value="BuildDTOsFromExcel.exe" />
13 <property name="Excel.dir" value="src\Samples.Tests\Excel" />
5e85410 @innerverse Add ILMerge to repository; update Nant script to include "merge" option...
innerverse authored
14 <property name="tools.dir" value="tools" />
15 <property name="config" value="Debug" />
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
16
17 <!-- User targets -->
18 <target name="clean" description="Delete Automated Build artifacts">
19 <delete dir="${build.dir}" if="${directory::exists(build.dir)}"/>
13558cd @shashankshetty Fixed the build script and updated the Sample Application to the latest ...
shashankshetty authored
20 <mkdir dir="${build.dir}" />
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
21 </target>
13558cd @shashankshetty Fixed the build script and updated the Sample Application to the latest ...
shashankshetty authored
22
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
23 <target name="compile" depends="clean" description="Builds project">
24 <msbuild project="src\ExcelMapper.sln" target="Rebuild" verbosity="quiet">
25 <property name="Configuration" value="debug"/>
26 <property name="SolutionDir" value=".." />
27 <arg value="/nologo"/>
28 </msbuild>
13558cd @shashankshetty Fixed the build script and updated the Sample Application to the latest ...
shashankshetty authored
29
fc45d9a @shashankshetty Moved Class File Generation and Assembly Generation to a new project Run...
shashankshetty authored
30 <copy todir="${build.dir}" overwrite="true">
5e85410 @innerverse Add ILMerge to repository; update Nant script to include "merge" option...
innerverse authored
31 <fileset basedir="src\ExcelMapper\bin\${config}">
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
32 <include name="*.*" />
33 </fileset>
34 </copy>
35 <copy todir="${build.dir}" overwrite="true">
5e85410 @innerverse Add ILMerge to repository; update Nant script to include "merge" option...
innerverse authored
36 <fileset basedir="src\BuildDTOsFromExcel\bin\${config}">
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
37 <include name="*.*" />
38 </fileset>
39 </copy>
40
41 <copy todir="${build.dir}" overwrite="true">
5e85410 @innerverse Add ILMerge to repository; update Nant script to include "merge" option...
innerverse authored
42 <fileset basedir="src\ExcelMapper.Tests\bin\${config}">
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
43 <include name="*" />
44 <include name="**\*.*" />
45 </fileset>
46 </copy>
47 <copy todir="${build.dir}" overwrite="true">
5e85410 @innerverse Add ILMerge to repository; update Nant script to include "merge" option...
innerverse authored
48 <fileset basedir="src\BuildDTOsFromExcel.Tests\bin\${config}">
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
49 <include name="*" />
332072b @shashankshetty Moved log4net config from app.config to log4net.xml and updated the bina...
shashankshetty authored
50 <include name="**\*.*" />
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
51 </fileset>
134b700 @shashankshetty Moved Samples to ExcelMapper solution and brought it under tests.
shashankshetty authored
52 </copy>
53 <copy todir="${build.dir}" overwrite="true">
5e85410 @innerverse Add ILMerge to repository; update Nant script to include "merge" option...
innerverse authored
54 <fileset basedir="src\Samples.Tests\bin\${config}">
134b700 @shashankshetty Moved Samples to ExcelMapper solution and brought it under tests.
shashankshetty authored
55 <include name="*" />
56 <include name="**\*.*" />
57 </fileset>
13558cd @shashankshetty Fixed the build script and updated the Sample Application to the latest ...
shashankshetty authored
58 </copy>
59 </target>
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
60
fc45d9a @shashankshetty Moved Class File Generation and Assembly Generation to a new project Run...
shashankshetty authored
61 <target name="ExcelMapperTests">
062090d @shashankshetty Removed NCover and added a Readme.txt
shashankshetty authored
62 <exec program="${nunit-console.exe}" workingdir="${build.dir}">
63 <arg value="ExcelMapper.Tests.dll" />
64 <arg value="/xml:ExcelMapperTests.xml" />
65 <arg value="/nologo" />
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
66 </exec>
67 </target>
68
145a6d0 @shashankshetty Upgraded to StructureMap 2.6.1 and included Samples.Tests in the ExcelMa...
shashankshetty authored
69 <target name="BuildDTOsFromExcelTests">
062090d @shashankshetty Removed NCover and added a Readme.txt
shashankshetty authored
70 <exec program="${nunit-console.exe}" workingdir="${build.dir}">
71 <arg value="BuildDTOsFromExcel.Tests.dll" />
72 <arg value="/xml:BuildDTOsFromExcelTests.xml" />
73 <arg value="/nologo" />
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
74 </exec>
75 </target>
134b700 @shashankshetty Moved Samples to ExcelMapper solution and brought it under tests.
shashankshetty authored
76
145a6d0 @shashankshetty Upgraded to StructureMap 2.6.1 and included Samples.Tests in the ExcelMa...
shashankshetty authored
77 <target name="SamplesTests">
78 <exec program="${nunit-console.exe}" workingdir="${build.dir}">
79 <arg value="Samples.Tests.dll" />
80 <arg value="/xml:SamplesTests.xml" />
81 <arg value="/nologo" />
82 </exec>
83 </target>
84
134b700 @shashankshetty Moved Samples to ExcelMapper solution and brought it under tests.
shashankshetty authored
85 <target name="updateSampleExcel" description="Update lib folder">
86 <exec program="${build.dir}\${BuildDTOsFromExcel.exe}" workingdir="${build.dir}">
87 <arg value="..\${Excel.dir}\*.xls" />
88 <arg value="..\${Excel.dir}\*.xlsx" />
89 </exec>
90 <copy todir="${lib.dir}" overwrite="true">
91 <fileset basedir="${build.dir}">
92 <include name="ExcelToDTOMapper.DTO.dll" />
93 </fileset>
94 </copy>
95 </target>
0f5c3b1 @shashankshetty Added ExcelMapper release and unmerged release.
shashankshetty authored
96
97 <target name="test" depends="ExcelMapperTests, BuildDTOsFromExcelTests, SamplesTests" />
98
99 <target name="build" depends="clean, compile, test, updateSampleExcel" description="Clean, Compile, run tests" />
100
101 <target name="full" depends="build, unmerged-release, release" description="Build and zip the distributable files" />
102
103 <target name="unmerged-release" depends="build">
104 <mkdir dir="${build.dir}\unmerged-release" />
105
106 <copy todir="${build.dir}\unmerged-release">
107 <fileset basedir="${build.dir}">
108 <include name="BuildDTOsFromExcel.exe" />
109 <include name="StructureMap.dll" />
110 <include name="Microsoft.Practices.ServiceLocation.dll" />
111 <include name="RunTimeCodeGenerator.dll" />
112 </fileset>
113 </copy>
114
115 <exec program="${tools.dir}\ILMerge\ilmerge.exe"
116 commandline="/log /out:&quot;${build.dir}\unmerged-release\ExcelMapper.dll&quot; &quot;${build.dir}\ExcelMapper.dll&quot; /keyfile:&quot;${current.dir}\ExcelMapper.snk&quot;" workingdir="." />
b63a8c4 @shashankshetty Added BuildDTOsFromExcel to the release
shashankshetty authored
117
118 <delete file="${build.dir}\unmerged-release\ExcelMapper.pdb" />
0f5c3b1 @shashankshetty Added ExcelMapper release and unmerged release.
shashankshetty authored
119
120 <zip zipfile="${release.dir}\unmerged-excelmapper.zip">
121 <fileset basedir="${build.dir}\unmerged-release" prefix="unmerged-release">
122 <include name="**/*" />
123 </fileset>
124 </zip>
125 </target>
126
127 <target name="release" depends="build">
128 <mkdir dir="${build.dir}\release" />
129
130 <exec program="${tools.dir}\ILMerge\ilmerge.exe"
131 commandline="/log /out:&quot;${build.dir}\release\ExcelMapper.dll&quot; &quot;${build.dir}\ExcelMapper.dll&quot; &quot;${build.dir}\StructureMap.dll&quot; &quot;${build.dir}\Microsoft.Practices.ServiceLocation.dll&quot; &quot;${build.dir}\RunTimeCodeGenerator.dll&quot; /keyfile:&quot;${current.dir}\ExcelMapper.snk&quot;" workingdir="." />
132
b63a8c4 @shashankshetty Added BuildDTOsFromExcel to the release
shashankshetty authored
133 <copy todir="${build.dir}\release">
134 <fileset basedir="${build.dir}">
135 <include name="BuildDTOsFromExcel.exe" />
136 </fileset>
137 </copy>
138
139 <delete file="${build.dir}\release\ExcelMapper.pdb" />
140
0f5c3b1 @shashankshetty Added ExcelMapper release and unmerged release.
shashankshetty authored
141 <zip zipfile="${release.dir}\excelmapper.zip">
142 <fileset basedir="${build.dir}\release" prefix="release">
143 <include name="**/*" />
144 </fileset>
145 </zip>
146 </target>
ea61fe6 @shashankshetty Initial Check in
shashankshetty authored
147 </project>
Something went wrong with that request. Please try again.