pkg-config file now has script pathes
[unitool.git] / base / InstallerParam.java
blob133de93ce6cecc7ed890525d63ccad9d81c5b5b3
2 package org.de.metux.unitool.base;
4 import org.de.metux.propertylist.IPropertylist;
6 public class InstallerParam extends ToolParam
8 public final static String cf_installer_command = "installer-command";
9 public final static String cf_install_source = "install-source";
10 public final static String cf_install_target = "install-target";
11 public final static String cf_install_strip = "install-strip";
14 public InstallerParam(IPropertylist pr)
16 super(pr);
20 public InstallerParam(ToolConfig cf)
22 super(cf);
25 // public InstallerParam(ToolParam par)
26 // {
27 // super(par.getProperties());
28 // }
30 /* --- installer command --- */
31 public void setInstallerCommand(String cmd)
33 set(cf_installer_command, cmd);
36 public String getInstallerCommand()
38 return get(cf_installer_command);
41 /* --- install source --- */
42 public void setInstallSource(String fn)
44 set(cf_install_source, fn);
47 public String getInstallSource()
48 throws EParameterMissing, EParameterInvalid
50 return get_mandatory(cf_install_source);
53 /* --- install dest --- */
54 public void setInstallTarget(String fn)
56 set(cf_install_target, fn);
59 public String getInstallTarget()
60 throws EParameterMissing, EParameterInvalid
62 return get_mandatory(cf_install_target);
65 public void setInstallStrip()
67 set(cf_install_strip, "yes");
70 public boolean getInstallStrip()
71 throws EParameterMissing, EParameterInvalid
73 String str = get_mandatory(cf_install_strip);
74 return str.equals("yes");