Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self)
self.APPLET_FILENAME = join(self.name, 'StackApplet.swf')
try:
retVal, stdOut, stdErr = tmt.runCmd([ 'mxmlc', '--version' ])
except OSError:
retVal = 1
self.mxmlcInstalled = (retVal == 0)
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self)
self.fullName = "TNoodle-WCA"
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self)
self.unifiedHtmlFiles = {
join(self.distDir, "tnt.html"): "http://localhost:2014/tnt/",
join(self.distDir, "bld.html"): "http://localhost:2014/tnt/bld.html"
}
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self)
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self)
self.nonJavaResourceDeps |= tmt.glob(self.src, '.*html$', relativeTo=self.src)
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self)
def __init__(self, *args, **kwargs):
tmt.EclipseProject.__init__(self, *args, **kwargs)
tmt.WinstoneServer = self
self.main = "net.gnehzr.tnoodle.server.TNoodleServer"
self.argv = [ '--nobrowser', '--consoleLevel=INFO' ]
# Winstone does all of these things =(.
self.ignoredWarnings += [ 'unchecked' ]
self.ignoredWarnings += [ 'deprecation' ]
self.ignoredWarnings += [ 'serial' ]
self.ignoredWarnings += [ 'dep-ann' ]
self.ignoredWarnings += [ 'rawtypes' ]
# It is important that when we iterate through the plugins
# in topological sorted order. This way if B uses A, B can clobber
# A's settings.
self.plugins = OrderedDict()
def newCompile(self):
if ogCompile(self):
assert self.webContent
for dirpath, dirnames, filenames in os.walk(self.webContent):
dirnames[:] = list(filter(notDotfile, dirnames)) # Note that we're modifying dirnames in place
if "WEB-INF" in dirnames:
dirnames.remove("WEB-INF")
for filename in filter(notDotfile, filenames):
path = os.path.normpath(os.path.join(dirpath, filename))
pathRelToWebContent = relpath(path, self.webContent)
name = join(tmt.WinstoneServer.binResource, "webapps", "ROOT", pathRelToWebContent)
linkParent = os.path.dirname(name)
if not os.path.exists(linkParent):
os.makedirs(linkParent)
else:
assert os.path.isdir(linkParent)
tmt.createSymlinkIfNotExistsOrStale(relpath(path, linkParent), name)
tmt.WinstoneServer.mungeXmlFiles(topLevelWebProject=self)
return newCompile