handle empty conf attribute as if none were specified

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@618005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Xavier Hanin 2008-02-03 15:44:07 +00:00
parent 8812856770
commit 0c5fbe0dec
1 changed files with 2 additions and 1 deletions

View File

@ -366,7 +366,8 @@ public final class XmlModuleDescriptorUpdater {
ExtendedBuffer buffer = new ExtendedBuffer(getContext());
buffers.push(buffer);
confAttributeBuffers.push(buffer);
buffer.setDefaultPrint(attributes.getValue("conf") == null);
buffer.setDefaultPrint(attributes.getValue("conf") == null
|| attributes.getValue("conf").trim().length() == 0);
write("<dependency");
String org = substitute(settings, attributes.getValue("org"));
org = org == null ? organisation : org;