tasks/system/WaitForTask.php
Based on Apache Ant Wait For:
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Author
-
Michiel Rook
- Package
- phing.tasks.system
- Version
- $Id$
Package: phing\tasks\systemBased on Apache Ant Wait For:
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Parent(s)
-
\ConditionBase
<
\ProjectComponent
- Author
-
Michiel Rook
- Copyright
- 2001,2002 THYRELL. All rights reserved
- Version
- $Id$
Constants


DEFAULT_MAX_WAIT_MILLIS
= 180000


DEFAULT_CHECK_MILLIS
= 500
Properties
Methods



_convertUnit(
string $unit
)
:
voidConvert the unit to a multipler.
Parameters
| Name |
Type |
Description |
| $unit |
string |
|



log(
string $msg, integer $level
=
Project::MSG_INFO
)
:
void
Parameters
| Name |
Type |
Description |
| $msg |
string |
The message to be logged. |
| $level |
integer |
The message's priority at this message should have
|



setCheckEvery(
int $checkEvery
)
:
voidSet the time between each check
Parameters
| Name |
Type |
Description |
| $checkEvery |
int |
|



setCheckEveryUnit(
string $checkEveryUnit
)
:
voidSet the check every time unit
Parameters
| Name |
Type |
Description |
| $checkEveryUnit |
string |
|



setMaxWait(
int $maxWait
)
:
voidSet the maximum length of time to wait.
Parameters
| Name |
Type |
Description |
| $maxWait |
int |
|



setMaxWaitUnit(
string $maxWaitUnit
)
:
voidSet the max wait time unit
Parameters
| Name |
Type |
Description |
| $maxWaitUnit |
string |
|



setProject(
\Project $project
)
:
void
Parameters
| Name |
Type |
Description |
| $project |
\Project |
The reference to the current project |



setTimeoutProperty(
string $timeoutProperty
)
:
voidName of the property to set after a timeout.
Parameters
| Name |
Type |
Description |
| $timeoutProperty |
string |
|