source: release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/exe/ExecuteRunnerFilter.java@ 17153

Last change on this file since 17153 was 17153, checked in by oranfry, 16 years ago

fixed the install aborted message and the cancel seen as failure problem

File size: 1.5 KB
Line 
1/*
2 * Copyright 2005 Paul Hinds
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.tp23.antinstaller.runtime.exe;
17
18import org.tp23.antinstaller.InstallException;
19import org.tp23.antinstaller.InstallerContext;
20
21
22/**
23 * Executes the Screens part of the build
24 * @author Paul Hinds
25 * @version $Id: ExecuteRunnerFilter.java,v 1.3 2006/12/21 01:48:51 teknopaul Exp $
26 */
27public class ExecuteRunnerFilter implements ExecuteFilter {
28
29 /**
30 * @see org.tp23.antinstaller.runtime.exe.ExecuteFilter#exec(org.tp23.antinstaller.InstallerContext)
31 */
32 public void exec(InstallerContext ctx) throws InstallException {
33 if(ctx.getInstaller().isVerbose()){
34 ctx.log("Starting UI Screens");
35 }
36 boolean ok = ctx.getRunner().runInstaller();
37 if(!ok){
38 //throw new AbortException("Install Cancelled");
39 return;
40 }
41 ctx.log("Install screens rendered");
42 }
43
44 public static class AbortException extends InstallException{
45 public AbortException(String message){
46 super(message);
47 }
48 }
49}
Note: See TracBrowser for help on using the repository browser.