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

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

changes to the way ant-installer loads and reloads the language packs, and a new attribute to the select input which triggers it to change the language to the input value

File size: 1.6 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 java.util.ResourceBundle;
19import org.tp23.antinstaller.InstallException;
20import org.tp23.antinstaller.InstallerContext;
21import org.tp23.antinstaller.Installer;
22
23/**
24 * Executes the Screens part of the build
25 * @author Paul Hinds
26 * @version $Id: ExecuteRunnerFilter.java,v 1.3 2006/12/21 01:48:51 teknopaul Exp $
27 */
28public class ExecuteRunnerFilter implements ExecuteFilter {
29
30 /**
31 * @see org.tp23.antinstaller.runtime.exe.ExecuteFilter#exec(org.tp23.antinstaller.InstallerContext)
32 */
33 public void exec(InstallerContext ctx) throws InstallException {
34 if(ctx.getInstaller().isVerbose()){
35 ctx.log("Starting UI Screens");
36 }
37 boolean ok = ctx.getRunner().runInstaller();
38 if(!ok){
39 throw new AbortException(Installer.langPack.getString("install-cancelled"));
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.