Project

General

Profile

« Previous | Next » 

Revision 46708

added branches

View differences:

modules/dnet45-DSL-job/DSL_Creator.py
46 46
os.makedirs('/tmp/DSL45')
47 47
client = pysvn.Client()
48 48

  
49

  
50
entry_list = client.ls("http://svn-public.driver.research-infrastructures.eu/driver/dnet45/modules/") + client.ls("http://svn-public.driver.research-infrastructures.eu/driver/LBS/")+ client.ls("http://svn-public.driver.research-infrastructures.eu/driver/dnet50/modules/") 
51

  
52
data_list =[]
53
renderer = pystache.Renderer()
54

  
55
f = open("/tmp/DSL45/configuration.xml", "w")
56
f.write('<?xml version="1.0"?>')
57
f.write("\n")
58
f.write("<modules>")
59
f.write("\n")
60

  
61
for e in entry_list:
62
    name = e.name
63
    if "dnet-container-openaireplus" in name:
64
        print name
49
def make_job(path, client, f):
65 50
    try:
66
        data =json.loads(client.cat(e.name + "/trunk/deploy.info"))
51
        data =json.loads(client.cat(path))
67 52
        if isinstance(data, list):
68 53
            for d_elem in data:
69 54
                data_list.append(d_elem)
......
78 63
            f.write(renderer.render(d))
79 64
            f.write("\n")
80 65
    except Exception as e:
81
        print "NOT FOUND IN %s "% (name.split('/')[-1])
82
        print e
66
        pass
83 67

  
68

  
69
entry_list = client.ls("http://svn-public.driver.research-infrastructures.eu/driver/dnet45/modules/") + client.ls("http://svn-public.driver.research-infrastructures.eu/driver/LBS/")+ client.ls("http://svn-public.driver.research-infrastructures.eu/driver/dnet50/modules/") 
70

  
71
data_list =[]
72
renderer = pystache.Renderer()
73

  
74
f = open("/tmp/DSL45/configuration.xml", "w")
75
f.write('<?xml version="1.0"?>')
84 76
f.write("\n")
77
f.write("<modules>")
78
f.write("\n")
79

  
80
for e in entry_list:
81
    name = e.name
82
    make_job(e.name + "/trunk/deploy.info", client, f)
83
    make_job(e.name + "/branches/saxonHE/deploy.info", client, f)
84

  
85
    
86

  
87
f.write("\n")
85 88
f.write("</modules>")
86 89
f.close()

Also available in: Unified diff