comparison rakefile @ 33:712f3c7f7660

make clean work without require existing files
author Frank Benoit <benoit@tionex.de>
date Mon, 23 Mar 2009 12:16:13 +0100
parents 93b0e7382fd5
children a8a838017920
comparison
equal deleted inserted replaced
32:c4b36186a9bc 33:712f3c7f7660
137 task :clean do 137 task :clean do
138 puts "Cleaning" 138 puts "Cleaning"
139 FileUtils.rm_rf DIMPDIR 139 FileUtils.rm_rf DIMPDIR
140 FileUtils.rm_rf OBJDIR 140 FileUtils.rm_rf OBJDIR
141 FileUtils.rm_rf LIBDIR 141 FileUtils.rm_rf LIBDIR
142 FileUtils.rm RSPNAME 142 FileUtils.rm RSPNAME, :force => true
143 FileUtils.rm LOG_STDOUT 143 FileUtils.rm LOG_STDOUT, :force => true
144 FileUtils.rm LOG_STDERR 144 FileUtils.rm LOG_STDERR, :force => true
145 end 145 end
146 146
147 desc "Build Base (Java Environment and Helpers)" 147 desc "Build Base (Java Environment and Helpers)"
148 task :base do 148 task :base do
149 buildTree( "base", "src", "res", "", "dwt-base" ) 149 buildTree( "base", "src", "res", "", "dwt-base" )
218 puts "Building #{snp}" 218 puts "Building #{snp}"
219 if snp =~ /.*(Snippet\w+)\.d$/ 219 if snp =~ /.*(Snippet\w+)\.d$/
220 snpname = $1 220 snpname = $1
221 if !snps_exclude.include? snpname 221 if !snps_exclude.include? snpname
222 buildApp( "org.eclipse.swt.snippets", "src", "res", "", snpname ) 222 buildApp( "org.eclipse.swt.snippets", "src", "res", "", snpname )
223 end
224 else
225 puts snp
226 raise "Name does not match"
227 end
228 end
229 end
230 end
231
232 desc "Build JFace Snippet Collection"
233 task :jfacesnippets, :explicit_snp do | t, args |
234
235 snps_exclude = []
236 allsnippets = FileList[ File.join("org.eclipse.jface.snippets", "EclipseJfaceSnippets", "**/*.d" )]
237 if args.explicit_snp != nil
238 puts "Building #{args.explicit_snp}"
239 buildApp( "org.eclipse.jface.snippets", "src", "res", "", args.explicit_snp )
240 else
241 allsnippets.each do | snp |
242 puts "Building #{snp}"
243 if snp =~ /.*[\\\/](\w+)\.d$/
244 snpname = $1
245 if !snps_exclude.include? snpname
246 buildApp( "org.eclipse.jface.snippets", "src", "res", "", snpname )
223 end 247 end
224 else 248 else
225 puts snp 249 puts snp
226 raise "Name does not match" 250 raise "Name does not match"
227 end 251 end