summaryrefslogtreecommitdiff
path: root/scripts/builder/frontends/gammaBuilder.py
blob: c56fb1b242f945edb03c9a945d4d39734d915c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from frontendBuilder import FrontendBuilder
import shutil

class GammaBuilder(FrontendBuilder):

	def name(self):
		return "/gamma builder"

	def projectResourceTypes (self):
		return ['js', 'css', 'images']

	def copyStaticResources (self, targetFolder):
		resourcesToCopy = [
#			{'folder': 'html',	'source': 'exit_template.html',	'target': 'exit.html'},
			{'folder': 'html',	'source': 'exit_template.html',	'target': 'logout.html'},
			{'folder': 'css',	'source': 'static.css',			'target': 'static.css'}
		]

		for resource in resourcesToCopy:
			src = self.absolutePathForSourceFile(resource['folder'], resource['source'])
			dst = self.absolutePathForTargetFile(targetFolder, '', resource['target'])
			shutil.copy2(src, dst)

		# src = self.absolutePathForSourceFile('html', 'exit_template.html')
		# dst = self.absolutePathForTargetFile(targetFolder, '', 'exit.html')
		# shutil.copy2(src, dst)

		# src = self.absolutePathForSourceFile('css', 'static.css')
		# dst = self.absolutePathForTargetFile(targetFolder, '', 'static.css')
		# shutil.copy2(src, dst)