/** * Copies all user properties that have not been set on the * command line or a GUI tool from this instance to the Project * instance given as the argument. * * <p>To copy all "user" properties, you will also have to call * {@link #copyUserProperties copyUserProperties}.</p> * * @param Project $other the project to copy the properties to. Must not be null. * * @since phing 2.0 */ public function copyInheritedProperties(Project $other) { foreach ($this->userProperties as $arg => $value) { if ($other->getUserProperty($arg) !== null) { continue; } $other->setInheritedProperty($arg, $value); } }