///
/// Copyright © 2003-2008 JetBrains s.r.o.
/// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder).
///
using System;
using JetBrains.Build.Omea.Infra;
using Microsoft.Build.Framework;
namespace JetBrains.Build.Omea.Tasks
{
///
/// Converts a .reg file into a .wxs file with Registry entries and a dummy structure around them to provide for an XSD-valid file.
///
public class Reg2Wxs : WixTask
{
#region Attributes
///
/// Gets or sets the full path to the input REG file.
///
[Required]
public ITaskItem InputFile
{
get
{
return Bag.Get(AttributeName.InputFile);
}
set
{
if(value == null)
throw new ArgumentNullException("value");
Bag.Set(AttributeName.InputFile, value);
}
}
///
/// Gets or sets the full path to the output WiX source code file.
///
[Required]
public ITaskItem OutputFile
{
get
{
return Bag.Get(AttributeName.OutputFile);
}
set
{
if(value == null)
throw new ArgumentNullException("value");
Bag.Set(AttributeName.OutputFile, value);
}
}
#endregion
}
}