Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)