Community
Participate
Working Groups
Created attachment 190409 [details] Shared license feature.xml file I'm having issues to build Sequoyah using the new shared license feature. This bug was being discussed on cross-project-dev (http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg05527.html). The main problem is that I'm getting an org.xml.sax.SAXParseException, because my build is not understanding the feature.xml files correctly. It raises this same exception for every feature I build. Also remember tat I use a container feature to guide the build process. Here is part of the build output: [java] publish.bin.parts: [java] [mkdir] Created dir: /opt/public/tools/sequoyah/indigo/temp/eclipse.build/features/org.eclipse.sequoyah.vnc.vncviewer.feature/feature.temp.folder/features/org.eclipse.sequoyah.vnc.vncviewer.feature_1.0.0.N20110302-1139 [java] [copy] Copying 3 files to /opt/public/tools/sequoyah/indigo/temp/eclipse.build/features/org.eclipse.sequoyah.vnc.vncviewer.feature/feature.temp.folder/features/org.eclipse.sequoyah.vnc.vncviewer.feature_1.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 also attached 2 files to ilustrate my situation: - license_feature.xml - other_feature.xml Any help will be appreciated. Thanks, Daniel Pastore Sequoyah Team
Created attachment 190410 [details] feature.xml from one of Sequoyah's feature
Similar to bug 338835?
(In reply to comment #2) > Similar to bug 338835? I'll try the same fix right now and report when I finish. :)
Your license feature doesn't refer to a license property. For instance, see my license feature http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.sdk-feature/features/org.eclipse.license/feature.xml?view=markup which refers to these properties <description> %description </description> <copyright> %copyright </copyright> <license url="%licenseURL"> %license </license> The license property needs to be inherited from the feature.properties of the license feature. For instance, here is my license feature's feature.properties http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.sdk-feature/features/org.eclipse.license/feature.properties?view=markup I have implemented my features to inherit the description and copyright from the properties contained in the feature.properties of the non-license features.
Hi Kim, I'm glad to tell you that the build is now working just fine! 8) Tks a lot for your help! Daniel Pastore Sequoyah Team
closing
Created attachment 191337 [details] build log file
Created attachment 191338 [details] Flawed temp.feature.folder/feature.xml
Added two attachments.
Did you try suggestion https://bugs.eclipse.org/bugs/show_bug.cgi?id=338835#c4
(In reply to comment #10) > Did you try suggestion > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=338835#c4 Thanks a lot, Kim! That fixed it! :) Thanks, Daniel Pastore Sequoyah Team
*** This bug has been marked as a duplicate of bug 338835 ***