Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jamo committed May 17, 2016
1 parent 4d3baad commit 0080492
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package fi.helsinki.cs.tmc.langs.io;

import fi.helsinki.cs.tmc.langs.utils.TmcProjectYmlParser;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -61,8 +62,11 @@ public boolean isStudentFile(Path path, Path projectRootPath) {

this.rootPath = projectRootPath;

return isExtraStudentFile(path) || projectRootPath.equals(path) ||
isStudentSourceFile(path.subpath(projectRootPath.getNameCount(), path.getNameCount()), projectRootPath);
return isExtraStudentFile(path)
|| projectRootPath.equals(path)
|| isStudentSourceFile(
path.subpath(projectRootPath.getNameCount(), path.getNameCount()),
projectRootPath);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public byte[] zip(Path rootDirectory) throws IOException {
return buffer.toByteArray();
}

private void zipRecursively(Path currentPath, ZipArchiveOutputStream zipStream, Path projectRoot)
private void zipRecursively(
Path currentPath, ZipArchiveOutputStream zipStream, Path projectRoot)
throws IOException {

log.trace("Processing {}", currentPath);
Expand Down Expand Up @@ -84,7 +85,8 @@ private boolean isExplicitlyIgnoredDirectory(Path currentPath) throws IOExceptio
return false;
}

log.trace("Found directory {} while zipping, checking children for .tmcnosubmit",
log.trace(
"Found directory {} while zipping, checking children for .tmcnosubmit",
currentPath);

try (DirectoryStream<Path> directory = Files.newDirectoryStream(currentPath)) {
Expand All @@ -107,7 +109,6 @@ private void writeToZip(Path currentPath, ZipArchiveOutputStream zipStream, Path

log.trace("Writing {} to zip", currentPath);


String name = projectPath.getParent().relativize(currentPath).toString();

if (Files.isDirectory(currentPath)) {
Expand Down

0 comments on commit 0080492

Please sign in to comment.