buildframework/helium/sf/java/signaling/src/com/nokia/helium/signal/ant/types/SignalInput.java
changeset 628 7c4a911dc066
parent 587 85df38eb4012
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    19 package com.nokia.helium.signal.ant.types;
    19 package com.nokia.helium.signal.ant.types;
    20 
    20 
    21 
    21 
    22 import java.util.Vector;
    22 import java.util.Vector;
    23 
    23 
       
    24 import org.apache.log4j.Logger;
       
    25 import org.apache.tools.ant.BuildException;
    24 import org.apache.tools.ant.types.DataType;
    26 import org.apache.tools.ant.types.DataType;
       
    27 
    25 import com.nokia.helium.core.ant.types.ReferenceType;
    28 import com.nokia.helium.core.ant.types.ReferenceType;
    26 import org.apache.log4j.Logger;
       
    27 
       
    28 import com.nokia.helium.signal.Notifier;
    29 import com.nokia.helium.signal.Notifier;
    29 
       
    30 import org.apache.tools.ant.BuildException;
       
    31 
    30 
    32 /**
    31 /**
    33  * SignalInput class which is a type to store input for signals
    32  * SignalInput class which is a type to store input for signals
    34  * Signals..
    33  * Signals..
    35  * <targetCondition>
    34  *   
    36  *    <hasSeverity severity="error" file="${build.cache.log.dir}/signals/prep_work_status.xml" />
    35  * <pre>
    37  * &lt;/targetCondition&gt;
    36  *   &lt;hlm:signalInput id=&quot;testDeferredSignalInput&quot;&gt;
       
    37  *      &lt;/hlm:notifierList refid=&quot;defaultNotiferList&quot; &gt;
       
    38  *   &lt;/hlm:signalInput&gt;
       
    39  *   
       
    40  *   &lt;hlm:signal name=&quot;compileSignal&quot; result=&quot;${result}&quot;&gt;
       
    41  *       &lt;-- Let's refer to some existing signal input configuration --&gt;
       
    42  *       &lt;hlm:signalInput refid=&quot;testDeferredSignalInput&quot; /&gt;
       
    43  *   &lt;/hlm:signal&gt;
       
    44  * </pre>
    38  * 
    45  * 
       
    46  * @ant.type name="signalInput" category="Signaling"
    39  */
    47  */
    40 public class SignalInput extends DataType
    48 public class SignalInput extends DataType
    41 {
    49 {
    42     private Vector<ReferenceType> notifierListRef = new Vector<ReferenceType>();
    50     private Vector<ReferenceType> notifierListRef = new Vector<ReferenceType>();
    43 
    51 
    48 
    56 
    49     private Logger log = Logger.getLogger(SignalInput.class);
    57     private Logger log = Logger.getLogger(SignalInput.class);
    50 
    58 
    51     
    59     
    52     /**
    60     /**
    53      * Helper function called by ant to set the failbuild type
    61      * Defines how the signal framework should handle the error, either
       
    62      * fail "now", at the end of the build "defer", or ignore the failure
       
    63      * with "never".
    54      * @param failBuild type of failure for this input.
    64      * @param failBuild type of failure for this input.
       
    65      * @ant.not-required Default is now.
    55      */
    66      */
    56     public void setFailBuild(FailBuildEnum failInput) {
    67     public void setFailBuild(FailBuildEnum failInput) {
    57         failBuild = failInput.getValue();
    68         failBuild = failInput.getValue();
    58     }
    69     }
    59 
    70 
   113     
   124     
   114     /**
   125     /**
   115      * Gets the NotifierList associated with this input. If the
   126      * Gets the NotifierList associated with this input. If the
   116      * notifier list reference is empty then it throws exception. 
   127      * notifier list reference is empty then it throws exception. 
   117      * @return List of notifier associated with this input.
   128      * @return List of notifier associated with this input.
   118      * @throws HlmAntLibException
       
   119      */    
   129      */    
   120     public Vector<Notifier> getSignalNotifierList() {
   130     public Vector<Notifier> getSignalNotifierList() {
   121         Vector<Notifier> notifierList = null;
   131         Vector<Notifier> notifierList = null;
   122         if (notifierListRef != null) {
   132         if (notifierListRef != null) {
   123             log.debug("getSignalNotifierList:list.size:" + notifierListRef.size());
   133             log.debug("getSignalNotifierList:list.size:" + notifierListRef.size());