NullPointerException reported instead of error in ivy:cachepath
---------------------------------------------------------------

                 Key: IVY-690
                 URL: https://issues.apache.org/jira/browse/IVY-690
             Project: Ivy
          Issue Type: Bug
    Affects Versions: 2.0.0-beta-1
         Environment: Ubuntu 7.10 Gutsy Gibbon; Java 1.6.0_03-b05; Ant 1.7.0; 
Ivy 2.0.0-beta1
            Reporter: Russel Winder


Using the erroneous:

<ivy:cachepath organisation="apache" module="commons-lang" revision="2.3"  
pathid="lib.path.id" inline="true"/>

leads to the error message:

No ivy:settings found for the default reference 'ivy.instance'.  A default 
instance will be used
no settings file found, using default...
[ivy:cachepath] :: Ivy 2.0.0-beta1 - 20071206070608 ::
http://ant.apache.org/ivy/ ::
:: loading settings :: url = 
jar:file:/home/users/russel/lib/Java/groovy/lib/ivy-2.0.0-beta1.jar!/org/apache/ivy/core/settings/ivysettings.xml

BUILD FAILED
/home/Checkouts/SVK/Gant/local/gant/trunk/examples/ivy/build.xml:36:
impossible to resolve dependencies:
        java.lang.NullPointerException

Correct the ivy:cachepath to:

<ivy:cachepath organisation="commons-lang" module="commons-lang" revision="2.3" 
 pathid="lib.path.id" inline="true"/>

and everything works as expected.  The error report here is that a message 
other than NullPointerException should be generated.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to