Description
Using similar config in ivysettings cause NullPointerException
<caches default="ivyCache" > <cache name="ivyCache" basedir="${default.cache.dir}" defaultTTL="eternal" > <ttl organisation="com.abc" duration="0ms" matcher="regexp"/> </cache> </caches>
Value of matcher doesn't matter
c:\test-ttl.xml:23: impossible to configure ivy:settings with given file: c:\ivysettings.xml : java.text.ParseException: failed to load settings from file:/c:/ivysettings.xml: impossible to add configured child for ttl on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager: java.lang.NullPointerException at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.addConfiguredTtl(DefaultRepositoryCacheManager.java:252)
Looking and debugging line 252 in DefaultrepositoryCacheManager, the settings variable is not yet initialized in that point of parsing
addTTL(attributes,
matcher == null ? ExactPatternMatcher.INSTANCE : settings.getMatcher(matcher),
parseDuration(duration));
Attachments
Issue Links
- links to