| 
18 | 18 | import java.io.File;  | 
19 | 19 | import java.io.IOException;  | 
20 | 20 | import java.net.MalformedURLException;  | 
 | 21 | +import java.net.URI;  | 
 | 22 | +import java.net.URISyntaxException;  | 
21 | 23 | import java.net.URL;  | 
22 | 24 | import java.util.ArrayList;  | 
23 | 25 | import java.util.Arrays;  | 
@@ -260,9 +262,21 @@ public SignTool getSignTool() {  | 
260 | 262 |      *  | 
261 | 263 |      * @return the template  | 
262 | 264 |      * @throws MalformedURLException if any error occur  | 
 | 265 | +     * @throws URISyntaxException if any error occur  | 
263 | 266 |      */  | 
264 | 267 |     @Input  | 
265 |  | -    public URL getWxsTemplateURL() throws MalformedURLException {  | 
 | 268 | +    public URI getWxsTemplateURI() throws MalformedURLException, URISyntaxException {  | 
 | 269 | +        return getWxsTemplateURL().toURI();  | 
 | 270 | +    }  | 
 | 271 | + | 
 | 272 | +    /**  | 
 | 273 | +     * Get a URL to a *.wxs file for the WIX Toolset  | 
 | 274 | +     *  | 
 | 275 | +     * @return the template  | 
 | 276 | +     * @throws MalformedURLException if any error occur  | 
 | 277 | +     */  | 
 | 278 | +    @Internal  | 
 | 279 | +    URL getWxsTemplateURL() throws MalformedURLException {  | 
266 | 280 |         if( wxsTemplate != null ) {  | 
267 | 281 |             return getProject().file( wxsTemplate ).toURI().toURL();  | 
268 | 282 |         }  | 
@@ -429,9 +443,21 @@ public void setMultiInstanceCount( int instanceCount ) {  | 
429 | 443 |      *  | 
430 | 444 |      * @return the URL  | 
431 | 445 |      * @throws MalformedURLException if any error occur  | 
 | 446 | +     * @throws URISyntaxException if any error occur  | 
432 | 447 |      */  | 
433 | 448 |     @Input  | 
434 |  | -    public URL getMultiInstanceScript() throws MalformedURLException {  | 
 | 449 | +    public URI getMultiInstanceScript() throws MalformedURLException, URISyntaxException {  | 
 | 450 | +        return getMultiInstanceScriptURL().toURI();  | 
 | 451 | +    }  | 
 | 452 | + | 
 | 453 | +    /**  | 
 | 454 | +     * Get the URL to a vbscript that set the instance name.  | 
 | 455 | +     *  | 
 | 456 | +     * @return the URL  | 
 | 457 | +     * @throws MalformedURLException if any error occur  | 
 | 458 | +     */  | 
 | 459 | +    @Internal  | 
 | 460 | +    URL getMultiInstanceScriptURL() throws MalformedURLException {  | 
435 | 461 |         if( multiInstanceScript != null ) {  | 
436 | 462 |             return getProject().file( multiInstanceScript ).toURI().toURL();  | 
437 | 463 |         }  | 
 | 
0 commit comments