--- C:\download\ivy\ivy-1.4.1-src\ivy-1.4.1\test\java\fr\jayasoft\ivy\xml\XmlIvyConfigurationParserTest.java 2006-11-09 16:52:16.000000000 +-1000 +++ C:\development\uncontrolled\ivy-1.4.1\test\java\fr\jayasoft\ivy\xml\XmlIvyConfigurationParserTest.java 2007-07-17 15:04:00.000000000 +-1000 @@ -329,12 +329,21 @@ ReportOutputter testOutputter = ivy.getReportOutputter("test"); assertNotNull(testOutputter); assertTrue(testOutputter instanceof MyOutputter); } + public void testRelativePropertiesFile() throws Exception { + + Ivy ivy = new Ivy(); + XmlIvyConfigurationParser parser = new XmlIvyConfigurationParser(ivy); + parser.parse(XmlIvyConfigurationParserTest.class.getResource("ivyconf-properties-relative-to-ivyconf.xml")); + + assertEquals("lib", ivy.getVariable("libraries.dir")); + } + private void configureURLHandler() { URLHandlerDispatcher dispatcher = new URLHandlerDispatcher(); URLHandler httpHandler = URLHandlerRegistry.getHttp(); dispatcher.setDownloader("http", httpHandler); dispatcher.setDownloader("https", httpHandler); URLHandlerRegistry.setDefault(dispatcher);