buildframework/helium/sf/java/diamonds/src/com/nokia/helium/diamonds/DiamondsConfig.java
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 587 85df38eb4012
child 645 b8d81fa19e7d
permissions -rw-r--r--
helium_11.0.0-e00f171ca185
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
/*
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     2
 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     3
 * All rights reserved.
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     4
 * This component and the accompanying materials are made available
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     5
 * under the terms of the License "Eclipse Public License v1.0"
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     6
 * which accompanies this distribution, and is available
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     8
 *
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     9
 * Initial Contributors:
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    10
 * Nokia Corporation - initial contribution.
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    11
 *
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    12
 * Contributors:
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    13
 *
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    14
 * Description:  
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    15
 *
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    16
 */
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
package com.nokia.helium.diamonds;
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    20
import java.util.HashMap;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    21
import java.util.Map;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    22
import com.nokia.helium.core.ant.types.Stage;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    23
import com.nokia.helium.core.ant.types.TargetMessageTrigger;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    24
import org.apache.tools.ant.Project;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    25
import java.util.Hashtable;
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
import org.apache.log4j.Logger;
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
/**
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
 * Loads the configuration information from the xml file.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
 * 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
 */
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
public final class DiamondsConfig {
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    34
    private static HashMap<String, Stage> stages = new HashMap<String, Stage>();
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    36
    private static Logger log = Logger.getLogger(DiamondsConfig.class);
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    38
    private static String initialiserTargetName;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    39
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    40
    private static Project project;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    41
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    42
    private static final String DIAMONDS_HOST_PROPERTY = "diamonds.host";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    43
    private static final String DIAMONDS_PORT_PROPERTY = "diamonds.port";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    44
    private static final String DIAMONDS_PATH_PROPERTY = "diamonds.path";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    45
    private static final String DIAMONDS_TSTAMP_PROPERTY = "diamonds.tstamp.format";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    46
    private static final String DIAMONDS_MAIL_PROPERTY = "diamonds.mail";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    47
    private static final String DIAMONDS_LDAP_PROPERTY = "diamonds.ldap.server";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    48
    private static final String DIAMONDS_SMTP_PROPERTY = "diamonds.smtp.server";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    49
    private static final String DIAMONDS_INITIALIZER_TARGET_PROPERTY = "diamonds.initializer.targetname";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    50
    private static final String DIAMONDS_CATEGORY_PROPERTY = "diamonds.category";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    51
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    52
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    53
    private static final String[] PROPERTY_NAMES = {DIAMONDS_HOST_PROPERTY, DIAMONDS_PORT_PROPERTY, DIAMONDS_PATH_PROPERTY,
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    54
        DIAMONDS_TSTAMP_PROPERTY, DIAMONDS_MAIL_PROPERTY,
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    55
        DIAMONDS_LDAP_PROPERTY, DIAMONDS_SMTP_PROPERTY,
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    56
        DIAMONDS_INITIALIZER_TARGET_PROPERTY, DIAMONDS_CATEGORY_PROPERTY};
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    58
    private static HashMap<String, TargetMessageTrigger> targetMessageList = new HashMap<String, TargetMessageTrigger>();
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
    private DiamondsConfig() {
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
    }
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    62
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    63
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    64
    @SuppressWarnings("unchecked")
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    65
    private static void initializeMessage(Project prj) {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    66
        Hashtable<String, Object> references = prj.getReferences();
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    67
        for (String key : references.keySet()) {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    68
            Object object = references.get(key);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    69
            log.debug("key: " + key);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    70
            if (object instanceof TargetMessageTrigger) {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    71
                log.debug("found message map:" + object);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    72
                log.debug("found key: " + key);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    73
                TargetMessageTrigger message = (TargetMessageTrigger)object;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    74
                targetMessageList.put(message.getTargetName(), (TargetMessageTrigger)object);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    75
            }
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        }
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    77
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    78
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    79
    @SuppressWarnings("unchecked")
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    80
    public static void initialize(Project prj) throws DiamondsException {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    81
        project = prj;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    82
        log.debug("Diamonds config initialization: project: " + project);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    83
        initializeMessage(prj);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    84
        for (String property : PROPERTY_NAMES ) {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    85
            validateProperty(property);
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
        }
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    87
        Hashtable<String, Object> references = prj.getReferences();
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    88
        for (String key : references.keySet()) {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    89
            Object object = references.get(key); 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    90
            if (object instanceof Stage) {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    91
                log.debug("stage found: " + key);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    92
                Stage stageMap = (Stage)object;
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    93
                stageMap.setStageName(key);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    94
                stages.put(key, (Stage)object);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    95
            }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    96
        }
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    99
    private static void validateProperty(String propertyName) throws DiamondsException {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   100
        String propertyValue = project.getProperty(propertyName);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   101
        if (propertyValue == null) {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   102
            throw new DiamondsException("required property: " + propertyName + " not defined");
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
        }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
    /**
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
     * Helper function to get the stages
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
     * 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
     * @return the stages from config in memory
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
     */
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   111
    static Map<String, Stage> getStages() {
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
        return stages;
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
    /**
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
     * Helper function to get the targets
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
     * 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
     * @return the targets from config in memory
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
     */
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   120
    static HashMap<String, TargetMessageTrigger> getTargetsMap() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   121
        return targetMessageList;
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
    /**
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
     * Returns true if stages exists in config
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
     * 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
     * @return the existance of stages in config
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
     */
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
    public static boolean isStagesInConfig() {
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   130
        return !stages.isEmpty();
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
    /**
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
     * Returns true if targets exists in config
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
     * 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
     * @return the targets from config in memory
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
     */
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
    public static boolean isTargetsInConfig() {
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   139
        return !targetMessageList.isEmpty();
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   140
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   141
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   142
    public static String getHost() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   143
        return project.getProperty(DIAMONDS_HOST_PROPERTY);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   144
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   145
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   146
    public static String getPort() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   147
        return project.getProperty(DIAMONDS_PORT_PROPERTY);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   148
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   149
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   150
    public static String getPath() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   151
        return project.getProperty(DIAMONDS_PATH_PROPERTY);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   152
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   153
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   154
    public static String getTimeFormat() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   155
        return project.getProperty(DIAMONDS_TSTAMP_PROPERTY);
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   158
    public static String getMailInfo() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   159
        return project.getProperty(DIAMONDS_MAIL_PROPERTY);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   160
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   161
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   162
    public static String getLDAPServer() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   163
        return project.getProperty(DIAMONDS_LDAP_PROPERTY);
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   166
    public static String getSMTPServer() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   167
        return project.getProperty(DIAMONDS_SMTP_PROPERTY);
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   168
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   169
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   170
    public static String getBuildIdProperty() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   171
        return "diamonds.build.id";
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   172
    }
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   173
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   174
    public static String getBuildId() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   175
        return project.getProperty(getBuildIdProperty());
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
    /**
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
     * Gets the initialiserTargetName
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
     * 
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   181
     * @return the initialiserTargetName
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
     */
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   183
    public static String getInitializerTargetProperty() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   184
        return DIAMONDS_INITIALIZER_TARGET_PROPERTY;
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
    }
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   186
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   187
    public static String getCategory() {
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   188
        return project.getProperty(DIAMONDS_CATEGORY_PROPERTY);
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
    }
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
}