Community
Participate
Working Groups
I'm trying to use the new shared license feature. I've created a new feature that contains the license files and a feature.xml as follows: <?xml version="1.0" encoding="UTF-8"?> <feature id="org.eclipse.ptp.license" version="1.0.0.qualifier" image="eclipse_update_120.jpg"> <description> %description </description> <copyright> %copyright </copyright> <license url="%licenseURL"> %license </license> </feature> I have removed the license files from the original feature and modified the feature.xml as follows: <?xml version="1.0" encoding="UTF-8"?> <feature id="org.eclipse.ptp" label="%featureName" version="5.0.0.qualifier" provider-name="%providerName" plugin="org.eclipse.ptp" license-feature="org.eclipse.ptp.license" license-feature-version="1.0.0.qualifier"> <description url="http://eclipse.org/ptp"> %description </description> ... I'm using v20110223 of org.eclipse.releng.basebuilder. The build completes successfully and the license files appear to have been copied into the feature. However the feature.xml appears to be corrupted: url="%licenseURL"> %license <?xml version="1.0" encoding="UTF-8"?> <feature id="org.eclipse.ptp" label="%featureName" version="5.0.0.201103031008" provider-name="%providerName" plugin="org.eclipse.ptp" > <description url="http://eclipse.org/ptp"> %description </description> ...
Adding Dean to the CC.
I have to assume something is going wrong in the LicenseReplaceTask, Greg can you please attach a copy of your modified feature.xml before the build mangles it.
Created attachment 190303 [details] Feature before mangling
Greg, you can add back the <license url="%licenseURL"> %license </license> section to your feature.xml and things should work better. The code is trying to update this section with content based on the license feature, but it isn't doing a very good job when that section doesn't exist.
That's fixed it, thanks.
*** Bug 338958 has been marked as a duplicate of this bug. ***
fixed
*** Bug 342750 has been marked as a duplicate of this bug. ***