JiBX
  1. JiBX
  2. JIBX-322

Bulding [prepare-tests] target fails unless CLASSPATH=/path/to/junit.jar is defined

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Not A Bug
    • Affects Version/s: JiBX 1.2.1
    • Fix Version/s: JiBX 1.2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X 32-bit with Java 5 JVM. Ant 1.7.0.
    • Number of attachments :
      0

      Description

      download a fresh jibx_1_2_1.zip and unzip it. The build fails during the prepare-tests target:

      ----------
      $ cd jibx/build
      $ ant
      Buildfile: build.xml

      basenames:

      disablej2me:
      [java] matched 382 files and modified 0 for path: /Users/shlomo/lib/jibx/build/src/*/
      [java] matched 22 files and modified 0 for path: /Users/shlomo/lib/jibx/build/extras/*/
      [java] matched 127 files and modified 0 for path: /Users/shlomo/lib/jibx/build/test/*/

      setdebug:

      compile-run:
      [mkdir] Created dir: /Users/shlomo/lib/jibx/build/classes/run
      [copy] Copying 1 file to /Users/shlomo/lib/jibx
      [javac] Compiling 59 source files to /Users/shlomo/lib/jibx/build/classes/run
      [move] Moving 1 file to /Users/shlomo/lib/jibx/build/src/org/jibx/runtime

      compile-bind:
      [mkdir] Created dir: /Users/shlomo/lib/jibx/build/classes/bind
      [copy] Copying 1 file to /Users/shlomo/lib/jibx
      [javac] Compiling 122 source files to /Users/shlomo/lib/jibx/build/classes/bind
      [javac] /Users/shlomo/lib/jibx/build/src/org/jibx/binding/ant/CompileTask.java:98: warning: [deprecation] project in org.apache.tools.ant.ProjectComponent has been deprecated
      [javac] File directory = fileSet.getDir(project);
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/src/org/jibx/binding/ant/CompileTask.java:145: warning: [deprecation] project in org.apache.tools.ant.ProjectComponent has been deprecated
      [javac] DirectoryScanner dirScn = bPath.getDirectoryScanner(project);
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/src/org/jibx/binding/ant/CompileTask.java:292: warning: [deprecation] project in org.apache.tools.ant.ProjectComponent has been deprecated
      [javac] m_classpath = new Path(project);
      [javac] ^
      [javac] 3 warnings
      [move] Moving 1 file to /Users/shlomo/lib/jibx/build/src/org/jibx/binding/def

      compile-extras:
      [mkdir] Created dir: /Users/shlomo/lib/jibx/build/classes/extras
      [javac] Compiling 18 source files to /Users/shlomo/lib/jibx/build/classes/extras

      build-jibx:

      jar-run:
      [delete] Deleting: /Users/shlomo/lib/jibx/lib/jibx-run.jar
      [jar] Building jar: /Users/shlomo/lib/jibx/lib/jibx-run.jar

      jar-bind:
      [delete] Deleting: /Users/shlomo/lib/jibx/lib/jibx-bind.jar
      [jar] Building jar: /Users/shlomo/lib/jibx/lib/jibx-bind.jar

      jar-extras:
      [delete] Deleting: /Users/shlomo/lib/jibx/lib/jibx-extras.jar
      [jar] Building jar: /Users/shlomo/lib/jibx/lib/jibx-extras.jar

      compile-schema:
      [mkdir] Created dir: /Users/shlomo/lib/jibx/build/classes/schema
      [javac] Compiling 82 source files to /Users/shlomo/lib/jibx/build/classes/schema

      jar-schema:
      [delete] Deleting: /Users/shlomo/lib/jibx/lib/jibx-schema.jar
      [jar] Building jar: /Users/shlomo/lib/jibx/lib/jibx-schema.jar

      compile-tools:
      [mkdir] Created dir: /Users/shlomo/lib/jibx/build/classes/tools
      [javac] Compiling 108 source files to /Users/shlomo/lib/jibx/build/classes/tools
      [java] Warning: No way to load prior value - new instance will be created on each unmarshalling; on structure element at (line 68, col 99, in xsdcodegen-customs-binding.xml)
      [java] Warning: No way to load prior value - new instance will be created on each unmarshalling; on structure element at (line 70, col 100, in xsdcodegen-customs-binding.xml)

      jar-tools:
      [delete] Deleting: /Users/shlomo/lib/jibx/lib/jibx-tools.jar
      [copy] Copying 1 file to /Users/shlomo/lib/jibx/build/classes/tools
      [jar] Building jar: /Users/shlomo/lib/jibx/lib/jibx-tools.jar

      tojars:

      current:

      clean-tests:
      [mkdir] Created dir: /Users/shlomo/lib/jibx/build/classes/test

      prepare-tests:
      [echo] Compiling the test code
      [javac] Compiling 102 source files to /Users/shlomo/lib/jibx/build/classes/test
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/JiBXConstrainedParseExceptionTest.java:3: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/JiBXConstrainedParseExceptionTest.java:9: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class JiBXConstrainedParseExceptionTest extends TestCase {
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/RuntimeSuite.java:3: package junit.framework does not exist
      [javac] import junit.framework.Test;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/RuntimeSuite.java:4: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/RuntimeSuite.java:5: package junit.framework does not exist
      [javac] import junit.framework.TestSuite;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/RuntimeSuite.java:7: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class RuntimeSuite extends TestCase
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/RuntimeSuite.java:9: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jibx.runtime.RuntimeSuite
      [javac] public static Test suite() {
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:19: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:25: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class UtilityTest extends TestCase {
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/impl/UnmarshallingContextTest.java:12: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/impl/UnmarshallingContextTest.java:156: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class UnmarshallingContextTest extends TestCase {
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/SchemaSuite.java:7: package junit.framework does not exist
      [javac] import junit.framework.Test;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/SchemaSuite.java:8: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/SchemaSuite.java:9: package junit.framework does not exist
      [javac] import junit.framework.TestSuite;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/SchemaSuite.java:11: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class SchemaSuite extends TestCase
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/SchemaSuite.java:13: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jibx.schema.SchemaSuite
      [javac] public static Test suite() {
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/SchemaTestBase.java:15: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/SchemaTestBase.java:43: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class SchemaTestBase extends TestCase
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/codegen/CodegenSuite.java:3: package junit.framework does not exist
      [javac] import junit.framework.Test;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/codegen/CodegenSuite.java:4: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/codegen/CodegenSuite.java:5: package junit.framework does not exist
      [javac] import junit.framework.TestSuite;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/codegen/CodegenSuite.java:7: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class CodegenSuite extends TestCase
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/codegen/CodegenSuite.java:9: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jibx.schema.codegen.CodegenSuite
      [javac] public static Test suite() {
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/elements/ElementsSuite.java:3: package junit.framework does not exist
      [javac] import junit.framework.Test;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/elements/ElementsSuite.java:4: package junit.framework does not exist
      [javac] import junit.framework.TestCase;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/elements/ElementsSuite.java:5: package junit.framework does not exist
      [javac] import junit.framework.TestSuite;
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/elements/ElementsSuite.java:7: cannot find symbol
      [javac] symbol: class TestCase
      [javac] public class ElementsSuite extends TestCase
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/schema/elements/ElementsSuite.java:9: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jibx.schema.elements.ElementsSuite
      [javac] public static Test suite() {
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/JiBXConstrainedParseExceptionTest.java:13: cannot find symbol
      [javac] symbol : method assertTrue(boolean)
      [javac] location: class org.jibx.runtime.JiBXConstrainedParseExceptionTest
      [javac] assertTrue(e.getMessage().endsWith(". Acceptable values are 'abc'."));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/JiBXConstrainedParseExceptionTest.java:19: cannot find symbol
      [javac] symbol : method assertTrue(boolean)
      [javac] location: class org.jibx.runtime.JiBXConstrainedParseExceptionTest
      [javac] assertTrue(e.getMessage().endsWith(". Acceptable values are 'abc', 'def'."));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/JiBXConstrainedParseExceptionTest.java:25: cannot find symbol
      [javac] symbol : method assertTrue(boolean)
      [javac] location: class org.jibx.runtime.JiBXConstrainedParseExceptionTest
      [javac] assertTrue(e.getMessage().endsWith(". Acceptable values are 'abc', 'def', 'ghi'."));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/RuntimeSuite.java:10: cannot find symbol
      [javac] symbol : class TestSuite
      [javac] location: class org.jibx.runtime.RuntimeSuite
      [javac] TestSuite suite = new TestSuite();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/RuntimeSuite.java:10: cannot find symbol
      [javac] symbol : class TestSuite
      [javac] location: class org.jibx.runtime.RuntimeSuite
      [javac] TestSuite suite = new TestSuite();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:49: cannot find symbol
      [javac] symbol : method assertEquals(int,int)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(0, Utility.parseInt("0"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:50: cannot find symbol
      [javac] symbol : method assertEquals(int,int)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(2000000000, Utility.parseInt("2000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:51: cannot find symbol
      [javac] symbol : method assertEquals(int,int)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(-2000000000, Utility.parseInt("-2000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:52: cannot find symbol
      [javac] symbol : method assertEquals(int,int)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(2000000000, Utility.parseInt("+2000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:55: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:59: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:63: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:67: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:71: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:75: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:80: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("0", Utility.serializeInt(0));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:81: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("2000000", Utility.serializeInt(2000000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:82: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("2000000000", Utility.serializeInt(2000000000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:83: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("-2000000", Utility.serializeInt(-2000000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:84: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("-2000000000", Utility.serializeInt(-2000000000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:88: cannot find symbol
      [javac] symbol : method assertEquals(int,long)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(0, Utility.parseLong("0"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:89: cannot find symbol
      [javac] symbol : method assertEquals(int,long)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(2000000000, Utility.parseLong("2000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:90: cannot find symbol
      [javac] symbol : method assertEquals(int,long)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(-2000000000, Utility.parseLong("-2000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:91: cannot find symbol
      [javac] symbol : method assertEquals(int,long)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(2000000000, Utility.parseLong("+2000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:92: cannot find symbol
      [javac] symbol : method assertEquals(long,long)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(200000000000000L, Utility.parseLong("200000000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:93: cannot find symbol
      [javac] symbol : method assertEquals(long,long)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(-200000000000000L, Utility.parseLong("-200000000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:94: cannot find symbol
      [javac] symbol : method assertEquals(long,long)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(200000000000000L, Utility.parseLong("+200000000000000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:97: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:101: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:105: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:110: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("0", Utility.serializeLong(0));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:111: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("2000000", Utility.serializeLong(2000000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:112: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("2000000000000000",
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:114: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("-2000000", Utility.serializeLong(-2000000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:115: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("-2000000000000000",
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:120: cannot find symbol
      [javac] symbol : method assertEquals(int,short)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(0, Utility.parseShort("0"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:121: cannot find symbol
      [javac] symbol : method assertEquals(int,short)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(20000, Utility.parseShort("20000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:122: cannot find symbol
      [javac] symbol : method assertEquals(int,short)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(-20000, Utility.parseShort("-20000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:123: cannot find symbol
      [javac] symbol : method assertEquals(int,short)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(20000, Utility.parseShort("+20000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:126: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:130: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:134: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:138: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:143: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("0", Utility.serializeShort((short)0));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:144: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("20000", Utility.serializeShort((short)20000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:145: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("-20000", Utility.serializeShort((short)-20000));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:149: cannot find symbol
      [javac] symbol : method assertEquals(int,byte)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(0, Utility.parseByte("0"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:150: cannot find symbol
      [javac] symbol : method assertEquals(int,byte)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(100, Utility.parseByte("100"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:151: cannot find symbol
      [javac] symbol : method assertEquals(int,byte)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(-100, Utility.parseByte("-100"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:152: cannot find symbol
      [javac] symbol : method assertEquals(int,byte)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(100, Utility.parseByte("+100"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:155: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:159: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:163: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:167: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:172: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("0", Utility.serializeByte((byte)0));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:173: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("100", Utility.serializeByte((byte)100));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:174: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("-100", Utility.serializeByte((byte)-100));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:178: cannot find symbol
      [javac] symbol : method assertTrue(boolean)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertTrue(Utility.parseBoolean("true"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:179: cannot find symbol
      [javac] symbol : method assertTrue(boolean)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertTrue(Utility.parseBoolean("1"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:180: cannot find symbol
      [javac] symbol : method assertFalse(boolean)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertFalse(Utility.parseBoolean("false"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:181: cannot find symbol
      [javac] symbol : method assertFalse(boolean)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertFalse(Utility.parseBoolean("0"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:184: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:188: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:192: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:197: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("true", Utility.serializeBoolean(true));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:198: cannot find symbol
      [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals("false", Utility.serializeBoolean(false));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:202: cannot find symbol
      [javac] symbol : method assertEquals(int,char)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(0, Utility.parseChar("0"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:203: cannot find symbol
      [javac] symbol : method assertEquals(int,char)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(100, Utility.parseChar("100"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:204: cannot find symbol
      [javac] symbol : method assertEquals(int,char)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(1000, Utility.parseChar("+1000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:205: cannot find symbol
      [javac] symbol : method assertEquals(int,char)
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] assertEquals(65000, Utility.parseChar("65000"));
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:208: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] /Users/shlomo/lib/jibx/build/test/org/jibx/runtime/UtilityTest.java:212: cannot find symbol
      [javac] symbol : method fail()
      [javac] location: class org.jibx.runtime.UtilityTest
      [javac] fail();
      [javac] ^
      [javac] 100 errors

      BUILD FAILED
      /Users/shlomo/lib/jibx/build/build.xml:295: Compile failed; see the compiler error output for details.

      Total time: 24 seconds
      ---------

      However, if I define the following:
      $ export CLASSPATH=/usr/share/junit/junit.jar

      then the build succeeds.

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Not really a bug, but certainly an omission in the documentation. I've added to the build instructions that to run the full build you need to have JUnit available to Ant, either by adding it into your Ant installation lib folder or by adding it to the CLASSPATH environmental variable.

        Show
        Dennis Sosnoski added a comment - Not really a bug, but certainly an omission in the documentation. I've added to the build instructions that to run the full build you need to have JUnit available to Ant, either by adding it into your Ant installation lib folder or by adding it to the CLASSPATH environmental variable.
        Dennis Sosnoski made changes -
        Field Original Value New Value
        Resolution Not A Bug [ 6 ]
        Fix Version/s JiBX 1.2.2 [ 15120 ]
        Assignee Dennis Sosnoski [ dsosnoski ]
        Status Open [ 1 ] Resolved [ 5 ]
        Dennis Sosnoski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Shlomo Swidler
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: