package com.lazerycode.jmeter.properties;

/**
 * An Enum holding a list of JMeter properties files.
 * If it is set to true JMeter expects it to be in the bin dir.
 *
 * @author Mark Collin
 */
public enum JMeterPropertiesFiles {

    JMETER_PROPERTIES("jmeter.properties", true),
    SAVE_SERVICE_PROPERTIES("saveservice.properties", true),
    UPGRADE_PROPERTIES("upgrade.properties", true),
    SYSTEM_PROPERTIES("system.properties", false),
    USER_PROPERTIES("user.properties", false),
    GLOBAL_PROPERTIES("global.properties", false);             //Does this exist in JMeter world?  Don't think so

    private final Object[] propertiesData;

    JMeterPropertiesFiles(Object ...values) {
        this.propertiesData = values;
    }

    public String getPropertiesFileName() {
        return (String) this.propertiesData[0];
    }

    public boolean createFileIfItDoesntExist() {
        return (Boolean) this.propertiesData[1];
    }

}
@@ -38,16 +38,13 @@
 ies;
-%0D%0A%0D
+%0A
 %0A/**
-%0D
 %0A * 
@@ -93,17 +93,16 @@
 s files.
-%0D
 %0A * If i
@@ -161,13 +161,11 @@
 dir.
-%0D
 %0A *
-%0D
 %0A * 
@@ -187,14 +187,12 @@
 llin
-%0D
 %0A */
-%0D
 %0Apub
@@ -223,19 +223,17 @@
 sFiles %7B
-%0D%0A%0D
+%0A
 %0A    JME
@@ -270,25 +270,24 @@
 ies%22, true),
-%0D
 %0A    SAVE_SE
@@ -331,25 +331,24 @@
 ies%22, true),
-%0D
 %0A    UPGRADE
@@ -387,17 +387,16 @@
 , true),
-%0D
 %0A    SYS
@@ -434,25 +434,24 @@
 es%22, false),
-%0D
 %0A    USER_PR
@@ -485,17 +485,16 @@
  false),
-%0D
 %0A    GLO
@@ -540,74 +540,9 @@
 se);
-             //Does this exist in JMeter world?  Don't think so%0D%0A%0D
+%0A
 %0A   
@@ -580,19 +580,17 @@
 iesData;
-%0D%0A%0D
+%0A
 %0A    JMe
@@ -627,17 +627,16 @@
 alues) %7B
-%0D
 %0A       
@@ -665,26 +665,23 @@
  values;
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A    pub
@@ -712,25 +712,24 @@
 FileName() %7B
-%0D
 %0A        ret
@@ -764,26 +764,23 @@
 Data%5B0%5D;
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A    pub
@@ -820,17 +820,16 @@
 xist() %7B
-%0D
 %0A       
@@ -873,16 +873,13 @@
 %5B1%5D;
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A%7D

Comment clean up