// NAnt - A .NET build tool
// Copyright (C) 2001 Gerry Shaw
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// Ian MacLean ( ian@maclean.ms )
using System;
namespace NAnt.Core.Attributes {
///
/// Defines possible locations in which a task executable can be located.
///
public enum LocationType {
///
/// Locates the task executable in the current Framework directory.
///
FrameworkDir,
///
/// Locates the task executable in the current Framework SDK directory.
///
FrameworkSdkDir
}
///
/// Indicates the location that a task executable can be located in.
///
[AttributeUsage(AttributeTargets.Class, Inherited=false, AllowMultiple=false)]
public class ProgramLocationAttribute : Attribute {
#region Protected Instance Constructors
///
/// Initializes a new instance of the
/// with the specified location.
///
/// The of the attribute.
public ProgramLocationAttribute(LocationType type) {
LocationType = type;
}
#endregion Protected Instance Constructors
#region Public Instance Properties
///
/// Gets or sets the of the task.
///
///
/// The location type of the task to which the attribute is assigned.
///
public LocationType LocationType {
get { return _locationType; }
set { _locationType = value; }
}
#endregion Public Instance Properties
#region Private Instance Fields
private LocationType _locationType;
#endregion Private Instance Fields
}
}