|
6 | 6 |
|
7 | 7 | =begin Supplementary Build Files
|
8 | 8 |
|
9 |
| -build\utils - Utilities for the build |
10 |
| -build\tasks\configuration.rb - Project specific configuration |
11 |
| -build\tasks\machine_specs.rb |
12 |
| -build\tasks\deployment.rb - Packaging tasks |
| 9 | +build\utils - build utilities |
| 10 | +build\tasks\configuration.rb - project specific configuration |
| 11 | +build\tasks\machine_specs.rb - mspec tasks |
| 12 | +build\tasks\git.rb - git tasks |
13 | 13 |
|
14 | 14 | =end
|
15 | 15 |
|
16 |
| -%w[utils tasks].each do|folder| |
| 16 | +#configuration files |
| 17 | +config_files = FileList.new("source/config/*.erb") |
| 18 | + |
| 19 | +task :copy_config_files do |
| 20 | + config_files.each do |file| |
| 21 | + [configatron.artifacts_dir,configatron.app_dir].each do|folder| |
| 22 | + FileUtils.cp(file.name_without_template_extension, |
| 23 | + folder.join(file.base_name_without_extension)) |
| 24 | + end |
| 25 | + end |
| 26 | +end |
| 27 | + |
| 28 | +%w[utils configuration tasks].each do|folder| |
17 | 29 | Dir.glob(File.join(File.dirname(__FILE__),"build/#{folder}/*.rb")).each do|item|
|
18 | 30 | require item
|
19 | 31 | end
|
20 | 32 | end
|
21 | 33 |
|
22 |
| -Rake::Task['configure'].invoke |
23 |
| - |
24 |
| -[ |
25 |
| - configatron.artifacts_dir, |
26 |
| - configatron.specs.dir |
27 |
| -].each do |item| |
| 34 | +[configatron.artifacts_dir, configatron.specs.dir].each do |item| |
28 | 35 | CLEAN.include(item)
|
29 | 36 | end
|
30 | 37 |
|
|
33 | 40 |
|
34 | 41 | @project_files = FileList.new("#{configatron.source_dir}/**/*.csproj")
|
35 | 42 |
|
36 |
| -#configuration files |
37 |
| -config_files = FileList.new(File.join(configatron.source_dir,'config','*.erb')).select{|fn| ! fn.include?('app.config')} |
38 | 43 |
|
39 | 44 | #target folders that can be run from VS
|
40 | 45 | solution_file = "solution.sln"
|
|
60 | 65 | :switches => { :verbosity => :minimal, :target => :Build },
|
61 | 66 | :properties => {
|
62 | 67 | :Configuration => configatron.target,
|
63 |
| - :TrackFileAccess => false |
| 68 | + :TrackFileAccess => false, |
| 69 | + :PostBuildEvent => "" |
64 | 70 | }
|
65 | 71 | }
|
66 | 72 |
|
|
72 | 78 | end
|
73 | 79 | end
|
74 | 80 |
|
75 |
| - task :from_ide do |
76 |
| - config_files.each do |file| |
77 |
| - [configatron.artifacts_dir].each do|folder| |
78 |
| - FileUtils.cp(file.name_without_template_extension, |
79 |
| - folder.join(file.base_name_without_extension)) |
80 |
| - end |
81 |
| - end |
82 |
| - end |
83 |
| - |
84 | 81 | task :rebuild => ["clean","compile"]
|
85 | 82 | end
|
0 commit comments