Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Parsing all remote files and returning to jenkins host for tag cloud …
Browse files Browse the repository at this point in the history
…generation.
  • Loading branch information
cvanes committed Mar 26, 2012
1 parent 297bea5 commit aadee23
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
work/
5 changes: 3 additions & 2 deletions src/main/java/com/cvanes/WorkspaceLister.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ public String invoke(File workspace, VirtualChannel channel) throws IOException,
String[] files = ds.getIncludedFiles();
StringBuilder allFileContents = new StringBuilder();
for (String filename : files) {
FileInputStream inputStream = new FileInputStream(filename);
FileInputStream inputStream = new FileInputStream(workspace.getAbsolutePath() + File.separator + filename);
while (inputStream.read(buffer) != -1) {
allFileContents.append(buffer);
allFileContents.append(new String(buffer));
allFileContents.append("\n");
}
}
return allFileContents.toString();
Expand Down

0 comments on commit aadee23

Please sign in to comment.