Skip to content

Commit

Permalink
Merge pull request #10 from VariantSync/next-release
Browse files Browse the repository at this point in the history
VEVOS Simulation v1.1.2
  • Loading branch information
AlexanderSchultheiss authored Aug 22, 2022
2 parents d244446 + 3e739b2 commit 9c7c3a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<groupId>org.variantsync.vevos</groupId>
<!-- Adjust the generateVariant name -->
<artifactId>simulation</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>

<properties>
<!-- Adjust your java version here -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
// TODO: Implement readLinesAs(Path p, Function<> f) with which one can load a file into a desired format

public class TextIO {
public final static String LINEBREAK = "\r\n";
public final static String LINEBREAK_REGEX = "\\r?\\n";
public final static String LINEBREAK = System.lineSeparator();

public static String[] readLinesAsArray(final File file) throws IOException {
final LinkedList<String> lines = new LinkedList<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package org.variantsync.vevos.simulation.io.kernelhaven;

import de.ovgu.featureide.fm.core.base.FeatureUtils;
import de.ovgu.featureide.fm.core.base.IFeature;
import de.ovgu.featureide.fm.core.base.IFeatureModel;
import de.ovgu.featureide.fm.core.base.impl.DefaultFeatureModelFactory;
import net.ssehub.kernel_haven.variability_model.JsonVariabilityModelCache;
import org.variantsync.functjonal.Result;
import org.variantsync.vevos.simulation.io.ResourceLoader;
Expand All @@ -25,7 +22,7 @@ public boolean canLoad(Path p) {
@Override
public Result<IFeatureModel, ? extends Exception> load(Path p) {
return Result.Try(() -> {
if (p.endsWith(".json")) {
if (p.toString().endsWith(".json")) {
JsonVariabilityModelCache cache = new JsonVariabilityModelCache(p.getParent().toFile());
return FeatureModelUtils.FromVariabilityModel(cache.readFixed(p.toFile()));
} else {
Expand Down

0 comments on commit 9c7c3a5

Please sign in to comment.