01: /*
02: * To change this template, choose Tools | Templates
03: * and open the template in the editor.
04: */
05: package org.netbeans.modules.etlbulkloader.packager;
06:
07: import java.io.File;
08: import java.io.IOException;
09: import net.java.hulp.i18n.Logger;
10: import org.netbeans.modules.etl.logger.Localizer;
11: import org.netbeans.modules.etl.logger.LogUtil;
12:
13: /**
14: *
15: * @author Manish
16: */
17: public class ETLBLPkgConstants {
18:
19: // File System Constants
20: public static final String USER_DIR = System
21: .getProperty("user.dir");
22: public static final String fs = System
23: .getProperty("file.separator"); //File Separator
24: //eTL Bulk Loader Source Constants
25: public static final String srclibs = getCWD() + fs
26: + "../etl.editor" + fs + "external";//+fs+"modules"+fs+"ext"+fs+"etlpro";
27: public static final String srctriggertempl = srclibs + fs
28: + "triggertemplates";
29: //eTL Bulk Loader Package Construction Constants
30: public static final String toplevelrt = "ETLProcess";
31: public static final String toplevelpkg = "ETLLoader";
32: public static final String pkglibs = toplevelpkg + fs + "lib";
33: //eTL Project System Constants
34: public static final String collabFolderName = "collaborations";
35: public static final String buildFolderName = "build";
36: public static final String modelFileSuffix = ".etl";
37: public static final String engineFileSuffix = "_engine.xml";
38:
39: private static transient final Logger mLogger = LogUtil
40: .getLogger(ETLBLPkgConstants.class.getName());
41: private static transient final Localizer mLoc = Localizer.get();
42:
43: //Current Working dir
44: public static String getCWD() {
45: try {
46: return new File(".").getCanonicalPath();
47: } catch (IOException ex) {
48: mLogger.errorNoloc(mLoc.t("PRSR041: Exception :{0}", ex
49: .getMessage()), ex);
50: }
51: return null;
52: }
53: }
|