summaryrefslogtreecommitdiff
path: root/scripts/builder
authorGiulio Cesare Solaroli <giulio.cesare@clipperz.com>2012-03-03 22:03:57 (UTC)
committer Giulio Cesare Solaroli <giulio.cesare@clipperz.com>2012-03-03 22:03:57 (UTC)
commitcf9c0c34e1358452e0c7276c5b3ec6598f0c089d (patch) (unidiff)
treed9366dae335a9bded5c0ee859895abe251790818 /scripts/builder
parent7804333809bf725e32a08c531a06acd7d668e190 (diff)
downloadclipperz-cf9c0c34e1358452e0c7276c5b3ec6598f0c089d.zip
clipperz-cf9c0c34e1358452e0c7276c5b3ec6598f0c089d.tar.gz
clipperz-cf9c0c34e1358452e0c7276c5b3ec6598f0c089d.tar.bz2
Added static resources used when exiting the application
Signed-off-by: Giulio Cesare Solaroli <giulio.cesare@clipperz.com>
Diffstat (limited to 'scripts/builder') (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/builder/backendBuilder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/builder/backendBuilder.py b/scripts/builder/backendBuilder.py
index 5ecdda0..3e61955 100644
--- a/scripts/builder/backendBuilder.py
+++ b/scripts/builder/backendBuilder.py
@@ -83,36 +83,36 @@ class BackendBuilder(object):
83 def shouldCompileCode (self): 83 def shouldCompileCode (self):
84 return ('debug' in self.versions) or ('install' in self.versions) 84 return ('debug' in self.versions) or ('install' in self.versions)
85 85
86 86
87 def run (self): 87 def run (self):
88 print self.name() + " - RUN" 88 print self.name() + " - RUN"
89 89
90 if self.shouldCompileCode(): 90 if self.shouldCompileCode():
91 self.compileCode() 91 self.compileCode()
92 92
93 for frontend in self.frontends: 93 for frontend in self.frontends:
94 main.createFolder(os.path.join(self.frontEndTempFolder(), frontend.module)) 94 main.createFolder(os.path.join(self.frontEndTempFolder(), frontend.module))
95 95
96 if 'debug' in self.versions: 96 if 'debug' in self.versions:
97 frontend.copyResourcesToFolder(self.frontEndTempFolder()) 97 frontend.copyResourcesToFolder(self.frontEndTempFolder())
98 98
99 index = self.configureIndexContent(frontend.assemble(assemblyMode='DEBUG', versionType='DEBUG')) 99 index = self.configureIndexContent(frontend.assemble(assemblyMode='DEBUG', versionType='DEBUG'))
100 self.writeToFolder(self.frontEndTempFolder(), os.path.join(frontend.module, 'index_debug.html'), index) 100 self.writeToFolder(self.frontEndTempFolder(), os.path.join(frontend.module, 'index_debug.html'), index)
101 101
102 if 'install' in self.versions: 102 if 'install' in self.versions:
103 index = self.configureIndexContent(frontend.assemble()) 103 index = self.configureIndexContent(frontend.assemble())
104 self.writeToFolder(self.frontEndTempFolder(), os.path.join(frontend.module, 'index.html'), index) 104 self.writeToFolder(self.frontEndTempFolder(), os.path.join(frontend.module, 'index.html'), index)
105 105
106 self.logChecksums(index, "[" + self.name() + " - " + frontend.module + "] index.html checksum") 106 self.logChecksums(index, "[" + self.name() + " - " + frontend.module + "] index.html checksum")
107 107
108 self.createPackage() 108 self.createPackage()
109 109
110 if 'development' in self.versions: 110 if 'development' in self.versions:
111 for frontend in self.frontends: 111 for frontend in self.frontends:
112 main.createFolder(os.path.join(self.developmentTargetFolder(), frontend.module)) 112 main.createFolder(os.path.join(self.developmentTargetFolder(), frontend.module))
113 113
114 index = self.configureIndexContent(frontend.assemble(assemblyMode='DEVELOPMENT', versionType='DEBUG'), self.settings['development.settings']['url']) 114 index = self.configureIndexContent(frontend.assemble(assemblyMode='DEVELOPMENT', versionType='DEBUG'), self.settings['development.settings']['url'])
115 self.writeToFolder(self.developmentTargetFolder(), os.path.join(frontend.module, 'index_development.html'), index) 115 self.writeToFolder(self.developmentTargetFolder(), os.path.join(frontend.module, 'index.html'), index)
116 116
117 117
118#=================================================================== 118#===================================================================