diff rakefile @ 99:5d5bd660917f

build some databind snippets
author Frank Benoit <benoit@tionex.de>
date Wed, 22 Apr 2009 18:59:26 +0200
parents 48d4ee626868
children 85aaba05e058
line wrap: on
line diff
--- a/rakefile	Wed Apr 22 07:30:21 2009 +0200
+++ b/rakefile	Wed Apr 22 18:59:26 2009 +0200
@@ -79,7 +79,6 @@
                         "org.eclipse.core.commands",
                         "org.eclipse.core.databinding",
                         "org.eclipse.core.databinding.beans",
-                        "org.eclipse.core.databinding.observable",
                         "org.eclipse.core.jobs" ]
 
 LIBNAMES_JFACE      = [ "org.eclipse.jface" ]
@@ -446,22 +445,35 @@
                LIBNAMES_ICU
     snps_exclude = []
     allsnippets = FileList[ File.join(BASEPATH, SRCPATH, "**/*.d" )]
+    rmlistadd = true
     if args.explicit_snp != nil
-        snpname = args.explicit_snp
-        puts "Building jfacesnippets[#{snpname}]"
-        buildApp( BASEPATH, SRCPATH, "res", "", PREFIX, args.explicit_snp, nil, libnames )
-    else
+        rmlist = FileList.new
         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
+            until snp =~ /.*[\\\/](\w+)\.d$/
                 puts snp
                 raise "Name does not match #{snp}"
             end
+            if $1 == args.explicit_snp
+                rmlistadd = false
+            end
+            if rmlistadd
+                rmlist << snp
+            end
+        end
+    end
+    rmlist.each do | snp |
+        allsnippets.exclude snp
+    end
+    allsnippets.each do | snp |
+        if snp =~ /.*[\\\/](\w+)\.d$/
+            snpname = $1
+            puts "Building bindsnippets[#{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