|
10 | 10 |
|
11 | 11 | def creatergcfg(self, reobf=False, keep_lvt=False, keep_generics=False, rg_update=False):
|
12 | 12 | """Create the files necessary for RetroGuard"""
|
13 |
| -@@ -1039,6 +1042,7 @@ |
| 13 | +@@ -779,7 +782,8 @@ |
| 14 | + testlk = {CLIENT: self.testclient, SERVER: self.testserver} |
| 15 | + |
| 16 | + if not os.path.exists(os.path.join(srclk[side], os.path.normpath(testlk[side] + '.java'))): |
| 17 | +- return False |
| 18 | ++ if not os.path.exists(os.path.join(self.srcshared, os.path.normpath(testlk[side] + '.java'))): |
| 19 | ++ return False |
| 20 | + return True |
| 21 | + |
| 22 | + def checkbins(self, side): |
| 23 | +@@ -1039,6 +1043,7 @@ |
14 | 24 | all_files = True
|
15 | 25 | append_pattern = False
|
16 | 26 | pkglist = filterdirs(pathsrclk[side], '*.java', append_pattern=append_pattern, all_files=all_files)
|
17 | 27 | + pkglist = pkglist + filterdirs(self.srcshared, '*.java', append_pattern=append_pattern, all_files=all_files) #FML, Add Common folder
|
18 | 28 | dirs = ' '.join(pkglist)
|
19 | 29 | classpath = os.pathsep.join(cplk[side])
|
20 | 30 | forkcmd = self.cmdrecomp.format(classpath=classpath, sourcepath=pathsrclk[side], outpath=pathbinlk[side],
|
21 |
| -@@ -1195,20 +1199,20 @@ |
| 31 | +@@ -1195,20 +1200,20 @@ |
22 | 32 | with open(self.csvmethods, 'rb') as fh:
|
23 | 33 | methodsreader = csv.DictReader(fh)
|
24 | 34 | for row in methodsreader:
|
|
42 | 52 | names['params'][row['param']] = row['name']
|
43 | 53 |
|
44 | 54 | regexps = {
|
45 |
| -@@ -1238,6 +1242,11 @@ |
| 55 | +@@ -1238,6 +1243,11 @@ |
46 | 56 |
|
47 | 57 | # HINT: We pathwalk the sources
|
48 | 58 | for path, _, filelist in os.walk(pathsrclk[side], followlinks=True):
|
|
54 | 64 | for cur_file in fnmatch.filter(filelist, '*.java'):
|
55 | 65 | updatefile(os.path.normpath(os.path.join(path, cur_file)))
|
56 | 66 | return True
|
57 |
| -@@ -1320,12 +1329,14 @@ |
| 67 | +@@ -1320,12 +1330,14 @@ |
58 | 68 | pathsrclk = {CLIENT: self.srcclient, SERVER: self.srcserver}
|
59 | 69 |
|
60 | 70 | strip_comments(pathsrclk[side])
|
|
69 | 79 |
|
70 | 80 | def process_javadoc(self, side):
|
71 | 81 | """Add CSV descriptions to methods and fields as javadoc"""
|
72 |
| -@@ -1334,6 +1345,21 @@ |
| 82 | +@@ -1334,6 +1346,21 @@ |
73 | 83 | if not self.has_doc_csv:
|
74 | 84 | self.logger.warning('!! javadoc disabled due to no csvs !!')
|
75 | 85 | return False
|
|
91 | 101 |
|
92 | 102 | #HINT: We read the relevant CSVs
|
93 | 103 | methodsreader = csv.DictReader(open(self.csvmethods, 'r'))
|
94 |
| -@@ -1342,13 +1368,13 @@ |
| 104 | +@@ -1342,13 +1369,13 @@ |
95 | 105 | methods = {}
|
96 | 106 | for row in methodsreader:
|
97 | 107 | #HINT: Only include methods that have a non-empty description
|
|
107 | 117 | fields[row['searge']] = row['desc'].replace('*/', '* /')
|
108 | 118 |
|
109 | 119 | regexps = {
|
110 |
| -@@ -1420,6 +1446,7 @@ |
| 120 | +@@ -1420,6 +1447,7 @@ |
111 | 121 |
|
112 | 122 | # HINT: We create the list of source directories based on the list of packages
|
113 | 123 | pkglist = filterdirs(pathsrclk[side], '*.java', append_pattern=True)
|
114 | 124 | + pkglist = pkglist + filterdirs(self.srcshared, '*.java', append_pattern=True) #FML, Add Common folder
|
115 | 125 | dirs = ' '.join(pkglist)
|
116 | 126 | forkcmd = self.cmdastyle.format(classes=dirs, conffile=self.astyleconf)
|
117 | 127 | self.runcmd(forkcmd)
|
118 |
| -@@ -1592,6 +1619,9 @@ |
| 128 | +@@ -1592,6 +1620,9 @@ |
119 | 129 | sys.exit(1)
|
120 | 130 |
|
121 | 131 | for entry in newfiles:
|
|
0 commit comments