Lines Matching refs:os

16 import os
51 s = os.popen('%s; java -version 2>&1' % javaExe(version)).read()
56 env = os.environ
116 if DEBUG and os.path.exists(fileName):
118 print ' already done: %.1f MB' % (os.path.getsize(fileName)/1024./1024.)
136 os.remove(fileName)
138 print ' %.1f MB' % (os.path.getsize(fileName)/1024./1024.)
203 if not os.path.exists('%s/apache-rat-0.8.jar' % tmpDir):
220 if os.path.exists(gpgHomeDir):
222 os.makedirs(gpgHomeDir, 0700)
288 for root, dirs, files in os.walk(dir):
316 if os.system('%s > %s 2>&1' % (command, logFile)):
317 logPath = os.path.abspath(logFile)
355 if os.path.exists(destDir):
357 os.makedirs(destDir)
358 os.chdir(destDir)
367 l = os.listdir(destDir)
379 os.chdir(unpackPath)
381 l = os.listdir(unpackPath)
426 lines = os.popen('find . -name \\*.jar').readlines()
432 lines = os.popen('find . -name \\*.war').readlines()
472 os.chdir('solr')
480 os.chdir('..')
533 os.chdir('example')
536 env.update(os.environ)
563 os.kill(server.pid, signal.SIGINT)
571 os.kill(server.pid, signal.SIGKILL)
579 os.chdir('..')
583 if os.path.exists(destDir):
585 os.makedirs(destDir)
586 os.chdir(destDir)
592 os.chdir(unpackPath)
640 if not os.path.exists(targetDir):
641 os.makedirs(targetDir)
673 if not os.path.exists('%s/%s' % (tmpDir, distribution)):
678 if os.path.exists(destDir):
680 os.makedirs(destDir)
681 os.chdir(destDir)
690 for root, dirs, files in os.walk(destDir):
691 distributionFiles[project].extend([os.path.join(root, file) for file in files])
709 distFilenames[os.path.basename(file)] = file
712 depOrigFilename = os.path.basename(nonMavenizedDeps[dep])
725 baseName = os.path.basename(file)
732 artifactFilename = os.path.basename(artifact)
819 workingCopy = os.path.abspath('%s/../..' % sys.path[0])
823 if os.path.exists(pomPath):
861 if not os.path.exists(keysFile):
867 if os.path.exists(gpgHomeDir):
869 os.makedirs(gpgHomeDir, 0700)
875 artifact = os.path.basename(artifactFile)
964 sourceLocation = os.path.abspath('%s/../maven' % sys.path[0])
966 for root, dirs, files in os.walk(sourceLocation):
967 allPOMtemplates.extend([os.path.join(root, f) for f in files if rePOMtemplate.search(f)])
971 if not os.path.exists(targetDir):
972 os.makedirs(targetDir)
988 path = os.path.join(targetDir, text)
990 if not os.path.exists(path):
991 os.makedirs(path)
994 if not os.path.exists(path) or not DEBUG:
1009 tmpDir = os.path.abspath(sys.argv[3])
1012 if os.path.exists(tmpDir):
1015 if not os.path.exists(tmpDir):
1016 os.makedirs(tmpDir)