Class MavenPropertyHelper

java.lang.Object
org.eclipse.tycho.helper.MavenPropertyHelper

@Component(role=MavenPropertyHelper.class) public class MavenPropertyHelper extends Object
  • Constructor Details

    • MavenPropertyHelper

      public MavenPropertyHelper()
  • Method Details

    • getGlobalProperty

      public String getGlobalProperty(String key)
      Returns a global (user) property of the given key, the search order is
      1. Maven session user properties
      2. Active profile(s) property
      3. Maven session system properties
      4. Java System Properties
      Parameters:
      key - the key to search
      Returns:
      the value according to the described search order or null if nothing can be found.
    • getGlobalProperty

      public String getGlobalProperty(String key, String defaultValue)
      Returns a global (user) property of the given key, the search order is
      1. Maven session user properties
      2. Active profile(s) property
      3. Maven session system properties
      4. Java System Properties
      5. default value
      Parameters:
      key - the key to search
      defaultValue - the default value to use as a last resort
      Returns:
      the value according to the described search order
    • getGlobalBooleanProperty

      public boolean getGlobalBooleanProperty(String key, boolean defaultValue)
    • getGlobalIntProperty

      public int getGlobalIntProperty(String key, int defaultValue)