made it pretty
This commit is contained in:
parent
da878abb90
commit
70be61a81e
2 changed files with 14 additions and 15 deletions
|
@ -6,15 +6,15 @@ import java.io.IOException;
|
||||||
public class IntegrityCheckProfile {
|
public class IntegrityCheckProfile {
|
||||||
|
|
||||||
public static void main( final java.lang.String[] args ) {
|
public static void main( final java.lang.String[] args ) {
|
||||||
if ( args.length != 2 ) {
|
if (args.length != 2) {
|
||||||
System.out.println( "usage: java IntegrityCheckProfile <lookup-file> <profile-folder>" );
|
System.out.println("usage: java IntegrityCheckProfile <lookup-file> <profile-folder>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
IntegrityCheckProfile test = new IntegrityCheckProfile();
|
IntegrityCheckProfile test = new IntegrityCheckProfile();
|
||||||
try {
|
try {
|
||||||
File lookupFile = new File( args[0] );
|
File lookupFile = new File(args[0]);
|
||||||
File profileDir = new File( args[1] );
|
File profileDir = new File(args[1]);
|
||||||
test.integrityTestProfiles(lookupFile, profileDir);
|
test.integrityTestProfiles(lookupFile, profileDir);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.err.println(e.getMessage());
|
System.err.println(e.getMessage());
|
||||||
|
@ -36,12 +36,12 @@ public class IntegrityCheckProfile {
|
||||||
for (File f : files) {
|
for (File f : files) {
|
||||||
if (f.getName().endsWith(".brf")) {
|
if (f.getName().endsWith(".brf")) {
|
||||||
BExpressionMetaData meta = new BExpressionMetaData();
|
BExpressionMetaData meta = new BExpressionMetaData();
|
||||||
BExpressionContext expctxWay = new BExpressionContextWay( meta );
|
BExpressionContext expctxWay = new BExpressionContextWay(meta);
|
||||||
BExpressionContext expctxNode = new BExpressionContextNode( meta );
|
BExpressionContext expctxNode = new BExpressionContextNode(meta);
|
||||||
meta.readMetaData( lookupFile );
|
meta.readMetaData(lookupFile);
|
||||||
expctxNode.setForeignContext(expctxWay);
|
expctxNode.setForeignContext(expctxWay);
|
||||||
expctxWay.parseFile( f, "global" );
|
expctxWay.parseFile(f, "global");
|
||||||
expctxNode.parseFile( f, "global" );
|
expctxNode.parseFile(f, "global");
|
||||||
System.out.println("test " + meta.lookupVersion + "."+meta.lookupMinorVersion + " " + f);
|
System.out.println("test " + meta.lookupVersion + "."+meta.lookupMinorVersion + " " + f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package btools.expressions;
|
package btools.expressions;
|
||||||
|
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertNull;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -21,12 +20,12 @@ public class IntegrityCheckProfileTest {
|
||||||
for (File f : files) {
|
for (File f : files) {
|
||||||
if (f.getName().endsWith(".brf")) {
|
if (f.getName().endsWith(".brf")) {
|
||||||
BExpressionMetaData meta = new BExpressionMetaData();
|
BExpressionMetaData meta = new BExpressionMetaData();
|
||||||
BExpressionContext expctxWay = new BExpressionContextWay( meta );
|
BExpressionContext expctxWay = new BExpressionContextWay(meta);
|
||||||
BExpressionContext expctxNode = new BExpressionContextNode( meta );
|
BExpressionContext expctxNode = new BExpressionContextNode(meta);
|
||||||
meta.readMetaData( new File( profileDir, "lookups.dat") );
|
meta.readMetaData(new File( profileDir, "lookups.dat"));
|
||||||
expctxNode.setForeignContext(expctxWay);
|
expctxNode.setForeignContext(expctxWay);
|
||||||
expctxWay.parseFile( f, "global" );
|
expctxWay.parseFile(f, "global");
|
||||||
expctxNode.parseFile( f, "global" );
|
expctxNode.parseFile(f, "global");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue