source: other-projects/trunk/realistic-books/packages/AntInstaller/src/org/tp23/antinstaller/runtime/exe/ExecuteRunnerFilter.java@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

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 Aborted");
39 }
40 ctx.log("Install screens rendered");
41 }
42
43 public static class AbortException extends InstallException{
44 public AbortException(String message){
45 super(message);
46 }
47 }
48}
Note: See TracBrowser for help on using the repository browser.