blob: 5694e314bed2ebc911ff9643e6961b848bd35bb6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2014 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.pde.api.tools.generator;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
public class EEDescriptionGenerator implements IApplication {
/**
* Runs the application to generate the EE description
*/
@Override
public Object start(IApplicationContext context) throws Exception {
Object arguments = context.getArguments().get(IApplicationContext.APPLICATION_ARGS);
if (arguments instanceof String[]) {
String[] args = (String[]) arguments;
EEGenerator.main(args);
}
return IApplication.EXIT_OK;
}
@Override
public void stop() {
// do nothing
}
}