How to use the tmt.EclipseProject 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 / winstone / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)

        self.nonJavaResourceDeps |= tmt.glob(self.srcResource, '.*$', relativeTo=self.srcResource)
        for f in xmlFileTypes:
            self.nonJavaResourceDeps -= tmt.glob(self.srcResource, "%s$" % f, relativeTo=self.srcResource)

        self.nonJavaSrcDeps |= tmt.glob(self.src, '.*\\.properties$', relativeTo=self.src)
        self.nonJavaSrcDeps |= tmt.glob(self.src, '.*\\.xsd$', relativeTo=self.src)
        self.nonJavaSrcDeps |= tmt.glob(self.src, '.*\\.dtd$', relativeTo=self.src)
github thewca / tnoodle / timer / tmtproject.py View on Github external
import tmt
import unifyhtml
import os
from os.path import join

class Project(tmt.EclipseProject):
    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 dist(self, noRemake=False, implementationTitle=None):
        tmt.EclipseProject.dist(self, noRemake=noRemake, implementationTitle=implementationTitle)

        # Build standalone html files
        #  - Start a tnt server in the background.
        #  - Then run unifyhtml.unify on everything in self.unifiedHtmlFiles
        # This is easier than trying to follow the dependencies to extract
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 / cubecomps / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)
        tmt.WinstoneServer.addPlugin(self, needsDb=True)
github thewca / tnoodle / jracer / tmtproject.py View on Github external
import tmt

class Project(tmt.EclipseProject):
    def configure(self):
        tmt.EclipseProject.configure(self)

    def compile(self):
        tmt.EclipseProject.compile(self)

Project(tmt.projectName(), description="An easy to distribute and run single player version of noderacer.")
github thewca / tnoodle / hello-winstone / tmtproject.py View on Github external
def configure(self):
        tmt.EclipseProject.configure(self)
        tmt.WinstoneServer.addPlugin(self, needsDb=True)
github thewca / tnoodle / sq12phase / tmtproject.py View on Github external
import tmt
import subprocess
from os.path import join, exists

class Project(tmt.EclipseProject):
        def configure(self):
                tmt.EclipseProject.configure(self)
                self.main = 'cs.sq12phase.Search'

        def compile(self):
                tmt.EclipseProject.compile(self)

Project(tmt.projectName(), description="A copy of Chen Shuang's square 1 two phase solver.")