Skip to content

Commit

Permalink
CODENVY-128. Fix configure multimodular project with module without j…
Browse files Browse the repository at this point in the history
…ava files.
  • Loading branch information
RomanNikitenko committed Feb 19, 2016
1 parent 5bb0f80 commit c3906fa
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ public List<String> getValues(final String attributeName) throws ValueStorageExc
if (attributeName.equals(Constants.LANGUAGE_VERSION)) {
return singletonList(System.getProperty("java.version"));
} else if (CONTAINS_JAVA_FILES.equals(attributeName)) {
if (containsJavaFiles) {
return singletonList(valueOf(containsJavaFiles));
} else {
throw new ValueStorageException("There are no Java files inside the project");
}
return singletonList(valueOf(containsJavaFiles));
}
return null;
}
Expand All @@ -113,4 +109,4 @@ public void setValues(String attributeName, List<String> value) throws ValueStor

}
}
}
}

0 comments on commit c3906fa

Please sign in to comment.