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.

View | Details | Raw Unified | Return to bug 205752
Collapse All | Expand All

(-)a/hudson.php/manifest.mf (-1 / +1 lines)
Lines 2-5 Link Here
2
OpenIDE-Module: org.netbeans.modules.hudson.php
2
OpenIDE-Module: org.netbeans.modules.hudson.php
3
OpenIDE-Module-Layer: org/netbeans/modules/hudson/php/resources/layer.xml
3
OpenIDE-Module-Layer: org/netbeans/modules/hudson/php/resources/layer.xml
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/hudson/php/resources/Bundle.properties
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/hudson/php/resources/Bundle.properties
5
OpenIDE-Module-Specification-Version: 1.7
5
OpenIDE-Module-Specification-Version: 1.8
(-)a/hudson.php/nbproject/project.xml (-1 / +1 lines)
Lines 19-25 Link Here
19
                    <build-prerequisite/>
19
                    <build-prerequisite/>
20
                    <compile-dependency/>
20
                    <compile-dependency/>
21
                    <run-dependency>
21
                    <run-dependency>
22
                        <specification-version>1.18</specification-version>
22
                        <specification-version>1.23</specification-version>
23
                    </run-dependency>
23
                    </run-dependency>
24
                </dependency>
24
                </dependency>
25
                <dependency>
25
                <dependency>
(-)a/hudson.php/src/org/netbeans/modules/hudson/php/HudsonJobCreator.java (-1 / +1 lines)
Lines 283-289 Link Here
283
283
284
    private void errorOccured(String error, String logMessage, JButton extraButton) throws IOException {
284
    private void errorOccured(String error, String logMessage, JButton extraButton) throws IOException {
285
        informUser(error, true, extraButton);
285
        informUser(error, true, extraButton);
286
        throw new IOException(logMessage);
286
        throw new SilentIOException(logMessage);
287
    }
287
    }
288
288
289
    private void informUser(String message, boolean error, JButton extraButton) {
289
    private void informUser(String message, boolean error, JButton extraButton) {
(-)a/hudson/manifest.mf (-1 / +1 lines)
Lines 2-6 Link Here
2
OpenIDE-Module: org.netbeans.modules.hudson
2
OpenIDE-Module: org.netbeans.modules.hudson
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/hudson/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/hudson/Bundle.properties
4
OpenIDE-Module-Layer: org/netbeans/modules/hudson/layer.xml
4
OpenIDE-Module-Layer: org/netbeans/modules/hudson/layer.xml
5
OpenIDE-Module-Specification-Version: 1.22
5
OpenIDE-Module-Specification-Version: 1.23
6
6
(-)a/hudson/src/org/netbeans/modules/hudson/spi/ProjectHudsonJobCreatorFactory.java (-1 / +28 lines)
Lines 111-121 Link Here
111
         * @return a document initially consisting of just {@code <project/>}
111
         * @return a document initially consisting of just {@code <project/>}
112
         *         to be populated with subelements
112
         *         to be populated with subelements
113
         *         following the format of {@code ${workdir}/jobs/${projname}/config.xml}
113
         *         following the format of {@code ${workdir}/jobs/${projname}/config.xml}
114
         * @throws IOException in case project metadata cannot be read or is malformed
114
         * @throws IOException in case project metadata cannot be read or is
115
         * malformed. Use {@link SilentIOException} to suppress showing error
116
         * message.
115
         * @see Helper
117
         * @see Helper
116
         */
118
         */
117
        Document configure() throws IOException;
119
        Document configure() throws IOException;
118
120
121
        /**
122
         * Exception of this class can be thrown from
123
         * {@link ProjectHudsonJobCreator#configure()} if no error message
124
         * should be shown to the user. E.g. if some custom dialog has been
125
         * already displayed.
126
         *
127
         * @since 1.23
128
         */
129
        public static class SilentIOException extends IOException {
130
131
            public SilentIOException() {
132
            }
133
134
            public SilentIOException(String message) {
135
                super(message);
136
            }
137
138
            public SilentIOException(String message, Throwable cause) {
139
                super(message, cause);
140
            }
141
142
            public SilentIOException(Throwable cause) {
143
                super(cause);
144
            }
145
        }
119
    }
146
    }
120
147
121
    /**
148
    /**
(-)a/hudson/src/org/netbeans/modules/hudson/ui/actions/CreateJob.java (+2 lines)
Lines 173-178 Link Here
173
            // stats
173
            // stats
174
            UsageLogging.logUI(NbBundle.getBundle(CreateJob.class), "UI_HUDSON_JOB_CREATED", project.getClass().getName()); // NOI18N
174
            UsageLogging.logUI(NbBundle.getBundle(CreateJob.class), "UI_HUDSON_JOB_CREATED", project.getClass().getName()); // NOI18N
175
            UsageLogging.logUsage(CreateJob.class, "USG_HUDSON_JOB_CREATED", project.getClass().getName()); // NOI18N
175
            UsageLogging.logUsage(CreateJob.class, "USG_HUDSON_JOB_CREATED", project.getClass().getName()); // NOI18N
176
        } catch (ProjectHudsonJobCreator.SilentIOException x) {
177
            Logger.getLogger(CreateJob.class.getName()).log(Level.INFO, null, x);
176
        } catch (IOException x) {
178
        } catch (IOException x) {
177
            Exceptions.attachLocalizedMessage(x, CreateJob_failure());
179
            Exceptions.attachLocalizedMessage(x, CreateJob_failure());
178
            Logger.getLogger(CreateJob.class.getName()).log(Level.WARNING, null, x);
180
            Logger.getLogger(CreateJob.class.getName()).log(Level.WARNING, null, x);

Return to bug 205752