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

        dirsToCleanup = []
        for d in [ 'war', 'doc' ]:
            dirsToCleanup.append(join(self.name, d))
        dirsToCleanup.append(self.postProcessedDir)

        dirsToCleanup.append('gwt-unitCache')

        for d in dirsToCleanup:
            if exists(d):
                assert isdir(d)
                tmt.rmtree(d)