Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2006-2013 smartics, Kronseder & Reiner GmbH
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package com.redhat.rcm.maven.plugin.buildmetadata.data;
 
 import java.util.List;
 
Defines the Maven information to be included in the build meta data.

Author(s):
Robert Reiner
Version:
$Revision:591 $
 
 public final class MavenMetaDataSelection
 {
   // ********************************* Fields *********************************
 
   // --- constants ------------------------------------------------------------
 
   // --- members --------------------------------------------------------------
 
  
Add environment variables if set to true, skip it, if set to false. If you are not interested in the environment variables of the host (e.g. for security reasons, set this to false).
 
   private boolean addEnvInfo;

  
Add information about the Java runtime running the build if set to true, skip it, if set to false.
 
   private boolean addJavaRuntimeInfo;

  
Add information about the operating system the build is run in if set to true, skip it, if set to false.
 
   private boolean addOsInfo;

  
Add Maven execution information (commandline, goals, profiles, etc.) if set to true, skip it, if set to false. If you are not interested in execution information, set this to false.
 
   private boolean addMavenExecutionInfo;

  
Add project information (homepage URL, categories, tags, etc.) if set to true, skip it, if set to false. If you are not interested in execution information, set this to false.
 
   private boolean addProjectInfo;

  
While the command line may be useful to refer to for a couple of reasons, displaying it with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.
 
   private boolean hideCommandLineInfo;

  
While the MAVEN_OPTS may be useful to refer to for a couple of reasons, displaying them with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.
 
   private boolean hideMavenOptsInfo;

  
While the JAVA_OPTS may be useful to refer to for a couple of reasons, displaying them with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.

Therefore the JAVA_OPTS are hidden by default (true). To include this information, use a value of false.

 
   private boolean hideJavaOptsInfo;

  
The list of a system properties or environment variables to be selected by the user to include into the build meta data properties.

The name is the name of the property, the section is relevant for placing the property in one of the following sections:

  • build.scm
  • build.dateAndVersion
  • build.runtime
  • build.java
  • build.maven
  • build.misc

If no valid section is given, the property is silently rendered in the build.misc section.

  // ****************************** Initializer *******************************
  // ****************************** Constructors ******************************
  // ****************************** Inner Classes *****************************
  // ********************************* Methods ********************************
  // --- init -----------------------------------------------------------------
  // --- get&set --------------------------------------------------------------

  
Returns the value for addMavenExecutionInfo.

Add Maven execution information (commandline, goals, profiles, etc. ) if set to true, skip it, if set to false. If you are not interested in execution information, set this to false.

Returns:
the value for addMavenExecutionInfo.
  public boolean isAddMavenExecutionInfo()
  {
    return ;
  }

  
Sets the value for addMavenExecutionInfo.

Add Maven execution information (commandline, goals, profiles, etc. ) if set to true, skip it, if set to false. If you are not interested in execution information, set this to false.

Parameters:
addMavenExecutionInfo the value for addMavenExecutionInfo.
  public void setAddMavenExecutionInfo(final boolean addMavenExecutionInfo)
  {
    this. = addMavenExecutionInfo;
  }

  
Returns the value for hideCommandLineInfo.

While the command line may be useful to refer to for a couple of reasons, displaying it with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.

Returns:
the value for hideCommandLineInfo.
  public boolean isHideCommandLineInfo()
  {
    return ;
  }

  
Sets the value for hideCommandLineInfo.

While the command line may be useful to refer to for a couple of reasons, displaying it with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.

Parameters:
hideCommandLineInfo the value for hideCommandLineInfo.
  public void setHideCommandLineInfo(final boolean hideCommandLineInfo)
  {
    this. = hideCommandLineInfo;
  }

  
Returns the value for hideMavenOptsInfo.

While the MAVEN_OPTS may be useful to refer to for a couple of reasons, displaying them with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.

Returns:
the value for hideMavenOptsInfo.
  public boolean isHideMavenOptsInfo()
  {
    return ;
  }

  
Sets the value for hideMavenOptsInfo.

While the MAVEN_OPTS may be useful to refer to for a couple of reasons, displaying them with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.

Parameters:
hideMavenOptsInfo the value for hideMavenOptsInfo.
  public void setHideMavenOptsInfo(final boolean hideMavenOptsInfo)
  {
    this. = hideMavenOptsInfo;
  }

  
Returns the value for hideJavaOptsInfo.

While the JAVA_OPTS may be useful to refer to for a couple of reasons, displaying them with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.

Therefore the JAVA_OPTS are hidden by default (true). To include this information, use a value of false.

Returns:
the value for hideJavaOptsInfo.
  public boolean isHideJavaOptsInfo()
  {
    return ;
  }

  
Sets the value for hideJavaOptsInfo.

While the JAVA_OPTS may be useful to refer to for a couple of reasons, displaying them with the build properties is a security issue. Some plugins allow to read passwords as properties from the command line and this sensible data will be shown.

Therefore the JAVA_OPTS are hidden by default (true). To include this information, use a value of false.

Parameters:
hideJavaOptsInfo the value for hideJavaOptsInfo.
  public void setHideJavaOptsInfo(final boolean hideJavaOptsInfo)
  {
    this. = hideJavaOptsInfo;
  }

  
Sets the value for addEnvInfo.

Add environment variables if set to true, skip it, if set to false. If you are not interested in the environment variables of the host (e.g. for security reasons, set this to false).

Parameters:
addEnvInfo the value for addEnvInfo.
  public void setAddEnvInfo(final boolean addEnvInfo)
  {
    this. = addEnvInfo;
  }

  
Returns the value for addEnvInfo.

Add environment variables if set to true, skip it, if set to false. If you are not interested in the environment variables of the host (e.g. for security reasons, set this to false).

Returns:
the value for addEnvInfo.
  public boolean isAddEnvInfo()
  {
    return ;
  }

  
Returns the value for addJavaRuntimeInfo.

Add information about the Java runtime running the build if set to true, skip it, if set to false.

Returns:
the value for addJavaRuntimeInfo.
  public boolean isAddJavaRuntimeInfo()
  {
    return ;
  }

  
Sets the value for addJavaRuntimeInfo.

Add information about the Java runtime running the build if set to true, skip it, if set to false.

Parameters:
addJavaRuntimeInfo the value for addJavaRuntimeInfo.
  public void setAddJavaRuntimeInfo(final boolean addJavaRuntimeInfo)
  {
    this. = addJavaRuntimeInfo;
  }

  
Sets the value for addProjectInfo.

Add project information (homepage URL, categories, tags, etc.) if set to true, skip it, if set to false. If you are not interested in execution information, set this to false.

Parameters:
addProjectInfo the value for addProjectInfo.
  public void setAddProjectInfo(final boolean addProjectInfo)
  {
    this. = addProjectInfo;
  }

  
Returns the value for addProjectInfo.

Add project information (homepage URL, categories, tags, etc.) if set to true, skip it, if set to false. If you are not interested in execution information, set this to false.

Returns:
the value for addProjectInfo.
  public boolean isAddProjectInfo()
  {
    return ;
  }

  
Returns the value for addOsInfo.

Add information about the operating system the build is run in if set to true, skip it, if set to false.

Returns:
the value for addOsInfo.
  public boolean isAddOsInfo()
  {
    return ;
  }

  
Sets the value for addOsInfo.

Add information about the operating system the build is run in if set to true, skip it, if set to false.

Parameters:
addOsInfo the value for addOsInfo.
  public void setAddOsInfo(final boolean addOsInfo)
  {
    this. = addOsInfo;
  }

  
Returns the list of a system properties or environment variables to be selected by the user to include into the build meta data properties.

The name is the name of the property, the section is relevant for placing the property in one of the following sections:

  • build.scm
  • build.dateAndVersion
  • build.runtime
  • build.java
  • build.maven
  • build.misc

If no valid section is given, the property is silently rendered in the build.misc section.

Returns:
the list of a system properties to be selected by the user to include into the build meta data properties.
  {
  }

  
Sets the list of a system properties or environment variables to be selected by the user to include into the build meta data properties.

The name is the name of the property, the section is relevant for placing the property in one of the following sections:

  • build.scm
  • build.dateAndVersion
  • build.runtime
  • build.java
  • build.maven
  • build.misc

If no valid section is given, the property is silently rendered in the build.misc section.

Parameters:
selectedSystemProperties the list of a system properties to be selected by the user to include into the build meta data properties.
      final List<PropertyselectedSystemProperties)
  {
    this. = selectedSystemProperties;
  }
  // --- business -------------------------------------------------------------
  // --- object basics --------------------------------------------------------
New to GrepCode? Check out our FAQ X