How to use the tmt.WinstoneServer 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 / stackmat-flash / tmtproject.py View on Github external
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)
github thewca / tnoodle / wca / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)
        tmt.WinstoneServer.addPlugin(self)

        self.fullName = "TNoodle-WCA"
github thewca / tnoodle / timer / tmtproject.py View on Github external
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"
        }
github thewca / tnoodle / quercus / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)
        tmt.WinstoneServer.addPlugin(self)
github thewca / tnoodle / webscrambles / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)
        tmt.WinstoneServer.addPlugin(self)

        self.nonJavaResourceDeps |= tmt.glob(self.src, '.*html$', relativeTo=self.src)
github thewca / tnoodle / scrambler-interface / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)
        tmt.WinstoneServer.addPlugin(self)
github thewca / tnoodle / winstone / tmtproject.py View on Github external
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()
github thewca / tnoodle / winstone / tmtproject.py View on Github external
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