donaldp     01/12/21 05:33:06

  Modified:    
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sound
                        AntSoundPlayer.java
  Log:
  Cleaning
  
  Revision  Changes    Path
  1.5       +18 -20    
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sound/AntSoundPlayer.java
  
  Index: AntSoundPlayer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sound/AntSoundPlayer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AntSoundPlayer.java       2001/12/16 06:40:17     1.4
  +++ AntSoundPlayer.java       2001/12/21 13:33:06     1.5
  @@ -31,20 +31,18 @@
    * Both seem to work fine.
    *
    * @author Nick Pellow
  - * @version $Revision: 1.4 $, $Date: 2001/12/16 06:40:17 $
  + * @version $Revision: 1.5 $, $Date: 2001/12/21 13:33:06 $
    */
  -
   public class AntSoundPlayer
       implements LineListener, BuildListener
   {
  -
  -    private File fileSuccess = null;
  -    private int loopsSuccess = 0;
  -    private Long durationSuccess = null;
  -
  -    private File fileFail = null;
  -    private int loopsFail = 0;
  -    private Long durationFail = null;
  +    private File m_fileSuccess;
  +    private int m_loopsSuccess;
  +    private Long m_durationSuccess;
  +
  +    private File m_fileFail;
  +    private int m_loopsFail;
  +    private Long m_durationFail;
   
       public AntSoundPlayer()
       {
  @@ -59,9 +57,9 @@
        */
       public void addBuildFailedSound( File fileFail, int loopsFail, Long 
durationFail )
       {
  -        this.fileFail = fileFail;
  -        this.loopsFail = loopsFail;
  -        this.durationFail = durationFail;
  +        m_fileFail = fileFail;
  +        m_loopsFail = loopsFail;
  +        m_durationFail = durationFail;
       }
   
       /**
  @@ -73,9 +71,9 @@
        */
       public void addBuildSuccessfulSound( File file, int loops, Long duration 
)
       {
  -        this.fileSuccess = file;
  -        this.loopsSuccess = loops;
  -        this.durationSuccess = duration;
  +        m_fileSuccess = file;
  +        m_loopsSuccess = loops;
  +        m_durationSuccess = duration;
       }
   
       /**
  @@ -87,14 +85,14 @@
        */
       public void buildFinished( BuildEvent event )
       {
  -        if( event.getException() == null && fileSuccess != null )
  +        if( event.getException() == null && m_fileSuccess != null )
           {
               // build successfull!
  -            play( event.getProject(), fileSuccess, loopsSuccess, 
durationSuccess );
  +            play( event.getProject(), m_fileSuccess, m_loopsSuccess, 
m_durationSuccess );
           }
  -        else if( event.getException() != null && fileFail != null )
  +        else if( event.getException() != null && m_fileFail != null )
           {
  -            play( event.getProject(), fileFail, loopsFail, durationFail );
  +            play( event.getProject(), m_fileFail, m_loopsFail, 
m_durationFail );
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to