How to use the tmt.projectName 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 / threephase / 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.threephase.Main"
                self.threephase_tables = 'tpr_tables'
                self.CACHED_THREEPHASE_TABLES = join(self.name, 'CACHED_THREEPHASE_TABLES_DELETE_TO_RECREATE')

Project(tmt.projectName(), description="A copy of Chen Shuang's 4x4 scrambler.")
github thewca / tnoodle / noderacer / tmtproject.py View on Github external
os.chdir(tmt.projectName())
        return oldDir

    def run(self):
        self.compile()
        oldDir = self._chdir()
        tmt.runCmd([ 'node', 'noderacer.js' ], interactive=True)
        os.chdir(oldDir)

    def clean(self):
        pass

    def check(self):
        pass

Project(tmt.projectName(), description="A nodejs game server that multicasts turns to its clients")
github thewca / tnoodle / tnoodle-android / tmtproject.py View on Github external
return [ tmt.TmtProject.projects['scrambles'] ]

    def runGradleTask(self, task):
        retVal = os.system(self.gradlew % task)
        assert retVal == 0

    def compile(self):
        self.runGradleTask("assemble")

    def clean(self):
        self.runGradleTask("clean")

    def check(self):
        pass

Project(tmt.projectName(), description="Android scrambling library")
github thewca / tnoodle / scrambles / tmtproject.py View on Github external
def __init__(self):
        tmt.EclipseProject.__init__(
            self,
            tmt.projectName(),
            description=DESCRIPTION,
            main='net.gnehzr.tnoodle.scrambles.Main')
github thewca / tnoodle / utils / tmtproject.py View on Github external
import tmt
tmt.EclipseProject(tmt.projectName(), description="Dumping ground for useful Java functions used throughout tnoodle")
github thewca / tnoodle / webscrambles / tmtproject.py View on Github external
import tmt
import subprocess

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

        self.nonJavaResourceDeps |= tmt.glob(self.src, '.*html$', relativeTo=self.src)

Project(tmt.projectName(), description="A server plugin wrapper for scrambles that also draws pdfs.")
github thewca / tnoodle / timer / tmtproject.py View on Github external
#  - 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
        # js files like mootools. We just let the server do its job.
        self.run(wait=False)

        for fileName, url in self.unifiedHtmlFiles.items():
            unifiedHtml = unifyhtml.unify(url, try_count=5)
            unifiedHtml = tmt.doTextSubstitution(unifiedHtml)

            with open(fileName, 'w') as out:
                out.write(unifiedHtml)

            tmt.notifyDist(fileName)

Project(tmt.projectName(), description="A Rubik's Cube timer.")
github thewca / tnoodle / all / tmtproject.py View on Github external
def getDependencies(self):
		return [ tmt.TmtProject.projects['timer'],
			 	 tmt.TmtProject.projects['noderacer'],
				 tmt.TmtProject.projects['jracer'],
				 tmt.TmtProject.projects['quercus'],
                 ]

	def check(self):
		return
	
	def clean(self):
		for dep in self.getDependencies():
			dep.clean()

Project(tmt.projectName(), description="")
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.")