Uploaded image for project: 'XJDF / JDF'
  1. XJDF / JDF
  2. JDF-348

update all examples to 1.6

    XMLWordPrintable

    Details

      Description

      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);
      				}
      

        Draft

         

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                prosi Rainer Prosi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: