diff 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
line wrap: on
line diff
--- a/rakefile	Sun Apr 19 12:22:47 2009 +0200
+++ b/rakefile	Sun Apr 19 13:49:38 2009 +0200
@@ -76,10 +76,13 @@
 
 LIBNAMES_CORE       = [ "org.eclipse.core.runtime",
                         "org.eclipse.core.commands",
+                        "org.eclipse.core.databinding",
                         "org.eclipse.core.jobs" ]
 
 LIBNAMES_JFACE      = [ "org.eclipse.jface" ]
 
+LIBNAMES_JFACEBIND  = [ "org.eclipse.jface.databinding" ]
+
 LIBNAMES_JFACETEXT  = [ "org.eclipse.text",
                         "org.eclipse.jface.text.projection",
                         "org.eclipse.jface.text", ]
@@ -313,25 +316,17 @@
 
 desc "Build Eclipse Core"
 task :core do
+    buildTree( "com.ibm.icu", "src", "res" )
     buildTree( "org.eclipse.core.runtime", "src", "res" )
     buildTree( "org.eclipse.core.commands", "src", "res" )
+    buildTree( "org.eclipse.core.databinding", "src", "res" )
     buildTree( "org.eclipse.core.jobs", "src", "res" )
 end
 
-desc "Build Jface Databinding"
-task :jfacebind do
-    buildTree( "org.eclipse.jface.databinding", "src", "res" )
-end
-desc "Build Databinding"
-task :bind do
-    buildTree( "com.ibm.icu", "src", "res" )
-    buildTree( "org.eclipse.core.databinding", "src", "res" )
-    buildTree( "org.eclipse.jface.databinding", "src", "res" )
-end
-
 desc "Build JFace"
 task :jface do
     buildTree( "org.eclipse.jface", "src", "res" )
+    buildTree( "org.eclipse.jface.databinding", "src", "res" )
 end
 
 desc "Build Eclipse Tools"
@@ -429,4 +424,35 @@
 end
 
 
+desc "Build JFace Databinding Snippet Collection"
+task :bindsnippets, :explicit_snp do | t, args |
 
+    PREFIX = "Bind"
+    SRCPATH = "src"
+    BASEPATH = "org.eclipse.jface.examples.databinding"
+    libnames = LIBNAMES_BASIC + LIBNAMES_SWT + LIBNAMES_EQUINOX +
+               LIBNAMES_CORE + LIBNAMES_JFACE + LIBNAMES_JFACEBIND
+    snps_exclude = []
+    allsnippets = FileList[ File.join(BASEPATH, SRCPATH, "**/*.d" )]
+    if args.explicit_snp != nil
+        snpname = args.explicit_snp
+        puts "Building jfacesnippets[#{snpname}]"
+        buildApp( BASEPATH, SRCPATH, "res", "", PREFIX, args.explicit_snp, nil, libnames )
+    else
+        allsnippets.each do | snp |
+            if snp =~ /.*[\\\/](\w+)\.d$/
+                snpname = $1
+                puts "Building jfacesnippets[#{snpname}]"
+                if !snps_exclude.include? snpname
+                    buildApp( BASEPATH, SRCPATH, "res", "", PREFIX, snpname, nil, libnames )
+                end
+            else
+                puts snp
+                raise "Name does not match #{snp}"
+            end
+        end
+    end
+end
+
+
+