forked from chocolatey/choco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdateAssemblies.build
36 lines (31 loc) · 2.09 KB
/
updateAssemblies.build
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
<?xml version="1.0" encoding="utf-8" ?>
<project name="AssemblyDropper" default="go">
<!-- Project UppercuT - http://projectuppercut.org -->
<!-- DO NOT EDIT THIS FILE - This moves output files from your project to a folder to be consumed by other applications through something like externals - find out more at http://uppercut.pbwiki.com -->
<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.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
<include buildfile="${dirs.current.file}${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 -->
<property name="dirs.assemblies" value="${dirs.current}${path.separator}assemblies" overwrite="false" />
<target name="go" depends="load_uppercut_assemblies, run_tasks" />
<!-- run_normal_tasks is called from run_tasks unless replace extension exists-->
<target name="run_normal_tasks"
depends="error_check, update_assemblies"
description="Moving assemblies to make available for Externals." />
<target name="error_check">
<fail message="You must provide arguments to the command line like this updateAssemblies.build -D:project.name='SOLUTION_NAME_WITHOUT_EXTENSION' or pass the build configuration settings file updateAssemblies.build -D:build.config.settings='Settings${path.separator}Uppercut.config"
if="${project.name=='__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__'}" />
</target>
<target name="update_assemblies">
<echo level="Warning" message="Moving files to ${dirs.assemblies}." />
<copy todir="${dirs.assemblies}">
<fileset basedir="${dirs.drop}${path.separator}${folder.app.drop}">
<include name="**/*.*" />
</fileset>
</copy>
</target>
</project>