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)
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)
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
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, needsDb=True)
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.")
def configure(self):
tmt.EclipseProject.configure(self)
tmt.WinstoneServer.addPlugin(self, needsDb=True)
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.")