Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Tasks
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19219
Modified Files:
Hbm2NetTask.cs
Log Message:
reformat code with ReSharper
checking commit privileges
Index: Hbm2NetTask.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Tasks/Hbm2NetTask.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Hbm2NetTask.cs 16 Nov 2004 04:21:39 -0000 1.2
--- Hbm2NetTask.cs 28 Dec 2004 16:49:00 -0000 1.3
***************
*** 1,24 ****
- using System;
- using System.Collections;
using System.IO;
using System.Text;
-
- using NAnt.Core;
- using NAnt.Core.Types;
- using NAnt.Core.Tasks;
using NAnt.Core.Attributes;
!
! namespace NHibernate.Tasks
{
! [TaskName("hbm2net")]
public class Hbm2NetTask : ExternalProgramBase
{
! FileSet _set = new FileSet();
! string _output = null;
! string _config = null;
! string _args = null;
! [BuildElement("fileset", Required=true)]
public FileSet Hbm2NetFileSet
{
--- 1,19 ----
using System.IO;
using System.Text;
using NAnt.Core.Attributes;
+ using NAnt.Core.Tasks;
+ using NAnt.Core.Types;
! namespace NHibernate.Tasks
{
! [TaskName( "hbm2net" )]
public class Hbm2NetTask : ExternalProgramBase
{
! private FileSet _set = new FileSet();
! private string _output = null;
! private string _config = null;
! private string _args = null;
! [BuildElement( "fileset", Required=true )]
public FileSet Hbm2NetFileSet
{
***************
*** 27,31 ****
}
! [TaskAttribute("output")]
public string Output
{
--- 22,26 ----
}
! [TaskAttribute( "output" )]
public string Output
{
***************
*** 34,38 ****
}
! [TaskAttribute("config")]
public string Config
{
--- 29,33 ----
}
! [TaskAttribute( "config" )]
public string Config
{
***************
*** 46,50 ****
{
string asm = this.GetType().Assembly.Location;
! string basename = asm.Substring(0, asm.LastIndexOf(Path.DirectorySeparatorChar)+1);
return basename + "NHibernate.Tool.hbm2net.exe";
}
--- 41,45 ----
{
string asm = this.GetType().Assembly.Location;
! string basename = asm.Substring( 0, asm.LastIndexOf( Path.DirectorySeparatorChar ) + 1 );
return basename + "NHibernate.Tool.hbm2net.exe";
}
***************
*** 59,78 ****
{
StringBuilder sb = new StringBuilder();
! if(_output != null)
{
! sb.Append("--output=\"" + _output + "\" ");
}
! if(_config != null)
{
! sb.Append("--config=\"" + _config + "\" ");
}
! foreach(string filename in _set.FileNames)
{
! sb.Append("\"" + filename + "\" ");
}
_args = sb.ToString();
!
base.ExecuteTask();
}
}
! }
--- 54,73 ----
{
StringBuilder sb = new StringBuilder();
! if( _output != null )
{
! sb.Append( "--output=\"" + _output + "\" " );
}
! if( _config != null )
{
! sb.Append( "--config=\"" + _config + "\" " );
}
! foreach( string filename in _set.FileNames )
{
! sb.Append( "\"" + filename + "\" " );
}
_args = sb.ToString();
!
base.ExecuteTask();
}
}
! }
\ No newline at end of file
|