Skip to content

Commit ba567b6

Browse files
committed
Fix legacy handling attempting to assign inputs for non-input components
1 parent 4a5758b commit ba567b6

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

API/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<parent>
3232
<groupId>org.ohnlp.backbone</groupId>
3333
<artifactId>backbone-parent</artifactId>
34-
<version>3.0.5</version>
34+
<version>3.0.6</version>
3535
</parent>
3636

3737
<artifactId>api</artifactId>

API/src/main/java/org/ohnlp/backbone/api/pipeline/PipelineBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.ohnlp.backbone.api.Transform;
1111
import org.ohnlp.backbone.api.annotations.ConfigurationProperty;
1212
import org.ohnlp.backbone.api.components.ExtractComponent;
13+
import org.ohnlp.backbone.api.components.HasInputs;
1314
import org.ohnlp.backbone.api.components.legacy.v2.UsesLegacyConfigInit;
1415
import org.ohnlp.backbone.api.components.legacy.v2.WrappedExtract;
1516
import org.ohnlp.backbone.api.components.legacy.v2.WrappedLoad;
@@ -52,7 +53,7 @@ public static ExecutionDAG getPipelineGraph(BackboneConfiguration config) throws
5253
if (configs[i].getComponentID() == null) {
5354
configs[i].setComponentID(i + "");
5455
}
55-
if ((configs[i].getInputs() == null || configs[i].getInputs().isEmpty()) && i > 0) {
56+
if (((configs[i].getInputs() == null || configs[i].getInputs().isEmpty()) && i > 0) && HasInputs.class.isAssignableFrom(configs[i].getClazz())) {
5657
LOGGER.warning("A legacy (pre Backbone v3.0) pipeline configuration is being " +
5758
"used with a Backbone v3.0+ installation. Input/Output associations between " +
5859
"different components are being inferred. Running the configuration update script " +

Core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.ohnlp.backbone</groupId>
99
<artifactId>backbone-parent</artifactId>
10-
<version>3.0.5</version>
10+
<version>3.0.6</version>
1111
</parent>
1212

1313
<artifactId>core</artifactId>

Example-Backbone-Configs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.ohnlp.backbone</groupId>
99
<artifactId>backbone-parent</artifactId>
10-
<version>3.0.5</version>
10+
<version>3.0.6</version>
1111
</parent>
1212

1313
<artifactId>example-backbone-configs</artifactId>

IO/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.ohnlp.backbone</groupId>
99
<artifactId>backbone-parent</artifactId>
10-
<version>3.0.5</version>
10+
<version>3.0.6</version>
1111
</parent>
1212

1313
<groupId>org.ohnlp.backbone.io</groupId>

Plugin-Manager/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.ohnlp.backbone</groupId>
99
<artifactId>backbone-parent</artifactId>
10-
<version>3.0.5</version>
10+
<version>3.0.6</version>
1111
</parent>
1212

1313
<artifactId>plugin-manager</artifactId>

Transforms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.ohnlp.backbone</groupId>
99
<artifactId>backbone-parent</artifactId>
10-
<version>3.0.5</version>
10+
<version>3.0.6</version>
1111
</parent>
1212

1313
<groupId>org.ohnlp.backbone.transforms</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.ohnlp.backbone</groupId>
88
<artifactId>backbone-parent</artifactId>
9-
<version>3.0.5</version>
9+
<version>3.0.6</version>
1010

1111

1212
<properties>

0 commit comments

Comments
 (0)