@@ -0,0 +1,1555 @@
+package btools.expressions;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Apublic class IntegrityCheckProfile %7B%0A%0A  public static void main( final java.lang.String%5B%5D args ) %7B%0A    if ( args.length != 2 ) %7B%0A      System.out.println( %22usage: java IntegrityCheckProfile %3Clookup-file%3E %3Cprofile-folder%3E%22 );%0A      return;%0A    %7D%0A%0A%09  IntegrityCheckProfile test = new IntegrityCheckProfile();%0A    try %7B%0A      File lookupFile = new File( args%5B0%5D );%0A      File profileDir = new File( args%5B1%5D );%0A%09    test.integrityTestProfiles(lookupFile, profileDir);%0A    %7D catch (Exception e) %7B%0A      System.err.println(e.getMessage());%0A    %7D%0A  %7D%0A%0A  public void integrityTestProfiles(File lookupFile, File profileDir) throws IOException, Exception %7B%0A    File%5B%5D files = profileDir.listFiles();%0A%0A    if (files==null) %7B%0A      System.err.println(%22no files %22 + profileDir);%0A      return;%0A    %7D%0A    if (!lookupFile.exists()) %7B%0A      System.err.println(%22no lookup file %22 + lookupFile);%0A      return;%0A    %7D%0A%0A    for (File f : files) %7B%0A      if (f.getName().endsWith(%22.brf%22)) %7B%0A        BExpressionMetaData meta = new BExpressionMetaData();%0A        BExpressionContext expctxWay = new BExpressionContextWay( meta );%0A        BExpressionContext expctxNode = new BExpressionContextNode( meta );%0A        meta.readMetaData( lookupFile );%0A        expctxNode.setForeignContext(expctxWay);%0A        expctxWay.parseFile( f, %22global%22 );%0A        expctxNode.parseFile( f, %22global%22 );%0A        System.out.println(%22test %22 + meta.lookupVersion + %22.%22+meta.lookupMinorVersion + %22 %22 + f);%0A      %7D%0A    %7D%0A  %7D%0A%0A%7D%0A

add cmd line test profiles vs lookup