Changeset 30062


Ignore:
Timestamp:
2015-07-27T23:14:46+12:00 (9 years ago)
Author:
davidb
Message:

Removal/Tidy-up of debug statements

Location:
other-projects/the-macronizer/trunk/src/java
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • other-projects/the-macronizer/trunk/src/java/monogram/model/ListModel.java

    r29855 r30062  
    2929   
    3030    public ListModel(String path, Pool<String> pool){
    31     System.out.println("test 15");
    3231        this.path = path;
    3332        this.pool = pool;
    34         System.out.println("test 16");
    3533        specialConditionsList = new HashSet();
    3634        init();
     
    3937   
    4038    private void init() {
    41         System.out.println("test 17");
    4239         BufferedReader reader = null;
    4340        try {
    44             System.out.println("test 18");
    4541            final String filepath = path;
    4642            reader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(filepath), CHARSET_ENCODING));
    47             System.out.println("test 19");
    4843            String line;
    4944            while ((line = reader.readLine()) != null) {
    50                 System.out.println("test line1 : "+line);
    5145               // final String elements = line.split(DELIMITER);
    5246                specialConditionsList.add(line);
    53                  System.out.println("test line2");
    5447            }
    55             System.out.println("test 20");
    5648        } catch (IOException e) {
    5749            e.printStackTrace();
  • other-projects/the-macronizer/trunk/src/java/monogram/plugin/PluginDOCX.java

    r29855 r30062  
    5858            File dir = new File(tmpdir + File.separator + "mi-tmp-" + random);
    5959            if (! dir.exists() && dir.mkdir()) {
    60                 System.out.println(dir.getCanonicalPath());
     60                System.out.println("PluginDOCX::createTmpDirectoryInTmp(): " + dir.getCanonicalPath());
    6161                return dir;
    6262            }
  • other-projects/the-macronizer/trunk/src/java/monogram/plugin/PluginManager.java

    r29855 r30062  
    1919    public File run(PluginConfiguration fileView) throws UnsupportedOperationException, Exception {
    2020        String fileType = fileView.getFileType();
    21         System.out.println("test 2");
    2221        if (fileType.equalsIgnoreCase(".txt")) {
    23             System.out.println("test 3");
    2422            return runPluginTXT(fileView);
    2523        } else if (fileType.equalsIgnoreCase(".docx")) {
     
    3432    private File runPluginTXT(PluginConfiguration fileView) throws Exception {
    3533        Plugin plugin = new PluginTXT(tmpdir);
    36         System.out.println("test 4");
    3734        return plugin.run(fileView);
    3835    }
  • other-projects/the-macronizer/trunk/src/java/monogram/plugin/PluginODT.java

    r29855 r30062  
    5959            File dir = new File(tmpdir + File.separator + "mi-tmp-" + random);
    6060            if (! dir.exists() && dir.mkdir()) {
    61                 System.out.println(dir.getCanonicalPath());
     61                System.out.println("PluginODT::createTmpDirectoryInTmp(): " + dir.getCanonicalPath());
    6262                return dir;
    6363            }
  • other-projects/the-macronizer/trunk/src/java/monogram/plugin/PluginTXT.java

    r29855 r30062  
    2727            throw new IllegalArgumentException();
    2828        }
    29         System.out.println("test 5");
    3029        final File outputFile = File.createTempFile("mi-tmp-", configuration.getFileType(), tmpdir);
    31         System.out.println("test 6");
    3230        final TxtRestorer restorer = new TxtRestorer();
    33         System.out.println("test 7");
    3431        restorer.restore(configuration.getFile(), configuration.getCharsetEncoding(), outputFile, configuration.getPreserveExistingMacrons());
    35         System.out.println("test out 2");
    3632        return outputFile;
    3733    }
  • other-projects/the-macronizer/trunk/src/java/monogram/restorer/MonogramRestorer.java

    r29855 r30062  
    2727
    2828    public MonogramRestorer(boolean preserveMacrons) {
    29          System.out.println("test 9");
    3029        this.preserveMacrons = preserveMacrons;
    31          System.out.println("test 10");
    3230        macronModel = MonogramFactory.getMacronModel();
    33          System.out.println("test 11");
    3431        doubleVowelModel = MonogramFactory.getDoubleVowelModel();
    35          System.out.println("test 12");
    36        blackListModel = MonogramFactory.getBlackList();
     32    blackListModel = MonogramFactory.getBlackList();
    3733        previousToken = "";
    3834        selector = new Selector(3);
    39          System.out.println("test done3");
    4035    }
    4136
     
    141136                return true;
    142137            } catch (Exception e) {
    143                 System.out.println("double vowel error 1");
     138                System.err.println("double vowel error 1");
    144139                System.exit(0);
    145140            }
  • other-projects/the-macronizer/trunk/src/java/monogram/restorer/TxtRestorer.java

    r29855 r30062  
    2929
    3030    public void restore(File inputFile, String inputCharsetEncoding, File outputFile, boolean preserveMacrons) {
    31          System.out.println("test 8");
    3231        MonogramRestorer restorer = new MonogramRestorer(preserveMacrons);
    3332        BufferedReader reader = null;
  • other-projects/the-macronizer/trunk/src/java/web/servlets/FileUpload.java

    r29855 r30062  
    102102        ServletFileUpload upload = new ServletFileUpload(factory);
    103103        try {
    104             System.out.println("looking at request parameters...");
     104            //System.out.println("looking at request parameters...");
    105105            List<FileItem> items = upload.parseRequest(request);
    106106
Note: See TracChangeset for help on using the changeset viewer.