boolean pDoWithoutTransaction,
String pWorkspaceComment,
boolean pCheckin)
throws VersionException {
VersionManager vm = pVerRep.getVersionManager();
Workspace ws = vm.getWorkspaceByName(pWorkspaceName);
if (ws == null) {
throw new IllegalArgumentException("No such workspace " + pWorkspaceName);
}
if (TemplateParser.importFiles(
pVerRep, pImportFiles, new PrintWriter(
System.out
), pDoWithoutTransaction, VersioningContextUtil.createVersioningContext(
ws.getName(), pWorkspaceComment, pCheckin
)
) != 0) {
throw new AssertionError("Versioned import failed");
}
}