1 | if ((genericEntry.getCrc() != wlEntry.getCrc())↵ | | 1 | if ((genericEntry.getCrc() != wasEntry.getCrc())↵
|
2 | || (genericEntry.getSize() != wlEntry.getSize())) {↵ | | 2 | || (genericEntry.getSize() != wasEntry.getSize())) {↵
|
|
3 | if (genericEntry.getName().endsWith(".class")) {↵ | | 3 | if (genericEntry.getName().endsWith(".class")) {↵
|
4 | //File are different see if its an object or an interface↵ | | 4 | //File are different see if its an object or an interface↵
|
5 | String classname↵ | | 5 | String classname↵
|
6 | = genericEntry.getName().replace(File.separatorChar, '.');↵ | | 6 | = genericEntry.getName().replace(File.separatorChar, '.');↵
|
|
7 | classname = classname.substring(0, classname.lastIndexOf(".class"));↵ | | 7 | classname = classname.substring(0, classname.lastIndexOf(".class"));↵
|
|
8 | Class genclass = genericLoader.loadClass(classname);↵ | | 8 | Class genclass = genericLoader.loadClass(classname);↵
|
|
9 | if (genclass.isInterface()) {↵ | | 9 | if (genclass.isInterface()) {↵
|
10 | //Interface changed rebuild jar.↵ | | 10 | //Interface changed rebuild jar.↵
|
11 | log("Interface " + genclass.getName()↵ | | 11 | log("Interface " + genclass.getName()↵
|
12 | + " has changed", Project.MSG_VERBOSE);↵ | | 12 | + " has changed", Project.MSG_VERBOSE);↵
|
13 | rebuild = true;↵ | | 13 | rebuild = true;↵
|
14 | break;↵ | | 14 | break;↵
|
15 | } else {↵ | | 15 | } else {↵
|
16 | //Object class Changed update it.↵ | | 16 | //Object class Changed update it.↵
|
17 | replaceEntries.put(filepath, genericEntry);↵ | | 17 | replaceEntries.put(filepath, genericEntry);↵
|
18 | }↵ | | 18 | }↵
|
19 | } else {↵ | | 19 | } else {↵
|
20 | // is it the manifest. If so ignore it↵ | | 20 | // is it the manifest. If so ignore it↵
|
21 | if (!genericEntry.getName().equals("META-INF/MANIFEST.MF")) {↵ | | 21 | if (!genericEntry.getName().equals("META-INF/MANIFEST.MF")) {↵
|
22 | //File other then class changed rebuild↵ | | 22 | //File other then class changed rebuild↵
|
23 | log("Non class file " + genericEntry.getName()↵ | | 23 | log("Non class file " + genericEntry.getName()↵
|
24 | + " has changed", Project.MSG_VERBOSE);↵ | | 24 | + " has changed", Project.MSG_VERBOSE);↵
|
25 | rebuild = true;↵ | | 25 | rebuild = true;↵
|
26 | ↵ | | 26 | }↵
|
27 | break;↵ | | 27 | break;↵
|
28 | | | 28 |
|