Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2010 Code 9 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 Contributors: Code 9 - initial API and implementation /
package org.eclipse.equinox.internal.p2.updatesite;

This application generates meta-data/artifact repositories from a local update site. The -source <localdir> parameter must specify the top-level directory containing the update site.

	private String categoryQualifier = null;
	private String categoryVersion = null;
		// nothing todo
	protected void processParameter(String argString parameterPublisherInfo pinfothrows URISyntaxException {
		if (arg.equalsIgnoreCase("-categoryQualifier")) //$NON-NLS-1$
			 = parameter;
		if (arg.equalsIgnoreCase("-categoryVersion")) //$NON-NLS-1$
			 = parameter;
	protected IPublisherAction[] createActions() {
		if () {
			return new IPublisherAction[] {actionnew JREAction((Stringnull)};
		return new IPublisherAction[] {action};

by default don't generate the JRE IU
	private boolean addJRE = false;

Detect the flag -addJREIU to turn on the generation of the JREIU.
	protected void processFlag(String flagPublisherInfo publisherInfo) {
		if (flag.equalsIgnoreCase("-addJREIU"))//$NON-NLS-1$
			 = true;
New to GrepCode? Check out our FAQ X