From 6d4e93c838576bf8f51918f74ccfc2a5b10cb4f8 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 27 Feb 2003 23:47:22 +0000 Subject: installer was misreporting README file name for AspectJ distribution. (The installer could be refactored for simpilcity if/since we're not supporting multiple distributions any more.) --- build/src/$installer$/org/aspectj/Main.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'build/src') diff --git a/build/src/$installer$/org/aspectj/Main.java b/build/src/$installer$/org/aspectj/Main.java index ec2b12280..19af53b1d 100644 --- a/build/src/$installer$/org/aspectj/Main.java +++ b/build/src/$installer$/org/aspectj/Main.java @@ -189,11 +189,16 @@ class Options { } } +/** tools installer installs the entire 1.1+ distribution */ class ToolsInstaller extends Installer { public String getTitle() { return "Installer for AspectJ(TM)"; } public String getPrefix() { return "tools"; } + public String getReadmeFilename() { + return "README-AspectJ.html"; + } + public ToolsInstaller() { InstallPane installPane = new InstallPane(true); setInstallPane(installPane); @@ -404,6 +409,10 @@ abstract class Installer { public abstract String getPrefix(); + public String getReadmeFilename() { + return "README-" + getPrefix().toUpperCase()+".html"; + } + public void setContext(InstallContext context) { this.context = context; context.installer = this; @@ -591,7 +600,7 @@ class InstallContext { properties.put("installer.output.dir.bin", new File(outputDir, "bin").getAbsolutePath()); properties.put("installer.output.dir.doc", new File(outputDir, "doc").getAbsolutePath()); properties.put("installer.output.aspectjrt", new File(new File(outputDir, "lib"), "aspectjrt.jar").getAbsolutePath()); - properties.put("installer.output.readme", new File(outputDir, "README-" + installer.getPrefix().toUpperCase()+".html").getAbsolutePath()); + properties.put("installer.output.readme", new File(outputDir, installer.getReadmeFilename()).getAbsolutePath()); } public File getOutputDir() { -- cgit v1.2.3