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