• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision729104b481d974db4975b59bdc1e2f4920a6e71f (tree)
Zeit2018-01-08 21:12:46
Autorshupeluter@hotmail.com <shupeluter@hotm...>
Commitershupeluter@hotmail.com

Log Message

Mainクラスを追加

Ändern Zusammenfassung

Diff

--- /dev/null
+++ b/src/main/java/jp/co/nec/jsight/filecleaner/CleanerMainCUI.java
@@ -0,0 +1,39 @@
1+/*
2+ * To change this license header, choose License Headers in Project Properties.
3+ * To change this template file, choose Tools | Templates
4+ * and open the template in the editor.
5+ */
6+package jp.co.nec.jsight.filecleaner;
7+
8+import java.io.File;
9+
10+/**
11+ *
12+ * @author shupe
13+ */
14+public class CleanerMainCUI {
15+
16+ public static void main(String[] args) {
17+ if (args == null | args.length != 1) {
18+ printUsage();
19+ } else {
20+ File file = new File(args[0]);
21+ FileCleanerManager fcm = new FileCleanerManager();
22+ if(file.exists() && file.isDirectory()){
23+ fcm.clean(file);
24+ } else {
25+ printUsage();
26+ }
27+ }
28+ }
29+
30+ public static void printUsage() {
31+ StringBuilder sb = new StringBuilder();
32+ sb.append("【USAGE】\n");
33+ sb.append("java jp.co.nec.jsight.CleanMainCUI <arg1>\n");
34+ sb.append("\t引数には置換対象のディレクトリを指定してください");
35+
36+ System.out.println(sb);
37+
38+ }
39+}
--- a/src/main/java/jp/co/nec/jsight/filecleaner/ExcelCleaner.java
+++ b/src/main/java/jp/co/nec/jsight/filecleaner/ExcelCleaner.java
@@ -52,7 +52,6 @@ public class ExcelCleaner extends AbsFileCleaner {
5252 for (Row row : wb.getSheetAt(i)) {
5353
5454 for (Cell cell : row) {
55- System.out.println(Cell.CELL_TYPE_STRING+";"+cell.getCellType());
5655 switch (cell.getCellType()) {
5756
5857 case Cell.CELL_TYPE_STRING: