lib/tasks/setup.rb in dev-2.0.281 vs lib/tasks/setup.rb in dev-2.0.282
- old
+ new
@@ -98,16 +98,19 @@
end
end
end
}
Dir.glob('**/*.wxs').each{|wxs|
- current_version=IO.read(wxs).scan(/\sVersion=[\"']([\d.]+)[\"']/)[0][0]
- puts "#{wxs} current version=#{current_version}" if env.debug?
- if(!current_version.nil?)#nclude?('Version='))
- target_version=VERSION#{}"Version=\"#{VERSION}\")="
- if(current_version != target_version)
- add_quiet "<%Text.replace_in_file('#{wxs}','#{current_version}','#{target_version}')%>"
+ begin
+ current_version=IO.read(wxs).scan(/\sVersion=[\"']([\d.]+)[\"']/)[0][0]
+ puts "#{wxs} current version=#{current_version}" if env.debug?
+ if(!current_version.nil?)#nclude?('Version='))
+ target_version=VERSION#{}"Version=\"#{VERSION}\")="
+ if(current_version != target_version)
+ add_quiet "<%Text.replace_in_file('#{wxs}','#{current_version}','#{target_version}')%>"
+ end
end
+ rescue
end
}
end
end
end
\ No newline at end of file