Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def getDependencies(self):
return [ tmt.TmtProject.projects['jsracer'] ]
def getDependencies(self):
return [ tmt.TmtProject.projects['scrambles'] ]
def getDependencies(self):
return [ tmt.TmtProject.projects['twisty.js'] ]
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self)
self.scramblesProject = tmt.TmtProject.projects['scrambles']
self.postProcessedDir = join(self.scramblesProject.name, 'postprocessed')
def getDependencies(self):
return [ tmt.TmtProject.projects['timer'],
tmt.TmtProject.projects['noderacer'],
tmt.TmtProject.projects['jracer'],
tmt.TmtProject.projects['quercus'],
]
def tweakJarFile(self, jar):
# We don't necessarily want all the plugins in self.plugins to load here,
# we only want the ones that the project we're currently building somehow
# depends on.
webProject = tmt.TmtProject.projects[tmt.args.project]
# Out jar file already contains everything needed to start up winstone.
# All the contents of tnoodle_resources are there too (including webroot).
# The problem is that even after compiling, webroot/WEB-INF/lib/ and
# webroot/WEB-INF/classes/ are still unpopulated, so simply jarring it up
# isn't good enough. Here we populate classes/ and lib/. To do so, we need
# all of the things that webProject depends on, EXCEPT for winstone (ourself).
deps = webProject.getRecursiveDependenciesTopoSorted(exclude=set([self]))
webInf = join("tnoodle_resources", "webapps", "ROOT", "WEB-INF")
libDir = join(webInf, "lib")
classesDir = join(webInf, "classes")
for project in deps:
assert project is not self
if hasattr(project, "jarFile"):
arcPath = join(libDir, basename(project.jarFile))