| 27 | | Dir[File.join(from_path, '*.rb')].each do |name| |
|---|
| 28 | | basename = File.basename(name) |
|---|
| 29 | | if File.exist?(File.join(to_path_rubylib, basename)) |
|---|
| 30 | | install(name, to_path_rubylib) |
|---|
| | 27 | Dir[File.join(from_path, '*.rb')].each do |from_file| |
|---|
| | 28 | basename = File.basename(from_file) |
|---|
| | 29 | to_file_rubylib = File.join(to_path_rubylib, basename) |
|---|
| | 30 | to_file_sitelib = File.join(to_path_sitelib, basename) |
|---|
| | 31 | if File.exist?(to_file_rubylib) |
|---|
| | 32 | if File.exist?(to_file_sitelib) |
|---|
| | 33 | raise RuntimeError.new( |
|---|
| | 34 | "trying to install '#{ to_file_rubylib }' but '#{ to_file_sitelib }' exists. please remove '#{ to_file_sitelib }' first to avoid versioning problem and run installer again.") |
|---|
| | 35 | end |
|---|
| | 36 | install(from_file, to_path_rubylib) |
|---|
| 39 | | install_dir('soap') |
|---|
| 40 | | install_dir('soap', 'rpc') |
|---|
| 41 | | install_dir('soap', 'mapping') |
|---|
| 42 | | install_dir('soap', 'encodingstyle') |
|---|
| 43 | | install_dir('soap', 'header') |
|---|
| 44 | | install_dir('wsdl') |
|---|
| 45 | | install_dir('wsdl', 'xmlSchema') |
|---|
| 46 | | install_dir('wsdl', 'soap') |
|---|
| 47 | | install_dir('xsd') |
|---|
| 48 | | install_dir('xsd', 'codegen') |
|---|
| 49 | | install_dir('xsd', 'xmlparser') |
|---|
| | 45 | install_dir(SRCPATH, 'soap') |
|---|
| | 46 | install_dir(SRCPATH, 'soap', 'rpc') |
|---|
| | 47 | install_dir(SRCPATH, 'soap', 'mapping') |
|---|
| | 48 | install_dir(SRCPATH, 'soap', 'encodingstyle') |
|---|
| | 49 | install_dir(SRCPATH, 'soap', 'header') |
|---|
| | 50 | install_dir(SRCPATH, 'wsdl') |
|---|
| | 51 | install_dir(SRCPATH, 'wsdl', 'xmlSchema') |
|---|
| | 52 | install_dir(SRCPATH, 'wsdl', 'soap') |
|---|
| | 53 | install_dir(SRCPATH, 'xsd') |
|---|
| | 54 | install_dir(SRCPATH, 'xsd', 'codegen') |
|---|
| | 55 | install_dir(SRCPATH, 'xsd', 'xmlparser') |
|---|
| | 56 | |
|---|
| | 57 | # xmlscan |
|---|
| | 58 | xmlscansrcdir = File.join('redist', 'xmlscan', 'xmlscan-20050522', 'lib') |
|---|
| | 59 | if File.exists?(xmlscansrcdir) |
|---|
| | 60 | install_dir(xmlscansrcdir, 'xmlscan') |
|---|
| | 61 | end |
|---|