|
13 | 13 | import org.eclipse.core.resources.IResource;
|
14 | 14 | import org.eclipse.core.resources.ResourcesPlugin;
|
15 | 15 | import org.eclipse.core.runtime.CoreException;
|
16 |
| -import com.devonfw.cobigen.eclipse.common.constants.external.ResourceConstants; |
17 |
| -import com.devonfw.cobigen.eclipse.common.exceptions.GeneratorProjectNotExistentException; |
18 |
| -import com.devonfw.cobigen.eclipse.updatetemplates.UpdateTemplatesDialog; |
19 | 16 | import org.eclipse.core.runtime.IPath;
|
20 | 17 | import org.eclipse.core.runtime.NullProgressMonitor;
|
21 | 18 | import org.eclipse.jface.dialogs.MessageDialog;
|
|
24 | 21 | import org.slf4j.Logger;
|
25 | 22 | import org.slf4j.LoggerFactory;
|
26 | 23 |
|
27 |
| - |
28 |
| - |
29 | 24 | import com.devonfw.cobigen.api.TemplateAdapter;
|
30 | 25 | import com.devonfw.cobigen.api.constants.ConfigurationConstants;
|
31 | 26 | import com.devonfw.cobigen.api.util.CobiGenPaths;
|
32 | 27 | import com.devonfw.cobigen.api.util.TemplatesJarUtil;
|
| 28 | +import com.devonfw.cobigen.eclipse.common.constants.external.ResourceConstants; |
| 29 | +import com.devonfw.cobigen.eclipse.common.exceptions.GeneratorProjectNotExistentException; |
| 30 | +import com.devonfw.cobigen.eclipse.updatetemplates.UpdateTemplatesDialog; |
33 | 31 | import com.devonfw.cobigen.impl.CobiGenFactory;
|
34 | 32 | import com.devonfw.cobigen.impl.adapter.TemplateAdapterImpl;
|
35 | 33 |
|
@@ -261,7 +259,7 @@ public static void processJar(String fileName) throws MalformedURLException, IOE
|
261 | 259 | }
|
262 | 260 |
|
263 | 261 | try {
|
264 |
| - TemplateAdapter templateAdapter = new TemplateAdapterImpl(cobigenFolderPath); |
| 262 | + TemplateAdapter templateAdapter = new TemplateAdapterImpl(null); |
265 | 263 | templateAdapter.adaptMonolithicTemplates(cobigenFolderPath.resolve(ConfigurationConstants.COBIGEN_TEMPLATES),
|
266 | 264 | false);
|
267 | 265 | } catch (Exception e) {
|
@@ -298,7 +296,6 @@ public static void startTemplatesUpgrader(Path configurationPath) {
|
298 | 296 |
|
299 | 297 | setTemplateSetPathAfterUpgrade(CobiGenFactory.startTemplatesUpgrader(configurationPath));
|
300 | 298 |
|
301 |
| - |
302 | 299 | // FIXME after the upgrade adapt the new template-set folder. should be done in #1587
|
303 | 300 | }
|
304 | 301 |
|
|
0 commit comments