lib/cpee/implementation.rb in cpee-1.3.177 vs lib/cpee/implementation.rb in cpee-1.3.178
- old
+ new
@@ -33,9 +33,18 @@
opts[:properties_schema_finished] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/properties.schema.finished')
opts[:properties_schema_inactive] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/properties.schema.inactive')
opts[:transformation_dslx] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/transformation_dslx.xsl')
opts[:transformation_service] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/transformation.xml')
opts[:empty_dslx] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/empty_dslx.xml')
+ opts[:infinite_loop_stop] ||= 10000
+
+ opts[:runtime_options] << [
+ "startclean", "delete instances before starting.", Proc.new { |status|
+ Dir.glob(File.expand_path(File.dirname(__FILE__) + '/../../server/instances/*')).each do |d|
+ FileUtils.rm_r(d) if File.basename(d) =~ /^\d+$/
+ end
+ }
+ ]
Proc.new do
Dir[opts[:global_handlerwrappers] + "/*.rb"].each do |h|
require h
end unless opts[:global_handlerwrappers].strip == ''