Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
def compile(self):
tmt.EclipseProject.compile(self)
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
def compile(self):
tmt.EclipseProject.compile(self)
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)