Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7, 1.6-beta-2
    • Component/s: Ant integration
    • Labels:
      None

      Description

      I have such thing working in our CI environment but couldn't figure out why is it not working when done from command line.

      download http://anonsvn.jboss.org/repos/repository.jboss.org/maven2/jboss/jbossall-client/4.2.2.GA/jbossall-client-4.2.2.GA.jar to jbossall-client.jar

      "groovy -cp jbossall-client.jar groovy_bug.groovy" works fine

      "ant -f groovy_bug.xml" throws an exception although task's classpath is set and otherwise classes from jbossall-client.jar are resolved:
      javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]

      "ant -lib . -f groovy_bug.xml" works fine.

        Attachments

        1. groovy_bug.groovy
          2 kB
          A
        2. groovy_bug.xml
          0.5 kB
          A
        3. groovy_ant_fork.patch
          10 kB
          Paul King

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              avalon A
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: