/** * Set a (multiline) property as nested text. * @param msg the text to append to the output text * @since Ant 1.8.0 */ public void addText(String msg) { if (!valueAttributeUsed) { msg = getProject().replaceProperties(msg); String currentValue = getValue(); if (currentValue != null) { msg = currentValue + msg; } internalSetValue(msg); } else if (!msg.trim().isEmpty()) { throw new BuildException("can't combine nested text with value attribute"); } }
String value = p.getValue(); if (name == null || value == null) { log("Only name/value pairs are supported as connection properties.",
/** * Assigns an Ant property to another. * * @param to the destination property whose content is modified. * @param from the source property whose content is copied. */ private static void copyProperty(Property to, Property from) { to.setName(from.getName()); if (from.getValue() != null) { to.setValue(from.getValue()); } if (from.getFile() != null) { to.setFile(from.getFile()); } if (from.getResource() != null) { to.setResource(from.getResource()); } if (from.getPrefix() != null) { to.setPrefix(from.getPrefix()); } if (from.getRefid() != null) { to.setRefid(from.getRefid()); } if (from.getEnvironment() != null) { to.setEnvironment(from.getEnvironment()); } if (from.getClasspath() != null) { to.setClasspath(from.getClasspath()); } }
antProject.replaceProperties(property.getValue())); } else if (property.getFile() != null) {