File tree 5 files changed +29
-13
lines changed
5 files changed +29
-13
lines changed Original file line number Diff line number Diff line change 18
18
19
19
After including the file, a target should be defined to initialize
20
20
configuration variables according to the project being built.
21
- The standard of this target is init (but any other name can be chosen).
21
+ The standard name of this target is init (but any other name can be chosen).
22
22
The init target should depend on (or call) target common.init defined
23
23
in this file.
24
24
29
29
if it exists.
30
30
31
31
- common.compile-dll
32
- compile a DLL, generating the documentation and using Clover if enabled.
32
+ compile a DLL, generating the documentation file (.xml) and using Clover
33
+ if enabled.
33
34
34
- - common.generate-assemblyinfo, common.generate-assemblyinfoversion
35
- generate an AssemblyInfo.cs or AssemblyInfoVersion.cs file from
36
- assembly.* NAnt properties.
35
+ - common.generate-assemblyinfo
36
+ generate an AssemblyInfo.cs file from assembly.* NAnt properties.
37
37
38
38
- common.run-tests
39
39
run compiled NUnit tests.
40
40
41
41
All compile/run targets put the output in bin.dir. Common.compile*
42
42
targets use source fileset with id="project.sources", assembly fileset
43
43
with id="project.references" and resource fileset with id="project.resources"
44
- to compile the project. The source and resource filesets are optional.
44
+ to compile the project. The source and resource filesets are optional and
45
+ default to **/*.cs files and no files respectively.
45
46
46
47
</description >
47
48
Original file line number Diff line number Diff line change 136
136
<property name =" current.build.defines" value =" ${build.defines}" />
137
137
138
138
<!-- properties used to connect to database for testing -->
139
- <property name =" nhibernate.dialect" value =" NHibernate.Dialect.MsSql2000Dialect" />
140
- <property name =" nhibernate.connection.driver_class" value =" NHibernate.Driver.SqlClientDriver" />
141
- <property name =" nhibernate.connection.connection_string" value =" Server=(local);initial catalog=nhibernate;Integrated Security=SSPI" />
139
+ <include buildfile =" nhibernate-properties.xml" />
142
140
143
141
<!-- named project configurations -->
144
142
<target name =" set-debug-project-configuration" description =" Perform a 'debug' build" >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <project xmlns =" http://nant.sf.net/release/0.85-rc3/nant.xsd" >
3
+ <property name =" nhibernate.dialect" value =" NHibernate.Dialect.MsSql2000Dialect" />
4
+ <property name =" nhibernate.connection.driver_class" value =" NHibernate.Driver.SqlClientDriver" />
5
+ <property name =" nhibernate.connection.connection_string" value =" Server=(local);initial catalog=nhibernate;Integrated Security=SSPI" />
6
+ </project >
Original file line number Diff line number Diff line change 132
132
</target >
133
133
134
134
<target name =" test" depends =" init build" description =" Runs all NHibernate tests for the current framework" >
135
+ <!-- -->
136
+ <nant target =" test" >
137
+ <buildfiles refid =" buildfiles.tests" />
138
+ </nant >
139
+ <!-- -->
140
+ <!--
135
141
<foreach item="File" property="buildfile">
136
142
<in>
137
143
<items refid="buildfiles.tests" />
144
150
</exec>
145
151
</do>
146
152
</foreach>
153
+ -->
147
154
</target >
148
155
149
156
<target name =" coverage-report" description =" Builds the Test Coverage reports"
Original file line number Diff line number Diff line change 23
23
</target >
24
24
25
25
<target name =" build" depends =" generate-assemblyinfo" >
26
- <exec
27
- program=" ${framework::get-framework-directory(framework::get-target-framework())}\ilasm"
28
- commandline=" HashCodeProvider.il /dll /output:..\..\lib\net\1.1\HashCodeProvider.dll /key:..\NHibernate.snk"
29
- />
26
+ <ilasm
27
+ target=" dll"
28
+ output=" ${root.dir}/lib/net/1.1/HashCodeProvider.dll"
29
+ keyfile=" ${key.file}" >
30
+ <sources >
31
+ <include name =" HashCodeProvider.il" />
32
+ </sources >
33
+ </ilasm >
30
34
<copy file =" HashCodeProvider.license.txt" todir =" ../../lib/net/1.1" />
31
35
</target >
32
36
You can’t perform that action at this time.
0 commit comments