How to use the tmt.EclipseProject.compile 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 / server / tmtproject.py View on Github external
def compile(self):
		tmt.EclipseProject.compile(self)
		context = ''

		# 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.
		deps = tmt.TmtProject.projects[tmt.args.project].getRecursiveDependenciesTopoSorted()

		for project in self.plugins.values():
			if project not in deps:
				continue
			contextFileName = project.contextFileName
			assert exists(contextFileName)

			if project != self:
				linkName = join(self.serverPluginBinDir, project.name)
				dest = relpath(project.serverPluginPackageBinDir, self.serverPluginBinDir)
github thewca / tnoodle / jracer / tmtproject.py View on Github external
def compile(self):
        tmt.EclipseProject.compile(self)
github thewca / tnoodle / fivephase / tmtproject.py View on Github external
def compile(self):
		tmt.EclipseProject.compile(self)
		# build the pruning and transition tables for the two phase algorithm
		# iff they don't already exist
		if not exists(self.fivephase_tables):
			print "Generating %s" % self.fivephase_tables
			assert 0 == tmt.java(
							main="cg.fivestage444.Tools",
							classpath=self.getClasspath(),
							args=[ self.fivephase_tables ])
			print "Successfully generated %s!" % self.fivephase_tables
github thewca / tnoodle / sq12phase / tmtproject.py View on Github external
def compile(self):
                tmt.EclipseProject.compile(self)
github thewca / tnoodle / winstone / tmtproject.py View on Github external
def compile(self):
        if tmt.EclipseProject.compile(self):
            if tmt.TmtProject.projects[tmt.args.project] == self:
                # No wrapped compile to call this for us
                self.mungeXmlFiles(topLevelWebProject=self)

            webappDir = self.getWebappDir()
            webappWebInfDir = join(webappDir, "WEB-INF")
            libDir = join(webappWebInfDir, 'lib')
            if not os.path.exists(libDir):
                os.makedirs(libDir)
            classesDir = join(webappWebInfDir, 'classes')
            if not os.path.exists(classesDir):
                os.makedirs(classesDir)