Created
February 25, 2010 23:42
-
-
Save olleolleolle/315188 to your computer and use it in GitHub Desktop.
Add "desc" calls, and move a mkdir around, to have it for both Win32 and Unix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: rake-tasks/se-ide.rb | |
| =================================================================== | |
| --- rake-tasks/se-ide.rb (revision 8429) | |
| +++ rake-tasks/se-ide.rb (working copy) | |
| @@ -4,7 +4,9 @@ | |
| base_ide_dir = File.expand_path(File.dirname(Dir.glob("Rakefile")[0])) | |
| files = [] | |
| + desc "Prepare the development environment for the Selenium IDE Firefox plugin" | |
| task :setup_proxy do | |
| + mkdir "ide/src/extension/content-files" | |
| if unix? | |
| # the files in core -- except for the scripts directory which already exists in the target | |
| ln_s Dir.glob(base_ide_dir + "/common/src/js/core/*").select { |fn| fn != base_ide_dir + "/common/src/js/core/scripts" }, | |
| @@ -29,7 +31,6 @@ | |
| end | |
| # and lastly the scriptrunner | |
| - mkdir "ide/src/extension/content-files" | |
| f = Dir.glob(base_ide_dir + "/common/src/js/core/scripts/selenium-testrunner.js") | |
| f.each do |c| | |
| files << base_ide_dir + "ide/src/extension/content-files/selenium-testrunner.js" | |
| @@ -61,6 +62,7 @@ | |
| end | |
| end | |
| + desc "Tear down the development environment for the Selenium IDE Firefox plugin" | |
| task :remove_proxy do | |
| if unix? | |
| Dir.glob("ide/**/*").select { |fn| rm fn if File.symlink?(fn) } | |
| @@ -74,9 +76,9 @@ | |
| end | |
| end | |
| listoffiles.close() | |
| - rm base_ide_dir + "/proxy_files.txt" | |
| + rm base_ide_dir + "/proxy_files.txt" | |
| end | |
| - | |
| - rm "ide/src/extension/components/SeleniumIDEGenericAutoCompleteSearch.xpt" | |
| + rm "ide/src/extension/components/SeleniumIDEGenericAutoCompleteSearch.xpt" if File.exists?("ide/src/extension/components/SeleniumIDEGenericAutoCompleteSearch.xpt") | |
| + rm_rf "ide/src/extension/content-files" if File.exists?("ide/src/extension/content-files") | |
| end | |
| end | |
| \ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment