move jwlib.FILELISTS to config.py

Summary:public
This will avoid a circular dependency between analyze.py and jwlib.py in an
upcoming refactoring.

Reviewed By: martinoluca

Differential Revision: D2965734

fb-gh-sync-id: 1cb69d4
shipit-source-id: 1cb69d4
master
Jules Villard 9 years ago committed by facebook-github-bot-5
parent dc52ce8158
commit 37c2d39dac

@ -207,7 +207,10 @@ def reset_start_file(results_dir):
def clean(infer_out):
directories = ['multicore', 'classnames', 'sources', jwlib.FILELISTS]
directories = [
'multicore', 'classnames', 'sources',
config.JAVAC_FILELISTS_FILENAME,
]
extensions = ['.cfg', '.cg']
for root, dirs, files in os.walk(infer_out):

@ -38,7 +38,8 @@ class GradleCapture:
self.build_cmd = [cmd[0], '--debug'] + cmd[1:]
# That contains javac version as well
version_str = util.run_cmd_ignore_fail([cmd[0], '--version'])
path = os.path.join(self.args.infer_out, jwlib.FILELISTS)
path = os.path.join(self.args.infer_out,
config.JAVAC_FILELISTS_FILENAME)
if not os.path.exists(path):
os.mkdir(path)
logging.info("Running with:\n" + version_str)
@ -69,7 +70,8 @@ class GradleCapture:
mode='w',
suffix='.txt',
prefix='gradle_',
dir=os.path.join(self.args.infer_out, jwlib.FILELISTS),
dir=os.path.join(self.args.infer_out,
config.JAVAC_FILELISTS_FILENAME),
delete=False) as sources:
sources.write("\n".join(java_files))
sources.flush()

@ -42,6 +42,7 @@ PROC_STATS_FILENAME = 'proc_stats.json'
CSV_REPORT_FILENAME = 'report.csv'
JSON_REPORT_FILENAME = 'report.json'
BUGS_FILENAME = 'bugs.txt'
JAVAC_FILELISTS_FILENAME = 'filelists'
IOS_CAPTURE_ERRORS = 'errors'
IOS_BUILD_OUTPUT = 'build_output'

@ -14,8 +14,6 @@ import subprocess
import config
import utils
FILELISTS = 'filelists'
# javac options
parser = argparse.ArgumentParser()

Loading…
Cancel
Save