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