-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for includeLaunchers in product file #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Very minor change then feel free to merge.
|
||
static Properties extractProperties(String[] lines) { | ||
Properties props = new Properties(); | ||
for (String line : lines) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe Map<String, String> props = new LinkedHashMap<>()
instead of Properties?
@@ -89,8 +90,11 @@ void setup(File destinationDir, PdeBuildProperties props, List<SwtPlatform> plat | |||
|
|||
// now create the sanitized product file | |||
File productFile = productPluginDir.toPath().resolve(productFileWithinPlugin).toFile(); | |||
productFileLines = ProductFileUtil.readLines(productFile); | |||
ProductFileUtil.extractProperties(productFileLines).forEach((key, value) -> props.setProp(key.toString(), value.toString())); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After making the Map<String, String>
change, this could be .forEach(props::setProp)
good catch, i applied them accordingly |
The following line is copied from a example product file:
<product uid="com.foo.plugin.product" id="com.foo.plugin.product" application="org.eclipse.ui.ide.workbench" version="1.0.0" useFeatures="false" includeLaunchers="false">
PdeBuildTask
will now extract this property and adds it toPdeBuildProperties
.A launcher is now excluded or included in the PDE export.
@nedtwigg would you mind doing a code review?