$code.copy

Copies all source code from the given application instance into the current one.
Syntax
    $code.copy{source_instance_id}{username}{password}
Documentation$code.copy:
Copies all source code including the compiled data from the given application instance into the current one. This works faster than the $code.cloneTempalates and faster than the $code.getTemplateSource/$code.setTemplateSource equivalent because this operation is actually a file copy and all storing and the compilation process can be skipped.
    Paramter:
      1: The id of the source application instance.
      2: Name of an admin user having read access to the foreign source.
      3: The users password.
    Returns:
      Void.
    Throws:
      SecurityException if one of the involved users is not an admin or other access restrictions are not met.
      IOException if an io error occures.
Examples
$code.copy{1017777287307}{root}{root}
GroupCode
Minimum required transaction-mode:UPDATE
Required scripting permission of the developerPERMISSION_FL_ADMINISTRATIVE
Minimum parameters3
Maximum parameters 3