How to use the tmt.TmtProject.projects function in tmt

To help you get started, we’ve selected a few tmt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thewca / tnoodle / noderacer / tmtproject.py View on Github external
def getDependencies(self):
        return [ tmt.TmtProject.projects['jsracer'] ]
github thewca / tnoodle / tnoodle-android / tmtproject.py View on Github external
def getDependencies(self):
        return [ tmt.TmtProject.projects['scrambles'] ]
github thewca / tnoodle / jsracer / tmtproject.py View on Github external
def getDependencies(self):
        return [ tmt.TmtProject.projects['twisty.js'] ]
github thewca / tnoodle / tnoodlejs / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)
        tmt.WinstoneServer.addPlugin(self)
        self.scramblesProject = tmt.TmtProject.projects['scrambles']
        self.postProcessedDir = join(self.scramblesProject.name, 'postprocessed')
github thewca / tnoodle / all / tmtproject.py View on Github external
def getDependencies(self):
		return [ tmt.TmtProject.projects['timer'],
			 	 tmt.TmtProject.projects['noderacer'],
				 tmt.TmtProject.projects['jracer'],
				 tmt.TmtProject.projects['quercus'],
                 ]
github thewca / tnoodle / winstone / tmtproject.py View on Github external
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))