tools/cpee in cpee-2.0.30 vs tools/cpee in cpee-2.1.0
- old
+ new
@@ -109,15 +109,21 @@
doc.register_namespace 'x', 'http://cpee.org/ns/properties/2.0'
if doc.root.qname.name == 'testset'
doc.root.namespaces[nil] = 'http://cpee.org/ns/properties/2.0'
doc.root.namespace = nil
+ doc.find('//x:handlerwrapper').each do |e|
+ if e.text == 'DefaultHandlerWrapper'
+ doc.root.prepend('x:executionhandler','ruby')
+ end
+ end rescue nil
+ doc.find('//x:handlerwrapper').delete_all!
doc.find('//x:start_url').each do |e|
- e.text = 'https://centurio.work/flow-test/start/url/'
+ e.text = 'https://cpee.org/flow/start/url/'
end rescue nil
doc.find('//x:start_git').each do |e|
- e.text = 'https://centurio.work/flow-test/start/git/'
+ e.text = 'https://cpee.org/flow/start/git/'
end rescue nil
doc.find('//d:finalize | //d:update | //d:prepare | //d:rescue').each do |e|
if e.parent.qname.name != 'code'
n = e.parent
if (x = n.find('d:code')).any?
@@ -255,10 +261,10 @@
if !File.exists?(p1)
FileUtils.cp_r("#{curpath}/server/",p1)
FileUtils.mkdir("#{p1}/archive") rescue nil
FileUtils.mkdir("#{p1}/instances") rescue nil
FileUtils.mkdir("#{p1}/resources") rescue nil
- FileUtils.mkdir("#{p1}/handlerwrappers") rescue nil
+ FileUtils.mkdir("#{p1}/executionhandler") rescue nil
Dir["#{curpath}/../systemd/*.service"].each do |f|
nam = File.basename f
cont = File.read(f)
cont.gsub!(/{CPEEUSER}/,`whoami`.strip)
cont.gsub!(/{CPEEWORKINGDIR}/,"#{File.realpath(p1)}")