Skip to content

Commit

Permalink
fixed file path writing
Browse files Browse the repository at this point in the history
  • Loading branch information
anuejn committed Jul 8, 2015
1 parent 599e243 commit 696d6b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/de/sfn_kassel/plone_crawler/test/Crawler.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public void run() {
currentPage.loadPage();
i++;
setNamePostfix("waiting" + " (" + i + ")");
currentPage.replaceLinks(startname);
currentPage.writePage(new File("page/"), startname);
onTaskFinished.onTaskFinished(currentPage);
// currentPage.replaceLinks(startname);
currentPage.writePage(new File("page/"), startname);
} catch(Exception e) {
// e.printStackTrace();
}
Expand Down
2 changes: 1 addition & 1 deletion src/de/sfn_kassel/plone_crawler/test/Page.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void loadPage() {
}

public void writePage(File dir, String rootName) throws IOException {
FileWriter fw = new FileWriter(dir.getAbsolutePath() + new HashLink(url.toString()).getNameHash(rootName));
FileWriter fw = new FileWriter(dir.getAbsolutePath() + "/" + new HashLink(url.toString()).getNameHash(rootName));
fw.write(content.content);
fw.close();
}
Expand Down
2 changes: 1 addition & 1 deletion src/de/sfn_kassel/plone_crawler/test/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Test {

public static void main(String[] args) throws IOException {
// String startpage = "http://physikclub.de";
String startpage = "http://blog.aschnabel.bplaced.net/";
String startpage = "http://blog.aschnabel.bplaced.net";
futurePages.add(new Page(new URL(startpage)));

Checker<URL> urlChecker = new Checker<URL>() {
Expand Down

0 comments on commit 696d6b4

Please sign in to comment.