diff options
author | Pascal Rapicault | 2008-01-24 16:17:31 +0000 |
---|---|---|
committer | Pascal Rapicault | 2008-01-24 16:17:31 +0000 |
commit | f9547b6c580e894f2c03bc32c92f5a2521e305d5 (patch) | |
tree | f433ab1be3e45aa187d9fe45033077a6cc700616 /bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox | |
parent | a524923c050b07aa49a3f586004ad6b3b26bee05 (diff) | |
download | rt.equinox.p2-f9547b6c580e894f2c03bc32c92f5a2521e305d5.tar.gz rt.equinox.p2-f9547b6c580e894f2c03bc32c92f5a2521e305d5.tar.xz rt.equinox.p2-f9547b6c580e894f2c03bc32c92f5a2521e305d5.zip |
support optional data for processing step
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepositoryIO.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepositoryIO.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepositoryIO.java index 9652614b8..d020c1378 100644 --- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepositoryIO.java +++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepositoryIO.java @@ -504,11 +504,12 @@ class SimpleArtifactRepositoryIO { protected class ProcessingStepHandler extends AbstractHandler { - private final String[] required = new String[] {ID_ATTRIBUTE, STEP_DATA_ATTRIBUTE, STEP_REQUIRED_ATTRIBUTE}; + private final String[] required = new String[] {ID_ATTRIBUTE, STEP_REQUIRED_ATTRIBUTE}; + private final String[] optional = new String[] {STEP_DATA_ATTRIBUTE}; public ProcessingStepHandler(AbstractHandler parentHandler, Attributes attributes, List processingSteps) { super(parentHandler, PROCESSING_STEP_ELEMENT); - String[] attributeValues = parseRequiredAttributes(attributes, required); + String[] attributeValues = parseAttributes(attributes, required, optional); processingSteps.add(new ProcessingStepDescriptor(attributeValues[0], attributeValues[1], checkBoolean(PROCESSING_STEP_ELEMENT, STEP_REQUIRED_ATTRIBUTE, attributeValues[2]).booleanValue())); } |