This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
OpenIDE-Module: org.netbeans.modules.hudson.php
OpenIDE-Module-Layer: org/netbeans/modules/hudson/php/resources/layer.xml
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/hudson/php/resources/Bundle.properties
OpenIDE-Module-Specification-Version: 1.7
OpenIDE-Module-Specification-Version: 1.8
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.18</specification-version>
<specification-version>1.23</specification-version>
</run-dependency>
</dependency>
<dependency>
private void errorOccured(String error, String logMessage, JButton extraButton) throws IOException {
informUser(error, true, extraButton);
throw new IOException(logMessage);
throw new SilentIOException(logMessage);
}
private void informUser(String message, boolean error, JButton extraButton) {
OpenIDE-Module: org.netbeans.modules.hudson
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/hudson/Bundle.properties
OpenIDE-Module-Layer: org/netbeans/modules/hudson/layer.xml
OpenIDE-Module-Specification-Version: 1.22
OpenIDE-Module-Specification-Version: 1.23
* @return a document initially consisting of just {@code <project/>}
* to be populated with subelements
* following the format of {@code ${workdir}/jobs/${projname}/config.xml}
* @throws IOException in case project metadata cannot be read or is malformed
* @throws IOException in case project metadata cannot be read or is
* malformed. Use {@link SilentIOException} to suppress showing error
* message.
* @see Helper
*/
Document configure() throws IOException;
/**
* Exception of this class can be thrown from
* {@link ProjectHudsonJobCreator#configure()} if no error message
* should be shown to the user. E.g. if some custom dialog has been
* already displayed.
*
* @since 1.23
public static class SilentIOException extends IOException {
public SilentIOException() {
public SilentIOException(String message) {
super(message);
public SilentIOException(String message, Throwable cause) {
super(message, cause);
public SilentIOException(Throwable cause) {
super(cause);
// stats
UsageLogging.logUI(NbBundle.getBundle(CreateJob.class), "UI_HUDSON_JOB_CREATED", project.getClass().getName()); // NOI18N
UsageLogging.logUsage(CreateJob.class, "USG_HUDSON_JOB_CREATED", project.getClass().getName()); // NOI18N
} catch (ProjectHudsonJobCreator.SilentIOException x) {
Logger.getLogger(CreateJob.class.getName()).log(Level.INFO, null, x);
} catch (IOException x) {
Exceptions.attachLocalizedMessage(x, CreateJob_failure());
Logger.getLogger(CreateJob.class.getName()).log(Level.WARNING, null, x);