From 75b8347dc469862efc6331c4a8802607b928a91b Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Thu, 21 Dec 2023 09:58:14 +0100 Subject: [PATCH] removed old Java generator --- org.eclipse.xtext.common.types/.classpath | 7 +--- .../xtext/common/types/GenerateEMF.java | 42 ------------------- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 org.eclipse.xtext.common.types/generator/org/eclipse/xtext/common/types/GenerateEMF.java diff --git a/org.eclipse.xtext.common.types/.classpath b/org.eclipse.xtext.common.types/.classpath index 8a98ceacd6a..533d3dbc9f1 100644 --- a/org.eclipse.xtext.common.types/.classpath +++ b/org.eclipse.xtext.common.types/.classpath @@ -1,14 +1,9 @@ - - - - - + - diff --git a/org.eclipse.xtext.common.types/generator/org/eclipse/xtext/common/types/GenerateEMF.java b/org.eclipse.xtext.common.types/generator/org/eclipse/xtext/common/types/GenerateEMF.java deleted file mode 100644 index 06ed4624737..00000000000 --- a/org.eclipse.xtext.common.types/generator/org/eclipse/xtext/common/types/GenerateEMF.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2016 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.common.types; - -import java.io.File; - -import org.eclipse.emf.mwe.utils.DirectoryCleaner; -import org.eclipse.emf.mwe.utils.StandaloneSetup; -import org.eclipse.emf.mwe2.ecore.EcoreGenerator; - -/** - * @author Sven Efftinge - Initial contribution and API - */ -public class GenerateEMF { - /** - * Can't use MWE2 because of circular dependencies - */ - public static void main(String[] args) { - final String projectName = "org.eclipse.xtext.common.types"; - - new StandaloneSetup() {{ - registerProject(new File(".project").getAbsoluteFile()); - }}; - - new DirectoryCleaner() {{ - setDirectory("../"+projectName+"/emf-gen"); - }}.invoke(null); - - - new EcoreGenerator() {{ - setGenModel("platform:/resource/"+projectName+"/model/JavaVMTypes.genmodel"); - addSrcPath("platform:/resource/"+projectName+"/src"); - setLineDelimiter("\n"); - }}.invoke(null); - } -}