import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import com.intellij.openapi.util.io.FileUtil;
+import com.intellij.openapi.vfs.VfsUtilCore;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.platform.templates.github.GeneratorException;
import com.intellij.platform.templates.github.GithubTagInfo;
public void generateProject(@NotNull final Project project, @NotNull final VirtualFile baseDir,
@NotNull GithubTagInfo tag, @NotNull Module module) {
try {
- unpackToDir(project, new File(baseDir.getPath()), tag);
+ unpackToDir(project, VfsUtilCore.virtualToIoFile(baseDir), tag);
}
catch (GeneratorException e) {
showErrorMessage(project, e.getMessage());
if (latestInnerException == null) {
return Outcome.createNormal(dataRef.get());
}
- LOG.warn("[attempt#" + attemptNumber + "] Can not '" + actionShortDescription + "'", latestInnerException);
+ LOG.info("[attempt#" + attemptNumber + "] Cannot '" + actionShortDescription + "'");
boolean onceMore = false;
if (tryAgainProvider != null) {
onceMore = Boolean.TRUE.equals(tryAgainProvider.produce());