org.eclipse.tycho.plugins.p2.extras.Iu Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2011 SAP AG and others.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Jan Sievers - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.plugins.p2.extras;
import org.eclipse.tycho.p2.tools.mirroring.facade.IUDescription;
/**
* Installable Unit adapter class for {@link MirrorMojo} configuration purposes only.
*/
public class Iu {
String id;
String version;
Query query;
public IUDescription toIUDescription() {
if (query == null) {
return new IUDescription(id, version, null, null);
} else {
return new IUDescription(id, version, query.getExpression(), query.getParsedParameters());
}
}
public void setQuery(Query query) {
this.query = query;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy