public class AnnouncePluginExtension
extends java.lang.Object
The extension used by the AnnouncePlugin.
Constructor | Description |
---|---|
AnnouncePluginExtension(org.gradle.api.internal.project.ProjectInternal project) |
Modifier and Type | Method | Description |
---|---|---|
void |
announce(java.lang.String msg,
java.lang.String type) |
Sends an announcement of the given type.
|
org.gradle.api.plugins.announce.internal.AnnouncerFactory |
getAnnouncerFactory() |
|
Announcer |
getLocal() |
Returns an
Announcer that sends announcements to the local desktop, if a notification mechanism is available. |
java.lang.String |
getPassword() |
The password to use for announcements.
|
java.lang.String |
getUsername() |
The username to use for announcements.
|
void |
setAnnouncerFactory(org.gradle.api.plugins.announce.internal.AnnouncerFactory announcerFactory) |
|
void |
setLocal(Announcer localAnnouncer) |
Sets the
Announcer that should be used to send announcements to the local desktop. |
void |
setPassword(java.lang.String password) |
|
void |
setUsername(java.lang.String username) |
public AnnouncePluginExtension(org.gradle.api.internal.project.ProjectInternal project)
public Announcer getLocal()
Announcer
that sends announcements to the local desktop, if a notification mechanism is available.public void setLocal(Announcer localAnnouncer)
Announcer
that should be used to send announcements to the local desktop.public void announce(java.lang.String msg, java.lang.String type)
msg
- The content of the announcementtype
- The announcement type.public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public org.gradle.api.plugins.announce.internal.AnnouncerFactory getAnnouncerFactory()
public void setAnnouncerFactory(org.gradle.api.plugins.announce.internal.AnnouncerFactory announcerFactory)