fixed copy on template as it was missing parameters

This commit is contained in:
Adrian Cole 2010-09-26 14:02:31 +01:00
parent f425a28b80
commit 47697d6f7e
1 changed files with 6 additions and 0 deletions

View File

@ -815,6 +815,12 @@ public class TemplateBuilderImpl implements TemplateBuilder {
to.withMetadata();
if (!from.shouldBlockUntilRunning())
to.blockUntilRunning(false);
if (!from.shouldBlockOnComplete())
to.blockOnComplete(false);
if (from.getOverrideCredentials() != null)
to.withOverridingCredentials(from.getOverrideCredentials());
if (from.getTaskName() != null)
to.nameTask(from.getTaskName());
}
@VisibleForTesting