Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/main/java/app/bbs/codesegment/StartBBSCodeSegment.java @ 122:cef245f71053
Implemented NetworkJungleBulletinBoard.checkAndCreateLogDirectory method
author | one |
---|---|
date | Fri, 27 Dec 2013 19:17:07 +0900 |
parents | f64ff5bd66f5 |
children | dacfa7eba841 |
comparison
equal
deleted
inserted
replaced
121:26bf85f69e4f | 122:cef245f71053 |
---|---|
36 public StartBBSCodeSegment() { | 36 public StartBBSCodeSegment() { |
37 host.setKey("host"); | 37 host.setKey("host"); |
38 } | 38 } |
39 | 39 |
40 public void run() { | 40 public void run() { |
41 System.out.println("StartBBSCodeSegment"); | |
42 String name = host.asString(); | 41 String name = host.asString(); |
43 System.out.println("name : "+ name); | |
44 Matcher matcher = pattern.matcher(name); | 42 Matcher matcher = pattern.matcher(name); |
45 matcher.find(); | 43 matcher.find(); |
46 // String type = matcher.group(1); | 44 // String type = matcher.group(1); |
47 | 45 |
46 System.out.println("log loading..."); | |
48 NetworkJungleBulletinBoard cassaBBS = null; | 47 NetworkJungleBulletinBoard cassaBBS = null; |
49 try { | 48 try { |
50 cassaBBS = new NetworkJungleBulletinBoard(name); | 49 cassaBBS = new NetworkJungleBulletinBoard(name); |
51 cassaBBS.init(); | 50 cassaBBS.init(); |
52 } catch (FileNotFoundException e1) { | 51 } catch (FileNotFoundException e1) { |
54 System.exit(0);; | 53 System.exit(0);; |
55 } catch (IOException e) { | 54 } catch (IOException e) { |
56 e.printStackTrace(); | 55 e.printStackTrace(); |
57 } | 56 } |
58 | 57 |
58 System.out.println("StartBBSCodeSegment"); | |
59 System.out.println("name : "+ name); | |
59 /* Jetty registration */ | 60 /* Jetty registration */ |
60 String createBoardMessagePath = "/createBoardMessage"; | 61 String createBoardMessagePath = "/createBoardMessage"; |
61 String createBoardPath = "/createBoard"; | 62 String createBoardPath = "/createBoard"; |
62 String editMessagePath = "/editMessage"; | 63 String editMessagePath = "/editMessage"; |
63 String showBoardMessagePath = "/showBoardMessage"; | 64 String showBoardMessagePath = "/showBoardMessage"; |