Lines 1094-1112
Link Here
|
1094 |
File jar = module.getJar(); |
1094 |
File jar = module.getJar(); |
1095 |
if (jar == null) return null; |
1095 |
if (jar == null) return null; |
1096 |
|
1096 |
|
1097 |
OK: if (module.getClusterName() != null && clusterPath != null) { |
1097 |
String ec = getProject().getProperty("extra.clusters"); |
1098 |
File clusterF = jar.getParentFile(); |
1098 |
if (ec == null) { |
1099 |
while (clusterF != null) { |
1099 |
OK: if (module.getClusterName() != null && clusterPath != null) { |
1100 |
if (clusterPath.contains(clusterF)) { |
1100 |
File clusterF = jar.getParentFile(); |
1101 |
break OK; |
1101 |
while (clusterF != null) { |
|
|
1102 |
if (clusterPath.contains(clusterF)) { |
1103 |
break OK; |
1104 |
} |
1105 |
clusterF = clusterF.getParentFile(); |
1102 |
} |
1106 |
} |
1103 |
clusterF = clusterF.getParentFile(); |
1107 |
String msg = "The module " + cnb + " cannot be " + (runtime ? "run" : "compiled") + |
|
|
1108 |
" against because it is part of the cluster " + |
1109 |
jar.getParentFile().getParentFile() + " which is not part of cluster.path in your suite configuration.\n\n" + |
1110 |
"Cluster.path is: " + clusterPath; |
1111 |
throw new BuildException(msg, getLocation()); |
1104 |
} |
1112 |
} |
1105 |
String msg = "The module " + cnb + " cannot be " + (runtime ? "run" : "compiled") + |
|
|
1106 |
" against because it is part of the cluster " + |
1107 |
jar.getParentFile().getParentFile() + " which is not part of cluster.path in your suite configuration.\n\n" + |
1108 |
"Cluster.path is: " + clusterPath; |
1109 |
throw new BuildException(msg, getLocation()); |
1110 |
} |
1113 |
} |
1111 |
if (excludedModules != null && excludedModules.contains(cnb)) { // again #68716 |
1114 |
if (excludedModules != null && excludedModules.contains(cnb)) { // again #68716 |
1112 |
throw new BuildException("Module " + cnb + " excluded from the target platform", getLocation()); |
1115 |
throw new BuildException("Module " + cnb + " excluded from the target platform", getLocation()); |