Skip to content

Commit

Permalink
fixed bug of the creation of the tags mapping file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alcemirsantos committed Feb 25, 2016
1 parent 23a916a commit ff940a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/br/com/riselabs/crawlers/util/IOHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public void createCodefaceRunScript(List<String> target_systems)
public void createCodefaceConfFiles(String system, Integer numTags)
throws IOException, NullPointerException, EmptyContentException,
InvalidNumberOfTagsException {
String releases = getTupletsString(numTags);
String releases = getTupletsString(system, numTags);

String s = "# Configuration file for the system "
+ system
Expand Down Expand Up @@ -295,7 +295,7 @@ public void checkAndRemove(File instance) throws IOException {
}
}

public static String getTupletsString(Integer numTags)
public static String getTupletsString(String systemName, Integer numTags)
throws InvalidNumberOfTagsException {
Integer numScenarios;

Expand All @@ -306,7 +306,8 @@ public static String getTupletsString(Integer numTags)

List<String> tuples = new ArrayList<String>();
for (int i = 1; i <= numScenarios; i++) {
tuples.add("\"B" + i + "\", \"L" + i + "\", \"R" + i + "\"");

tuples.add("\""+systemName+"B" + i + "\", \""+systemName+"L" + i + "\", \""+systemName+"R" + i + "\"");
}
return createReleasesString(tuples);
}
Expand Down

0 comments on commit ff940a2

Please sign in to comment.