I am trying to implement the new shared license feature in the Sequoyah build, but I think I'm doing something wrong or I missed something. :(
Meanwhile, I updated the eclipse I use to build and now it is a 3.7M5 eclipse, that should include the shared license support.
Now here comes my problem: we use a container feature to build Sequoyah, using an ant build file. I tried 4 scenarios:
1) Include sequoyah.license.feature in the container feature and also use the license-feature property for the container;
2) Include sequoyah.license.feature in the container feature and not use the license-feature property for the container;
3) Do not include sequoyah.license.feature in the container feature and use the license-feature property for the container;
4) Do not include sequoyah.license.feature in the container feature and not use the license-feature property for the container;
For all of them, I received the same build failed status, with the following remarkable exception for every single feature:
[java] publish.bin.parts:
[java] [mkdir] Created dir: /opt/public/tools/sequoyah/indigo/temp/eclipse.build/features/org.eclipse.sequoyah.device.feature/feature.temp.folder/features/org.eclipse.sequoyah.device.feature_2.0.0.N20110302-1139
[java] [copy] Copying 3 files to /opt/public/tools/sequoyah/indigo/temp/eclipse.build/features/org.eclipse.sequoyah.device.feature/feature.temp.folder/features/org.eclipse.sequoyah.device.feature_2.0.0.N20110302-1139
[java] [eclipse.gatherFeature] Generating metadata for ..
[java] [eclipse.gatherFeature] org.xml.sax.SAXParseException: Content is not allowed in prolog.
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1441)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:899)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
[java] [eclipse.gatherFeature] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
[java] [eclipse.gatherFeature] at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
[java] [eclipse.gatherFeature] at org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.parse(FeatureManifestParser.java:98)
[java] [eclipse.gatherFeature] at org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureParser.parse(FeatureParser.java:52)
[java] [eclipse.gatherFeature] at org.eclipse.pde.internal.build.publisher.GatherFeatureAction.getFeatures(GatherFeatureAction.java:44)
[java] [eclipse.gatherFeature] at org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction.perform(FeaturesAction.java:600)
[java] [eclipse.gatherFeature] at org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
[java] [eclipse.gatherFeature] at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.executeBatch(SimpleArtifactRepository.java:1062)
[java] [eclipse.gatherFeature] at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:231)
I have cut the log here, because it seems to me that somehow the p2.publisher is not understanding the new model (at org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.parse(FeatureManifestParser.java:98)).