Johannes Luber wrote:
Jim Idle schrieb:
Your tip with "type javac" got me thinking why I still used Java 1.5
instead 1.6. Looking through YAST installed entries I found out that the
devel-packages were missing. Why I still could use javac I don't know.
In any case I can run now maven, but I still get:
Results :
Failed tests:
testGatedPred(org.antlr.test.TestSemanticPredicates)
testOrPredicates(org.antlr.test.TestSemanticPredicates)
testGatedPredInCyclicDFA(org.antlr.test.TestSemanticPredicates)
testSemanticContextPreventsEarlyTerminationOfClosure(org.antlr.test.TestSemanticPredicates)
testRuleLabelOnTwoDifferentRulesAST(org.antlr.test.TestAttributes)
testRuleLabelOnTwoDifferentRulesTemplate(org.antlr.test.TestAttributes)
testTemplateConstructor(org.antlr.test.TestTemplates)
testTemplateConstructorNoArgs(org.antlr.test.TestTemplates)
testIndirectTemplateConstructor(org.antlr.test.TestTemplates)
testInvokeRule(org.antlr.test.TestDFAConversion)
testDoubleInvokeRuleLeftEdge(org.antlr.test.TestDFAConversion)
testAStar_immediateTailRecursion2(org.antlr.test.TestDFAConversion)
testAStarBOrAStarC(org.antlr.test.TestDFAConversion)
testAStarBOrAPlusC(org.antlr.test.TestDFAConversion)
testAOrBPlusOrAPlus(org.antlr.test.TestDFAConversion)
testWildcardInTreeGrammar2(org.antlr.test.TestDFAConversion)
Tests run: 960, Failures: 16, Errors: 0, Skipped: 0
That does only mean that the package could be created, but still
requires some work?
Johannes
These are Ter's junit tests that currently fail. You can skip the tests
as we know that they fail and the reasons that they fail are known:
mvn |-Dmaven.test.skip=true
Jim
|
Ah thanks for the shortcut. But which jar should I use for tests?
/home/verequus/Arbeit/ANTLR/code/antlr/main/target/antlr-3.1.2-SNAPSHOT.jar
This is purely the tool and cannot be executed with java -jar. This is
how Ter distributes at the moment.
or
/home/verequus/Arbeit/ANTLR/code/antlr/main/target/antlr-3.1.2-SNAPSHOT-jar-with-dependencies.jar
This is an all-encompassing executable jar. All the dependent jars such
as the runtime, stringtemplate, antlr2.7.7 have been repackaged within
this jar so you don't need CLASSPATH. You can execute with:
java -jar antlr-3.1.2-SNAPSHOT-jar-with-dependencies.jar mygrammar.g
I usually just make a bash script called a3 that looks like this:
$ cat /usr/local/bin/a3
#! /bin/bash
java -jar
~/.m2/repository/org/antlr/antlr/3.1.2-SNAPSHOT/antlr-3.1.2-SNAPSHOT-jar-with-dependencies.jar
$*
Because this is where Maven places that jar by default.
Can I simply replace the path to the old snapshot created by ant just
with one of those paths?
Yes :-)
Jim
Johannes
|
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev