Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-147

CLASSPATH set incorrectly in scripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Version 1.0.4 (jdk1.3 port)
    • None
    • None
    • win2k

    Description

      Scripts (scomp,xpretty,etc) incorrectly set the CLASSPATH. See the diff below:

      @@ -12,7 +12,7 @@
      if EXIST %XMLBEANS_HOME%\build\ar\xbean.jar. (
      set cp=%XMLBEANS_HOME%\build\ar\xbean.jar;%XMLBEANS_HOME%\build\lib\xml-apis.jar;%XMLBEANS_HOME%\build\lib\xercesImpl.jar.
      ) else if EXIST %XMLBEANS_HOME%\lib\xbean.jar. (

      • set cp=%XMLBEANS_HOME%\build\lib\xbean.jar;%XMLBEANS_HOME%\lib\xml-apis.jar;%XMLBEANS_HOME%\lib\xercesImpl.jar.
        + set cp=%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\xml-apis.jar;%XMLBEANS_HOME%\lib\xercesImpl.jar.
        )

      In short, the classpath SHOULD be set to %XMLBEANS_HOME%\lib\xbean.jar NOT %XMLBEANS_HOME%\build\lib\xbean.jar

      This is a very irritating bug given that the directions on http://xmlbeans.apache.org/documentation/conInstallGuide.html instruct you to add xmlbeans.jar to the classpath (shouldn't you really add the entire lib directory to the classpath), as if that makes any difference. The fact is the scripts completely override the classpath with their own settings.

      Attachments

        1. jira-xmlbeans-147-diff.txt
          7 kB
          Wing Yew Poon

        Activity

          People

            wypoon Wing Yew Poon
            korebantic korebantic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: