forked from chocolatey/choco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnugetBuild.post.step
37 lines (33 loc) · 1.71 KB
/
nugetBuild.post.step
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="utf-8"?>
<project name="CUSTOM REPLACE NUGETBUILD" default="go">
<!-- Project UppercuT - http://projectuppercut.org -->
<property name="build.config.settings" value="__NONE__" overwrite="false" />
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" />
<property name="dirs.current" value="${directory::get-current-directory()}" />
<property name="dirs.current.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
<property name="folder.build_scripts" value="build" overwrite="false" />
<include buildfile="${dirs.current}${path.separator}${folder.build_scripts}${path.separator}default.build.settings" />
<property name="build.step.name" value="${project::get-name()}" />
<property name="build.step.path" value="${project::get-buildfile-path()}" />
<!-- build step customizations below this -->
<target name="go" depends="run_normal_tasks" />
<target name="run_normal_tasks"
depends="flatten_files"
description=""
if="${run.nuget and directory::exists(dirs.nuget) and file::exists(app.nuget)}" />
<target name="flatten_files">
<echo level="Warning" message="Bringing nupkg files up to '${dirs.drop.nuget}' directory" />
<copy todir="${dirs.drop.nuget}" flatten="true">
<fileset basedir="${dirs.drop.nuget}">
<include name="**/*.nupkg" />
</fileset>
</copy>
<delete>
<fileset basedir="${dirs.drop.nuget}" >
<exclude name="*.nupkg" />
<include name="**/*" />
</fileset>
</delete>
</target>
</project>