|
198 | 198 | <!-- Tests -->
|
199 | 199 | <copy file="${bin.dir}/TestEmbeddedConfig.cfg.xml" todir="${bin-pack.tests}"/>
|
200 | 200 | <copy file="${bin.dir}/ABC.hbm.xml" todir="${bin-pack.tests}"/>
|
201 |
| - <copy todir="${bin-pack.tests}/DbScripts"> |
202 |
| - <fileset basedir="${root.dir}/src/NHibernate.Test/DbScripts"> |
203 |
| - <include name="*.sql" /> |
204 |
| - </fileset> |
205 |
| - </copy> |
206 |
| - <copy todir="${bin-pack.tests}"> |
| 201 | + <copy todir="${bin-pack.tests}/DbScripts"> |
| 202 | + <fileset basedir="${root.dir}/src/NHibernate.Test/DbScripts"> |
| 203 | + <include name="*.sql" /> |
| 204 | + </fileset> |
| 205 | + </copy> |
| 206 | + <copy todir="${bin-pack.tests}"> |
207 | 207 | <fileset basedir="${bin.dir}">
|
208 | 208 | <include name="nunit*" />
|
209 |
| - <include name="SharpTestsEx*" /> |
210 |
| - <include name="NHibernate.Domain*" /> |
| 209 | + <include name="SharpTestsEx*" /> |
| 210 | + <include name="NHibernate.Domain*" /> |
211 | 211 | <include name="NHibernate.Test*" />
|
212 |
| - <include name="log4net*" /> |
213 |
| - </fileset> |
| 212 | + <include name="log4net*" /> |
| 213 | + </fileset> |
214 | 214 | </copy>
|
215 | 215 | </target>
|
216 | 216 |
|
|
241 | 241 |
|
242 | 242 | </target>
|
243 | 243 |
|
244 |
| - <fileset id="nugetfiles.all" basedir="src"> |
245 |
| - <include name="NHibernate/NHibernate.build" /> |
246 |
| - </fileset> |
247 |
| - |
248 |
| - <target name="nuspec" depends="init nuget.set-properties" description="Create nuspec files"> |
249 |
| - <nant target="nuspec"> |
250 |
| - <buildfiles refid="nugetfiles.all" /> |
251 |
| - </nant> |
252 |
| - </target> |
253 |
| - |
254 |
| - <target name="nuget" depends="init binaries nuget.set-properties nuspec" |
255 |
| - description="Creates files for the release on nuget gallery."> |
| 244 | + <fileset id="nugetfiles.all" basedir="src"> |
| 245 | + <include name="NHibernate/NHibernate.build" /> |
| 246 | + </fileset> |
| 247 | + |
| 248 | + <target name="nuspec" depends="init nuget.set-properties" description="Create nuspec files"> |
| 249 | + <nant target="nuspec"> |
| 250 | + <buildfiles refid="nugetfiles.all" /> |
| 251 | + </nant> |
| 252 | + </target> |
| 253 | + |
| 254 | + <target name="nuget" depends="init binaries nuget.set-properties nuspec" |
| 255 | + description="Creates files for the release on nuget gallery."> |
256 | 256 |
|
257 |
| - <nant target="nuget"> |
258 |
| - <buildfiles refid="nugetfiles.all" /> |
259 |
| - </nant> |
260 |
| - |
261 |
| - <mkdir dir="${nuget.nupackages.dir}" /> |
262 |
| - <move todir="${nuget.nupackages.dir}"> |
263 |
| - <fileset basedir="${nuget.workingdir}"> |
264 |
| - <include name="*.nupkg" /> |
265 |
| - </fileset> |
266 |
| - </move> |
267 |
| - </target> |
268 |
| - |
269 |
| - <target name="nugetpushbat" depends="init binaries common.download-nuget nuget.set-properties nuspec nuget" |
270 |
| - description="Creates files for the release on nuget gallery."> |
271 |
| - |
272 |
| - <copy file="${tools.dir}/NuGet.exe" todir="${nuget.nupackages.dir}"/> |
273 |
| - |
274 |
| - <echo message="rem In order to use this bat you have to be sure you have executed 'nuget SetApiKey' ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="false"/> |
275 |
| - <foreach item="File" property="filename"> |
276 |
| - <in> |
277 |
| - <items> |
278 |
| - <include name="${nuget.nupackages.dir}/*.nupkg"/> |
279 |
| - </items> |
280 |
| - </in> |
281 |
| - <do> |
282 |
| - <echo message="nuget push ${filename} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/> |
283 |
| - </do> |
284 |
| - </foreach> |
285 |
| - </target> |
286 |
| - |
287 |
| - <target name="nugetpush" depends="init binaries common.download-nuget nuget.set-properties nuspec nuget" |
288 |
| - description="Push packages on nuget gallery."> |
289 |
| - <!-- In order to use this task you have to be sure you have executed 'nuget SetApiKey' --> |
290 |
| - <foreach item="File" property="filename"> |
291 |
| - <in> |
292 |
| - <items> |
293 |
| - <include name="${nuget.nupackages.dir}/*.nupkg"/> |
294 |
| - </items> |
295 |
| - </in> |
296 |
| - <do> |
297 |
| - <exec basedir="${tools.dir}" workingdir="${nuget.nupackages.dir}" program="NuGet.exe"> |
298 |
| - <arg value="push" /> |
299 |
| - <arg value="${filename}" /> |
300 |
| - </exec> |
301 |
| - </do> |
302 |
| - </foreach> |
303 |
| - </target> |
| 257 | + <nant target="nuget"> |
| 258 | + <buildfiles refid="nugetfiles.all" /> |
| 259 | + </nant> |
| 260 | + |
| 261 | + <mkdir dir="${nuget.nupackages.dir}" /> |
| 262 | + <move todir="${nuget.nupackages.dir}"> |
| 263 | + <fileset basedir="${nuget.workingdir}"> |
| 264 | + <include name="*.nupkg" /> |
| 265 | + </fileset> |
| 266 | + </move> |
| 267 | + </target> |
| 268 | + |
| 269 | + <target name="nugetpushbat" depends="init binaries common.download-nuget nuget.set-properties nuspec nuget" |
| 270 | + description="Creates files for the release on nuget gallery."> |
| 271 | + |
| 272 | + <copy file="${tools.dir}/NuGet.exe" todir="${nuget.nupackages.dir}"/> |
| 273 | + |
| 274 | + <echo message="rem In order to use this bat you have to be sure you have executed 'nuget SetApiKey' ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="false"/> |
| 275 | + <foreach item="File" property="filename"> |
| 276 | + <in> |
| 277 | + <items> |
| 278 | + <include name="${nuget.nupackages.dir}/*.nupkg"/> |
| 279 | + </items> |
| 280 | + </in> |
| 281 | + <do> |
| 282 | + <echo message="nuget push ${filename} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/> |
| 283 | + </do> |
| 284 | + </foreach> |
| 285 | + </target> |
| 286 | + |
| 287 | + <target name="nugetpush" depends="init binaries common.download-nuget nuget.set-properties nuspec nuget" |
| 288 | + description="Push packages on nuget gallery."> |
| 289 | + <!-- In order to use this task you have to be sure you have executed 'nuget SetApiKey' --> |
| 290 | + <foreach item="File" property="filename"> |
| 291 | + <in> |
| 292 | + <items> |
| 293 | + <include name="${nuget.nupackages.dir}/*.nupkg"/> |
| 294 | + </items> |
| 295 | + </in> |
| 296 | + <do> |
| 297 | + <exec basedir="${tools.dir}" workingdir="${nuget.nupackages.dir}" program="NuGet.exe"> |
| 298 | + <arg value="push" /> |
| 299 | + <arg value="${filename}" /> |
| 300 | + </exec> |
| 301 | + </do> |
| 302 | + </foreach> |
| 303 | + </target> |
304 | 304 |
|
305 | 305 | </project>
|
0 commit comments