-
Type:
Bug
-
Status: Implemented (View Workflow)
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.6-RC-1
-
Component/s: all
-
Labels:
we happen to be the 1.6 spec....
most bruta lsolution:
final Vector<File> v = FileUtil.listFilesInTree(new File("/gitreps/samples/src/main/resources/jdf"), "*.jdf"); for (final File f : v) { final JDFDoc d = JDFDoc.parseFile(f); final KElement e = d == null ? null : d.getRoot(); final VElement vAll = e == null ? null : e.getChildrenByTagName_KElement(null, null, null, false, true, 0); if (vAll != null) { vAll.add(e); boolean b = false; for (final KElement e2 : vAll) { String s = e2.getNonEmpty(AttributeName.VERSION); if (s != null && !"1.6".equals(s)) { e2.setAttribute(AttributeName.VERSION, "1.6"); b = true; } s = e2.getNonEmpty(AttributeName.MAXVERSION); if (s != null && !"1.6".equals(s)) { e2.setAttribute(AttributeName.MAXVERSION, "1.6"); b = true; } } if (b) { log.info(f.getAbsolutePath()); d.write2File(f, 2, false); }