From 7ffe10a74beca895b6b7d1e03910a195c6e31559 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 1 Apr 2003 10:54:36 +0000 Subject: [PATCH] ANTLR 2.7.2 creates two files, PR 17807 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274354 13f79535-47bb-0310-9956-ffa450edef68 --- .../taskdefs/optional/antlr/antlr.xml | 34 ++++++++----------- .../ant/taskdefs/optional/ANTLRTest.java | 10 +++--- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/src/etc/testcases/taskdefs/optional/antlr/antlr.xml b/src/etc/testcases/taskdefs/optional/antlr/antlr.xml index 8d0fa2fca..fb849dd91 100644 --- a/src/etc/testcases/taskdefs/optional/antlr/antlr.xml +++ b/src/etc/testcases/taskdefs/optional/antlr/antlr.xml @@ -5,6 +5,10 @@ + + + + @@ -13,24 +17,20 @@ - - + - - + - - + - - + - + - - + @@ -58,28 +57,25 @@ - - + - - + - - + - - + + diff --git a/src/testcases/org/apache/tools/ant/taskdefs/optional/ANTLRTest.java b/src/testcases/org/apache/tools/ant/taskdefs/optional/ANTLRTest.java index 50d9837a0..19718de35 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/optional/ANTLRTest.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/optional/ANTLRTest.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2002 The Apache Software Foundation. All rights + * Copyright (c) 2000-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -56,13 +56,13 @@ package org.apache.tools.ant.taskdefs.optional; import java.io.*; import org.apache.tools.ant.BuildFileTest; + /** * If you want to run tests, it is highly recommended - * to download ANTLR (www.antlr.org), build the 'all' jar - * with the mkalljar script and drop the jar (about 300KB) into + * to download ANTLR (www.antlr.org), build the 'antlrall.jar' jar + * with make antlr-all.jar and drop the jar (about 300KB) into * Ant lib. * - Running w/ the default antlr.jar (70KB) does not work (missing class) - * - Running w/ the antlr jar made w/ mkjar (88KB) does not work (still another class missing) * * Unless of course you specify the ANTLR classpath in your * system classpath. (see ANTLR install.html) @@ -142,7 +142,7 @@ public class ANTLRTest extends BuildFileTest { executeTarget("test10"); File outputDirectory = new File(TASKDEFS_DIR + "antlr.tmp"); String[] calcFiles = outputDirectory.list(new HTMLFilter()); - assertEquals(1, calcFiles.length); + assertTrue(calcFiles.length > 0); } /**