Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Goubet2017-06-16 11:17:58 -0400
committerLaurent Goubet2017-06-16 11:18:05 -0400
commit0388cc9e0a93714409cd510270633da4792302df (patch)
tree9eb9216bf4059f58b1f77a72c86f53681c071207
parent2f5aacfc6d53177a392dcb6f8bf30aca8b710aaa (diff)
downloadorg.eclipse.acceleo-0388cc9e0a93714409cd510270633da4792302df.tar.gz
org.eclipse.acceleo-0388cc9e0a93714409cd510270633da4792302df.tar.xz
org.eclipse.acceleo-0388cc9e0a93714409cd510270633da4792302df.zip
[516735] Remove outdated and deprecated ant task
Task was deprecated for more than 3 years and probably not functional anymore. Change-Id: I548a2035e83b1dc03571b701c1d36b07826c1854 Bug: 516735
-rw-r--r--plugins/org.eclipse.acceleo.parser/.classpath1
-rw-r--r--plugins/org.eclipse.acceleo.parser/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.acceleo.parser/src-ant/org/eclipse/acceleo/parser/compiler/AcceleoCompiler.java126
3 files changed, 0 insertions, 128 deletions
diff --git a/plugins/org.eclipse.acceleo.parser/.classpath b/plugins/org.eclipse.acceleo.parser/.classpath
index 49b15009b..a1e4b83a6 100644
--- a/plugins/org.eclipse.acceleo.parser/.classpath
+++ b/plugins/org.eclipse.acceleo.parser/.classpath
@@ -2,7 +2,6 @@
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="src" path="src"/>
- <classpathentry kind="src" output="bin-ant" path="src-ant"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
diff --git a/plugins/org.eclipse.acceleo.parser/META-INF/MANIFEST.MF b/plugins/org.eclipse.acceleo.parser/META-INF/MANIFEST.MF
index c98a281e2..45ffcd852 100644
--- a/plugins/org.eclipse.acceleo.parser/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.acceleo.parser/META-INF/MANIFEST.MF
@@ -11,7 +11,6 @@ Bundle-Localization: plugin
Require-Bundle: org.eclipse.acceleo.model,
org.eclipse.ocl.ecore,
org.eclipse.acceleo.common,
- org.apache.ant,
org.eclipse.core.runtime
Export-Package: org.eclipse.acceleo.internal.compatibility.parser.ast.ocl.environment;x-internal:=true,
org.eclipse.acceleo.internal.parser;x-friends:="org.eclipse.acceleo.ide.ui,org.eclipse.acceleo.parser.tests",
diff --git a/plugins/org.eclipse.acceleo.parser/src-ant/org/eclipse/acceleo/parser/compiler/AcceleoCompiler.java b/plugins/org.eclipse.acceleo.parser/src-ant/org/eclipse/acceleo/parser/compiler/AcceleoCompiler.java
deleted file mode 100644
index 1bf4a92a1..000000000
--- a/plugins/org.eclipse.acceleo.parser/src-ant/org/eclipse/acceleo/parser/compiler/AcceleoCompiler.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.acceleo.parser.compiler;
-
-import java.lang.reflect.Field;
-import java.lang.reflect.Method;
-import java.util.StringTokenizer;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.Task;
-import org.eclipse.emf.ecore.EPackage;
-
-/**
- * The Acceleo Compiler ANT Task.
- *
- * @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
- * @since 3.1
- */
-@Deprecated
-public class AcceleoCompiler extends Task {
-
- /**
- * The packages to register.
- */
- private String packagesToRegister;
-
- /**
- * The compiler helper.
- */
- private final AcceleoCompilerHelper helper = new AcceleoCompilerHelper();
-
- /**
- * Sets the source folder to compile.
- *
- * @param theSourceFolder
- * are the source folder to compile
- */
- public void setSourceFolder(String theSourceFolder) {
- helper.setSourceFolder(theSourceFolder);
- }
-
- /**
- * Sets the output folder.
- *
- * @param theOutputFolder
- * The output folder.
- */
- public void setOutputFolder(String theOutputFolder) {
- helper.setOutputFolder(theOutputFolder);
- }
-
- /**
- * Sets the dependencies to load before to compile. They are separated by ';'.
- *
- * @param allDependencies
- * are the dependencies identifiers
- */
- public void setDependencies(String allDependencies) {
- helper.setDependencies(allDependencies);
- }
-
- /**
- * Sets the binary resource attribute.
- *
- * @param binaryResource
- * Indicates if we should use a binary resource.
- */
- public void setBinaryResource(boolean binaryResource) {
- helper.setBinaryResource(binaryResource);
- }
-
- /**
- * Sets the packages to register.
- *
- * @param packages
- * the semicolon separated packages.
- */
- public void setPackagesToRegister(String packages) {
- this.packagesToRegister = packages;
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.apache.tools.ant.Task#execute()
- */
- @Override
- public void execute() throws BuildException {
- // CHECKSTYLE:OFF
- try {
- if (packagesToRegister != null) {
- StringTokenizer tokenizer = new StringTokenizer(packagesToRegister, ";"); //$NON-NLS-1$
- while (tokenizer.hasMoreElements()) {
- String nextPackage = tokenizer.nextToken();
- Class<?> packageClass = Class.forName(nextPackage);
- Field field = packageClass.getField("eINSTANCE"); //$NON-NLS-1$
- if (field != null) {
- Object packageInstance = field.get(packageClass);
- Method method = packageInstance.getClass().getMethod("getNsURI"); //$NON-NLS-1$
- Object packageNsUri = method.invoke(packageInstance);
- if (packageInstance instanceof EPackage && packageNsUri instanceof String) {
- EPackage ePackage = (EPackage)packageInstance;
- String uri = (String)packageNsUri;
- EPackage.Registry.INSTANCE.put(uri, ePackage);
- }
- }
- }
- }
-
- helper.execute();
- } catch (Throwable e) {
- log(e.getMessage(), Project.MSG_ERR);
- throw new BuildException(e.getMessage(), getLocation());
- }
- // CHECKSTYLE:ON
- }
-}

Back to the top