Ok, I found a way to merge Eclipse and Tycho "bootstrap" sources. It's not clean, not elegant, but it builds. I think it's a starting point. I had some issues with the versions of Maven plugins, I had to manually write them into pom's, and I still don't understand why.
Now, I don't know exactly what I am supposed to do with this package. Regards. Luca Il 18/02/2016 09:20, Luca Vercelli ha scritto: > Well, probably it does not compile because the eclipse version is too > old. Now I am trying to mix Tycho and Eclipse sources. > > > Il 16/02/2016 22:00, Christopher Hoskin ha scritto: >> Out of curiosity, I thought I'd give this a try and see how far I got. >> >> I downloaded >> >> https://git.eclipse.org/c/tycho/org.eclipse.tycho.git/snapshot/tycho-0.24.0.tar.gz >> >> and copied the files >> >> http://pkgs.fedoraproject.org/cgit/rpms/tycho.git/tree/tycho-bootstrap.sh >> http://pkgs.fedoraproject.org/cgit/rpms/tycho.git/tree/tycho-scripts.sh >> >> into the tycho-0.24.0 folder >> >> I installed the eclipse packaged in Sid: >> >> sudo apt-get install eclipse-rcp eclipse-platform >> >> I then ran >> >> ./tycho-bootstrap.sh 0 >> >> With a couple of slight tweaks to the code, it gets a fair way through >> building and installing the bootstrap version of tycho into .m2/. >> Currently it falls over building bundle 5 of 6 >> (tycho-bundles/org.eclipse.tycho.p2.resolver.impl) with the errors >> below. I haven't applied any of the Fedora patches - possibly they may >> fix some of these errors. >> >> Not sure if this approach is useful? Happy to keep plodding away at it >> if so. >> >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/publisher/AbstractSiteDependenciesAction.java:17: >> error: cannot find symbol >> import org.eclipse.equinox.internal.p2.updatesite.SiteBundle; >> ^ >> symbol: class SiteBundle >> location: package org.eclipse.equinox.internal.p2.updatesite >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/resolver/P2ResolverImpl.java:381: >> error: cannot find symbol >> return >> Boolean.parseBoolean(iu.getProperty(InstallableUnitDescription.PROP_TYPE_PRODUCT)); >> >> ^ >> symbol: variable PROP_TYPE_PRODUCT >> location: class InstallableUnitDescription >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/publisher/ProductDependenciesAction.java:96: >> error: cannot find symbol >> iud.setProperty(InstallableUnitDescription.PROP_TYPE_PRODUCT, >> Boolean.toString(true)); >> ^ >> symbol: variable PROP_TYPE_PRODUCT >> location: class InstallableUnitDescription >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/publisher/AbstractSiteDependenciesAction.java:56: >> error: cannot find symbol >> for (SiteBundle bundle : getSiteModel().getBundles()) { >> ^ >> symbol: method getBundles() >> location: class SiteModel >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/publisher/AbstractSiteDependenciesAction.java:56: >> error: cannot find symbol >> for (SiteBundle bundle : getSiteModel().getBundles()) { >> ^ >> symbol: class SiteBundle >> location: class AbstractSiteDependenciesAction >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/publisher/AbstractSiteDependenciesAction.java:84: >> warning: non-varargs call of varargs method with inexact argument type >> for last parameter; >> .<IInstallableUnit> >> matchExpression(ExpressionUtil.parse(expression), params); >> >> >> ^ >> cast to Object for a varargs call >> cast to Object[] for a non-varargs call and to suppress this warning >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/publisher/model/ProductFile2.java:62: >> error: cannot find symbol >> return getFeatures(INCLUDED_FEATURES | ROOT_FEATURES); >> ^ >> symbol: variable INCLUDED_FEATURES >> location: class ProductFile2 >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/publisher/model/ProductFile2.java:62: >> error: cannot find symbol >> return getFeatures(INCLUDED_FEATURES | ROOT_FEATURES); >> ^ >> symbol: variable ROOT_FEATURES >> location: class ProductFile2 >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/ArtifactTypeHelper.java:57: >> error: cannot find symbol >> QueryUtil.createIUProductQuery()); >> ^ >> symbol: method createIUProductQuery() >> location: class QueryUtil >> tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/ee/CustomEEResolutionHandler.java:62: >> error: cannot find symbol >> if (JREAction.NAMESPACE_OSGI_EE.equals(namespace)) { >> ^ >> symbol: variable NAMESPACE_OSGI_EE >> location: class JREAction >> Note: Some input files use or override a deprecated API. >> Note: Recompile with -Xlint:deprecation for details. >> Note: Some input files use unchecked or unsafe operations. >> Note: Recompile with -Xlint:unchecked for details. >> 9 errors >> 1 warning >> >> >> >> >>