comparison rakefile @ 92:ebefa5c2eab4

moving ICU bindings to com.ibm.icu
author Frank Benoit <benoit@tionex.de>
date Sun, 19 Apr 2009 13:49:38 +0200
parents 12b890a6392a
children 1d37a7813832
comparison
equal deleted inserted replaced
91:2755ef2c8ef8 92:ebefa5c2eab4
74 "org.eclipse.osgi.supplement", 74 "org.eclipse.osgi.supplement",
75 "org.eclipse.equinox.common" ] 75 "org.eclipse.equinox.common" ]
76 76
77 LIBNAMES_CORE = [ "org.eclipse.core.runtime", 77 LIBNAMES_CORE = [ "org.eclipse.core.runtime",
78 "org.eclipse.core.commands", 78 "org.eclipse.core.commands",
79 "org.eclipse.core.databinding",
79 "org.eclipse.core.jobs" ] 80 "org.eclipse.core.jobs" ]
80 81
81 LIBNAMES_JFACE = [ "org.eclipse.jface" ] 82 LIBNAMES_JFACE = [ "org.eclipse.jface" ]
83
84 LIBNAMES_JFACEBIND = [ "org.eclipse.jface.databinding" ]
82 85
83 LIBNAMES_JFACETEXT = [ "org.eclipse.text", 86 LIBNAMES_JFACETEXT = [ "org.eclipse.text",
84 "org.eclipse.jface.text.projection", 87 "org.eclipse.jface.text.projection",
85 "org.eclipse.jface.text", ] 88 "org.eclipse.jface.text", ]
86 89
311 buildTree( "org.eclipse.equinox.common", "src", "res" ) 314 buildTree( "org.eclipse.equinox.common", "src", "res" )
312 end 315 end
313 316
314 desc "Build Eclipse Core" 317 desc "Build Eclipse Core"
315 task :core do 318 task :core do
319 buildTree( "com.ibm.icu", "src", "res" )
316 buildTree( "org.eclipse.core.runtime", "src", "res" ) 320 buildTree( "org.eclipse.core.runtime", "src", "res" )
317 buildTree( "org.eclipse.core.commands", "src", "res" ) 321 buildTree( "org.eclipse.core.commands", "src", "res" )
322 buildTree( "org.eclipse.core.databinding", "src", "res" )
318 buildTree( "org.eclipse.core.jobs", "src", "res" ) 323 buildTree( "org.eclipse.core.jobs", "src", "res" )
319 end
320
321 desc "Build Jface Databinding"
322 task :jfacebind do
323 buildTree( "org.eclipse.jface.databinding", "src", "res" )
324 end
325 desc "Build Databinding"
326 task :bind do
327 buildTree( "com.ibm.icu", "src", "res" )
328 buildTree( "org.eclipse.core.databinding", "src", "res" )
329 buildTree( "org.eclipse.jface.databinding", "src", "res" )
330 end 324 end
331 325
332 desc "Build JFace" 326 desc "Build JFace"
333 task :jface do 327 task :jface do
334 buildTree( "org.eclipse.jface", "src", "res" ) 328 buildTree( "org.eclipse.jface", "src", "res" )
329 buildTree( "org.eclipse.jface.databinding", "src", "res" )
335 end 330 end
336 331
337 desc "Build Eclipse Tools" 332 desc "Build Eclipse Tools"
338 task :eclipsetools do 333 task :eclipsetools do
339 buildTree( "org.eclipse.tools", "Sleak", "res" ) 334 buildTree( "org.eclipse.tools", "Sleak", "res" )
427 end 422 end
428 end 423 end
429 end 424 end
430 425
431 426
432 427 desc "Build JFace Databinding Snippet Collection"
428 task :bindsnippets, :explicit_snp do | t, args |
429
430 PREFIX = "Bind"
431 SRCPATH = "src"
432 BASEPATH = "org.eclipse.jface.examples.databinding"
433 libnames = LIBNAMES_BASIC + LIBNAMES_SWT + LIBNAMES_EQUINOX +
434 LIBNAMES_CORE + LIBNAMES_JFACE + LIBNAMES_JFACEBIND
435 snps_exclude = []
436 allsnippets = FileList[ File.join(BASEPATH, SRCPATH, "**/*.d" )]
437 if args.explicit_snp != nil
438 snpname = args.explicit_snp
439 puts "Building jfacesnippets[#{snpname}]"
440 buildApp( BASEPATH, SRCPATH, "res", "", PREFIX, args.explicit_snp, nil, libnames )
441 else
442 allsnippets.each do | snp |
443 if snp =~ /.*[\\\/](\w+)\.d$/
444 snpname = $1
445 puts "Building jfacesnippets[#{snpname}]"
446 if !snps_exclude.include? snpname
447 buildApp( BASEPATH, SRCPATH, "res", "", PREFIX, snpname, nil, libnames )
448 end
449 else
450 puts snp
451 raise "Name does not match #{snp}"
452 end
453 end
454 end
455 end
456
457
458