Subversion Repositories XServices

Rev

Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 20
Line 20... Line 20...
20
import net.brutex.xservices.types.FileSetResource;
20
import net.brutex.xservices.types.FileSetResource;
21
import net.brutex.xservices.types.HostConnection;
21
import net.brutex.xservices.types.HostConnection;
22
import net.brutex.xservices.types.ReturnCode;
22
import net.brutex.xservices.types.ReturnCode;
23
import net.brutex.xservices.util.RunTask;
23
import net.brutex.xservices.util.RunTask;
24
import org.apache.tools.ant.taskdefs.HostInfo;
24
import org.apache.tools.ant.taskdefs.HostInfo;
-
 
25
import org.apache.tools.ant.taskdefs.Sleep;
25
import org.apache.tools.ant.taskdefs.email.EmailTask;
26
import org.apache.tools.ant.taskdefs.email.EmailTask;
26
import org.apache.tools.ant.taskdefs.email.Mailer;
-
 
Line 27... Line 27...
27
 
27
 
28
/**
28
/**
29
 *
29
 *
30
 * @author Brian Rosenberger, bru@brutex.de
30
 * @author Brian Rosenberger, bru@brutex.de
Line 54... Line 54...
54
                "utf-8",
54
                "utf-8",
55
                false,
55
                false,
56
                false);
56
                false);
57
    }
57
    }
Line -... Line 58...
-
 
58
 
-
 
59
    public ReturnCode sleep(int minutes, int seconds) {
-
 
60
        return sleep(0, minutes, seconds, 0);
-
 
61
    }
Line 58... Line 62...
58
 
62
 
59
 
63
 
60
 
64
 
Line 105... Line 109...
105
        mail.setSSL(ssl);
109
        mail.setSSL(ssl);
106
        mail.setEnableStartTLS(tls);
110
        mail.setEnableStartTLS(tls);
107
        return runner.postTask();
111
        return runner.postTask();
108
    }
112
    }
Line -... Line 113...
-
 
113
 
-
 
114
    private ReturnCode sleep(int hours, int minutes, int seconds, int milliseconds) {
-
 
115
        Sleep sleep = new Sleep();
-
 
116
        sleep.setTaskName("Sleep");
-
 
117
        RunTask runner = new RunTask(sleep);
-
 
118
        sleep.setHours(hours);
-
 
119
        sleep.setMinutes(minutes);
-
 
120
        sleep.setSeconds(seconds);
-
 
121
        sleep.setMilliseconds(milliseconds);
-
 
122
        return runner.postTask();
-
 
123
    }
109
 
124