![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.maven.profiles.Activation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-compat Show documentation
Show all versions of maven-compat Show documentation
Maven2 classes maintained as compatibility layer.
The newest version!
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 2.4.0,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.profiles;
/**
*
* The conditions within the build runtime environment
* which will trigger
* the automatic inclusion of the parent build profile.
*
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class Activation
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Flag specifying whether this profile is active as a default.
*/
private boolean activeByDefault = false;
/**
*
* Specifies that this profile will be activated
* when a matching JDK is detected.
*
*/
private String jdk;
/**
*
* Specifies that this profile will be activated
* when matching OS attributes are detected.
*
*/
private ActivationOS os;
/**
*
* Specifies that this profile will be activated
* when this property is specified.
*
*/
private ActivationProperty property;
/**
*
* Specifies that this profile will be activated
* based on existence of a file.
*
*/
private ActivationFile file;
//-----------/
//- Methods -/
//-----------/
/**
* Get specifies that this profile will be activated based on
* existence of a file.
*
* @return ActivationFile
*/
public ActivationFile getFile()
{
return this.file;
} //-- ActivationFile getFile()
/**
* Get specifies that this profile will be activated when a
* matching JDK is detected.
*
* @return String
*/
public String getJdk()
{
return this.jdk;
} //-- String getJdk()
/**
* Get specifies that this profile will be activated when
* matching OS attributes are detected.
*
* @return ActivationOS
*/
public ActivationOS getOs()
{
return this.os;
} //-- ActivationOS getOs()
/**
* Get specifies that this profile will be activated when this
* property is specified.
*
* @return ActivationProperty
*/
public ActivationProperty getProperty()
{
return this.property;
} //-- ActivationProperty getProperty()
/**
* Get flag specifying whether this profile is active as a
* default.
*
* @return boolean
*/
public boolean isActiveByDefault()
{
return this.activeByDefault;
} //-- boolean isActiveByDefault()
/**
* Set flag specifying whether this profile is active as a
* default.
*
* @param activeByDefault a activeByDefault object.
*/
public void setActiveByDefault( boolean activeByDefault )
{
this.activeByDefault = activeByDefault;
} //-- void setActiveByDefault( boolean )
/**
* Set specifies that this profile will be activated based on
* existence of a file.
*
* @param file a file object.
*/
public void setFile( ActivationFile file )
{
this.file = file;
} //-- void setFile( ActivationFile )
/**
* Set specifies that this profile will be activated when a
* matching JDK is detected.
*
* @param jdk a jdk object.
*/
public void setJdk( String jdk )
{
this.jdk = jdk;
} //-- void setJdk( String )
/**
* Set specifies that this profile will be activated when
* matching OS attributes are detected.
*
* @param os a os object.
*/
public void setOs( ActivationOS os )
{
this.os = os;
} //-- void setOs( ActivationOS )
/**
* Set specifies that this profile will be activated when this
* property is specified.
*
* @param property a property object.
*/
public void setProperty( ActivationProperty property )
{
this.property = property;
} //-- void setProperty( ActivationProperty )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy