|
|
|
|
|
Re: Git clone of a source code into a parent C project doesn't appear to work? [message #1849649 is a reply to message #1849640] |
Thu, 27 January 2022 18:52 |
James Poli Messages: 27 Registered: January 2022 |
Junior Member |
|
|
Thanks, Thomas. The clone is below:
CloneOperation operation = new CloneOperation(uri, true, null, trgFile, branch, "origin", 10000);
try {
operation.addPostCloneTask(new PostCloneTask() {
public void execute(Repository repository, IProgressMonitor monitor) throws CoreException {
localRepositories.add(repository.getDirectory().getAbsolutePath());
options.put(GitSCMWizardPage.KEY_SELECTED_LOCAL_REPOS, localRepositories);
}
});
operation.run(monitor);
} catch (InvocationTargetException e) {
...
}
Here is the import:
private void importProjects(IProgressMonitor monitor) throws IOException, InvocationTargetException,
InterruptedException
{
Repository repo = getTargetRepository(rootDirectory);
Set<ProjectRecord> projectsToCreate = getProjectRecords();
ProjectUtils.createProjects(projectsToCreate, true,null, monitor);
boolean isEclipseLunaRelease = false;
}
FWIW, I saw your Obligatory cautionary note. This code is old and appears very fragile. I'm not surprised it isn't working.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04289 seconds