Changeset 1648


Ignore:
Timestamp:
12/09/11 15:50:00 (12 years ago)
Author:
vronk
Message:

removing the util-classes (they are outsourced in MDUTILS-lib and used from there)

Location:
SMC/trunk/SMC/src/eu/clarin/cmdi
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • SMC/trunk/SMC/src/eu/clarin/cmdi/smc/SMC.java

    r1620 r1648  
    5050                SMC smc = new SMC();
    5151                smc.init();             
    52                 /*
    53                  * InputStream is = smc.listTermsets("");
     52               
     53                InputStream is = smc.listTermsets("");
    5454                String output_path = Utils.getConfig("cache.dir") +  smc.getParam("data_key") + "_.xml" ;               
    5555                File f = Utils.write2File(output_path, is);
    5656                log.debug("result stored in: " + f.getAbsolutePath());
    57 */
     57
    5858        }
    5959
     
    6464                try {
    6565                        Utils.loadConfig("smc", configPath, this.getClass().getClassLoader());
     66                       
    6667                        //config = new PropertiesConfiguration("smc.properties");
    6768                } catch (Exception e) {
     
    8081                //is = Utils.load2Stream(config.getString("termsets.config.file"));
    8182               
     83               
    8284                MDTransformer transformer = new MDTransformer();
    8385                //transformer.configure(config, this.getClass().getClassLoader());
     
    8688                //transformer.setSrcFile(Utils.getConfig("termsets.config.file"));
    8789                addParam("data_key", "dcr-cmd-map");
    88                
    89                 transformer.setParams(getParams());
    90                
     90
     91                // this is necessary for the transformer (in MDUTILS-library) to search for the resources (config and xsls) in the correct context)
     92                transformer.configure(Utils.getConfig(), this.getClass().getClassLoader());
     93               
     94                transformer.setParams(getParams());             
    9195                transformer.setTranskey("init");
    9296                // here the transformation is invoked
     
    207211       
    208212        /**
    209          *  map from souce term to target-terms
     213         *  map from source term to target-terms
    210214         * @param term
    211215         * @return
Note: See TracChangeset for help on using the changeset viewer.