Re: [nant-dev] style task

2005-06-22 Thread Giuseppe Greco
Okay,

I'll try on M$.NET 2.0 tomorrow (at home I've no Windows Boxes).
What's about Mono? Here we have exactly the same problem...

j3d.

On Wed, 2005-06-22 at 17:13 +0200, Gert Driesen wrote:
 Giuseppe,
 
 Have you tried running it on MS.NET 2.0 ?  I know there have been some fixes
 in this area.
 
 Gert
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: nant-developers@lists.sourceforge.net
 Sent: Wednesday, June 22, 2005 4:17 PM
 Subject: [nant-dev] style task
 
 
  Hi all,
 
  no way to get the style task working with the DocBook DTD...
 
  I've modified the CreateXmlReader() method in order to
  1) support URIs as well as local filenames, and
  2) handle proxy credentials for either DTDs or XSL stylesheets
 
  CreateXmlReader() returns now a XmlValidatinReader, which should
  resolve external entities by default... but if you run a task like
  the one here below
 
  style style=
http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl;
destdir=${build.dir}
in=test-document.xml
proxy host=master port=80
  credentials username=j3d password=pwd domain=agamura /
/proxy
  /style
 
 
  ... you'll always get the following error message:
 
Could not perform XSLT transformation of
'/home/genius/projects/test-document/test-document.xml' using stylesheet
'http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl'.
The 'book' element is not declared. An error occurred at
file:///home/genius/projects/test-document/test-document.xml, (11, 2).
 
  Attached to this email you'll find the build file as well as the
  DocBook xml source files to reproduce the problem (of course, you
  have first to checkout the very last version of NAnt from CVS).
 
  Any help or suggestion is really appreciated!
  j3d.
 
  
  Giuseppe Greco
  ::agamura::
 
  call giuseppe.greco via Skype
  phone:  +41 (0)91 604 67 65
  mobile: +41 (0)79 602 99 27
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
-- 

Giuseppe Greco
::agamura::

call giuseppe.greco via Skype
phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Problems with the al task on Linux

2005-04-27 Thread Giuseppe Greco
Hi all,

There are still problems with the al task on Linux.
Just try the attached example (test.tar.gz):

build:

 [al] Output file '/home/genius/test/en-US/Test.resources.dll'
does not exist, recompiling.
 [al] Compiling 1 files to '/home/genius/test/en-US/Test.resources.dll'.
 [al] Contents of /tmp/tmpc410434.
 [al] /target:library
 [al] /out:/home/genius/projects/test/en-US/Test.resources.dll
 [al] /culture:en-US
 [al] /embed:/home/genius/projects/test/en-US/Test.en-US.resources
 [al] /nologo
 [al]
 [al] Starting '/usr/bin/mono (/usr/lib/mono/1.0/al.exe
  @/tmp/tmpc410434)' in '/home/genius/projects/test'
 [al] ALINK: error A1012: 'library' is not a valid setting for option
  'target'

BUILD FAILED

Running al.exe manually there are no problems at all:

al /t:lib /embed:en-US/Test.en-US.resources
  /c:en-US /out:Test.resources.dll

or

al @cmdline.txt

Of course, the same applies also to the resources
element in the csc task.

j3d.

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com



test.tar.gz
Description: application/compressed-tar


Re: [nant-dev] Problems with the al task on Linux

2005-04-27 Thread Giuseppe Greco
Hi guys,

With the latest version of Mono it should be enough to
handle the template option:

thermota-0.7-debug/bin/it-IT/Thermota.resources.dll'.
  [al] ALINK: error A: Compiler option 'template'
   is not implemented

j3d.

On Wed, 2005-04-27 at 12:06 +0200, Giuseppe Greco wrote:
 Hi all,
 
 There are still problems with the al task on Linux.
 Just try the attached example (test.tar.gz):
 
 build:
 
  [al] Output file '/home/genius/test/en-US/Test.resources.dll'
 does not exist, recompiling.
  [al] Compiling 1 files to '/home/genius/test/en-US/Test.resources.dll'.
  [al] Contents of /tmp/tmpc410434.
  [al] /target:library
  [al] /out:/home/genius/projects/test/en-US/Test.resources.dll
  [al] /culture:en-US
  [al] /embed:/home/genius/projects/test/en-US/Test.en-US.resources
  [al] /nologo
  [al]
  [al] Starting '/usr/bin/mono (/usr/lib/mono/1.0/al.exe
   @/tmp/tmpc410434)' in '/home/genius/projects/test'
  [al] ALINK: error A1012: 'library' is not a valid setting for option
   'target'
 
 BUILD FAILED
 
 Running al.exe manually there are no problems at all:
 
 al /t:lib /embed:en-US/Test.en-US.resources
   /c:en-US /out:Test.resources.dll
 
 or
 
 al @cmdline.txt
 
 Of course, the same applies also to the resources
 element in the csc task.
 
 j3d.
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] NUnit on Linux

2005-04-12 Thread Giuseppe Greco
Gert,

I'm using version NAnt 0.85 (Build 0.85.1876.0; dev; 2/19/2005);
I know, it is quite old... but the nunit2 task has never worked
on Linux since then (on Windows it does).

I cannot tell you if the very last version from CVS works since
it does not compile:

  [csc] Compiling 13 files to
'/home/genius/temp/nant/build/mono-1.0.unix/nant-0.85-
debug/bin/NAnt.SourceControlTasks.dll'.
  [csc] error CS0122: 'log4net.Plugin.PluginCollection
+Tag' is inaccessible due to its protection level
  [csc] error CS0122: 'log4net.Plugin.PluginCollection
+Tag' is inaccessible due to its protection level
  [csc] error CS0122: 'log4net.Plugin.PluginCollection
+Tag' is inaccessible due to its protection level
  [csc] error CS0122: 'log4net.Plugin.PluginCollection
+Tag' is inaccessible due to its protection level
  [csc] error CS0122: 'log4net.Plugin.PluginCollection
+Tag' is inaccessible due to its protection level
  [csc] error CS0122: 'log4net.Plugin.PluginCollection
+Tag' is inaccessible due to its protection level
  [csc] Compilation failed: 6 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 6 warning(s)

Probably somebody is working on that... so I'll wait until he's
finished.

j3d.

On Tue, 2005-04-12 at 00:03 +0200, Gert Driesen wrote:
  
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On 
  Behalf Of Giuseppe Greco
  Sent: maandag 11 april 2005 22:08
  To: NAnt Developers
  Subject: [nant-dev] NUnit on Linux
  
  Hi all,
  
  I'm trying to run the nunit2 task with Mono on Linux, but I
  always get the following error message:
  
  
  ** (/usr/local/share/NAnt/bin/NAnt.exe:6202): WARNING **:
Could not find assembly nunit.framework, references
from /home/genius/projects/gekkota/build/gekkota-0.4-
  debug/lib/Gekkota.Tests.dll (assemblyref_index=2)
Major/Minor: 2,2
Build:   0,0
Token:   96d09a1eb7f44a77
  System error: No such file or directory
  
  
  I've also tried to copy the nunit.*.dll assemblies into
  /usr/lib/mono/2.0, but no way...
  
  Am I missing something?
 
 Was it working before for you ?  What version of Mono are you using ?
 
 Gert
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] NUnit on Linux

2005-04-12 Thread Giuseppe Greco
On Tue, 2005-04-12 at 16:28 +0200, Gert Driesen wrote:
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers nant-developers@lists.sourceforge.net
 Sent: Tuesday, April 12, 2005 3:58 PM
 Subject: RE: [nant-dev] NUnit on Linux
 
 
  Gert,
 
  I'm using version NAnt 0.85 (Build 0.85.1876.0; dev; 2/19/2005);
  I know, it is quite old... but the nunit2 task has never worked
  on Linux since then (on Windows it does).
 
 It did work before for you ?
 Have you tried a version of NAnt of which the nunit2 task worked before
 (on linux that is) ?

Yes, but honestly I don't remember exactly with which version...
for sure it was before Christmas... I did not report the problem
because I just though: That's so not urgent... I'll wait for the
next release.

Anyway, don't stress yourself... on Windows it works and with Mono
there are always regression problems...

Thanks,
j3d.

 
 
  I cannot tell you if the very last version from CVS works since
  it does not compile:
 
[csc] Compiling 13 files to
  '/home/genius/temp/nant/build/mono-1.0.unix/nant-0.85-
  debug/bin/NAnt.SourceControlTasks.dll'.
[csc] error CS0122: 'log4net.Plugin.PluginCollection
  +Tag' is inaccessible due to its protection level
[csc] error CS0122: 'log4net.Plugin.PluginCollection
  +Tag' is inaccessible due to its protection level
[csc] error CS0122: 'log4net.Plugin.PluginCollection
  +Tag' is inaccessible due to its protection level
[csc] error CS0122: 'log4net.Plugin.PluginCollection
  +Tag' is inaccessible due to its protection level
[csc] error CS0122: 'log4net.Plugin.PluginCollection
  +Tag' is inaccessible due to its protection level
[csc] error CS0122: 'log4net.Plugin.PluginCollection
  +Tag' is inaccessible due to its protection level
[csc] Compilation failed: 6 error(s), 0 warnings
 
  BUILD FAILED - 0 non-fatal error(s), 6 warning(s)
 
  Probably somebody is working on that... so I'll wait until he's
  finished.
 
 It's a Mono regression, not sure if it has been reported yet.  I'm gonna
 look into it some time this week.
 
 Gert
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] NUnit on Linux

2005-04-11 Thread Giuseppe Greco
Hi all,

I'm trying to run the nunit2 task with Mono on Linux, but I
always get the following error message:


** (/usr/local/share/NAnt/bin/NAnt.exe:6202): WARNING **:
  Could not find assembly nunit.framework, references
  from /home/genius/projects/gekkota/build/gekkota-0.4-
debug/lib/Gekkota.Tests.dll (assemblyref_index=2)
  Major/Minor: 2,2
  Build:   0,0
  Token:   96d09a1eb7f44a77
System error: No such file or directory


I've also tried to copy the nunit.*.dll assemblies into
/usr/lib/mono/2.0, but no way...

Am I missing something?

Thanks,
j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] ResourceUtils

2005-02-23 Thread Giuseppe Greco
On Tue, 2005-02-22 at 09:41 +0800, Troy Laurin wrote:
  [DCL]
 
 On .NET the code above just works fine. What's important is to define
 resourceManager as following:
 
 private static volatile ResourceManager resourceManager;
 
 Honestly, the only thing I forgot in the original source code was
 the volatile keyword.
 
 Fair enough.  I'd believe this would work with the volatile keyword.
 
 Just as a note though, using a readonly static-initialised member
 that's non-volatile is still correct but should be more performant...
 since reads of a volatile reference can't be cached, they will always
 go to main memory.

Would you suggest something like this?

sealed class ResourceUtils 
{
private ResourceUtils() {}
public static readonly ResourceUtils Instance = new ResourceUtils();
...
}

...

string errorMessage = ResourceUtils.Instance.GetString(NA1001);

That works fine too, but looking at
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/dnbda/html/singletondespatt.asp, on .NET the result is
exactly the same as with the double-checked locking pattern

 
 I guess I've been a Java programmer too long... the double-checked
 locking pattern just looks wrong to my eyes.

Oh no! Java? Pfui!!! I come from C/C++... and my bibles were
Effective C++ and More Effective C++ by Scott Meyers...

j3d.

 
 Be well,
 
 -- Troy
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] ResourceUtils

2005-02-23 Thread Giuseppe Greco
 I've been doing some more reading about .net internationalization 
 strategies and it looks like a common model is to have satellite dlls 
 for each assembly containing resources specifc to that assembly only and 
 to create a resource only assembly to put *all* shared resources into. 
 Maybe this is what you meant with NAnt.Resources.dll above ?

Not exactly... but such an alternative makes sense.
j3d.

 
 Ian
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
 ___
 nant-developers mailing list
 nant-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] nunit2 task

2005-02-18 Thread Giuseppe Greco
I all,

I've just installed the very last version of mono and
I've some troubles with the nuint2 task...

Here below is the error message I get:


** (/usr/local/share/NAnt/bin/NAnt.exe:15021): WARNING **: Could not
find assembly nunit.framework, references
from /home/genius/projects/gekkota/build/
  gekkota-0.4-debug/lib/Gekkota.Tests.dll (assemblyref_index=2)
 Major/Minor: 2,2
 Build:   0,0
 Token:   96d09a1eb7f44a77
System error: No such file or directory


BUILD FAILED

/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(207,6):
Failure executing test(s). If you assembly is not built using NUnit
version 2.2.0.0, then ensure you have redirected assembly bindings.
Consult the documentation of the nunit2 task for more information.
Assembly 2 referenced from
assembly /home/genius/projects/gekkota/build/
  gekkota-0.4-debug/lib/Gekkota.Tests.dll not found

Total time: 5.7 seconds.


Note that I've copied all the nunit*.dll assemblies from
/usr/local/share/NAnt/bin/lib/mono/2.0 to /usr/lib/mono/2.0, and
as you can see here below, my build file should be correct:

...
property
  name=target.framework
  value=${framework::get-target-framework()} /
property
  name=assembly.dir
  value=${framework::get-assembly-directory(target.framework)} /
...
target
  name=test
  depends=build
  description=Tests the current configuration
  csc
target=library
output=${build.dir}/lib/${assembly}.Tests.dll
sources
  basedir=${assembly}.Tests
  failonempty=true
  include name=*.cs /
/sources
references
  include name=${build.dir}/lib/${assembly}.dll /
  include name=${assembly.dir}/nunit.framework.dll /
/references
  /csc
  nunit2
formatter type=Plain /
formatter
  type=Xml
  usefile=true
  extension=.xml
  outputdir=${build.dir}/test-results /
  test
assemblyname=${build.dir}/lib/${assembly}.Tests.dll /
  /nunit2
/target


Any idea?
j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] L16N - resx files

2005-02-16 Thread Giuseppe Greco
Ian,

attached to this email you'll find a tar.gz containing the
RESX skeletons. Could you please integrate them into the
project and import them into CVS?

The next steps would be:

1. Decide a standard for string IDs

2. Decide who does what

3. Fill the RESX skeletons

4. Replace hardcoded string with ResourceUtils.GetString(string_id)

5. Update the build files

Let me know,
j3d.

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com



resx.tar.gz
Description: application/compressed-tar


[nant-dev] No way to get NAnt compiled on Linux with Mono

2005-02-06 Thread Giuseppe Greco
Hi all,

I'm trying to recompile NAnt with the latest Mono from SVN...
but believe me, no way!

First, the build process looks for /usr/lib/mono/2.0, which does
not exist... Okay, then after fixing that, the build process stops
due the following unhandled exception:

log4net:ERROR LogLog: Exception while reading ConfigurationSettings.
Check your .config file is well formed XML.

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for NAnt.Console.ConsoleStub ---
System.TypeInitializationException: An exception was thrown by the type
initializer for log4net.Core.LoggerManager ---
System.TypeInitializationException: An exception was thrown by the type
initializer for log4net.Util.LogLog ---
System.Configuration.ConfigurationException: Cannot get Type for
System.Diagnostics.DiagnosticsConfigurationHandler, System,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ()
in 0x0008e System.Configuration.ConfigurationData:CreateNewHandler
(string,System.Configuration.SectionData)
in 0x001cf System.Configuration.ConfigurationData:GetHandler (string)
in 0x0005a System.Configuration.ConfigurationData:GetHandler (string)
in 0x0002a System.Configuration.ConfigurationData:GetConfigInternal
(string)
in 0x0009d System.Configuration.ConfigurationData:GetConfig (string)
in 0x0001f System.Configuration.DefaultConfig:GetConfig (string)
in 0x00069 System.Configuration.ConfigurationSettings:GetConfig
(string)
in 0x0001c System.Diagnostics.DiagnosticsConfiguration:get_Settings ()
in 0x0003c System.Diagnostics.TraceImpl:InitOnce ()
in 0x7 System.Diagnostics.TraceImpl:get_Listeners ()
in 0x00037 System.Diagnostics.TraceImpl:WriteLine (string)
in 0xa System.Diagnostics.Trace:WriteLine (string)
in 0x00027 log4net.Util.LogLog:EmitErrorLine (string)
in 0x00030 log4net.Util.LogLog:Error (string,System.Exception)
in 0x000a8 log4net.Util.LogLog:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) 0x808e825
in 0x0003d log4net.Core.LoggerManager:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) 0x808e825
in 0x00012 log4net.LogManager:GetLogger
(System.Reflection.Assembly,string)
in 0x00029 log4net.LogManager:GetLogger (System.Type)
in 0x0001b NAnt.Console.ConsoleStub:.cctor ()
--- End of inner exception stack trace ---

make: *** [build-nant] Error 1

Any idea?
j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Still problems with the al task

2005-02-06 Thread Giuseppe Greco
Hi all,

I've still problems with the al task...
Just try the following task on Linux with Mono (1.1.4):

al
  target=lib
  output=${build.dir}/lib/${culture}/${assembly}.resources.dll
  culture=${culture}
  sources basedir=${build.dir}/lib/${culture}
include name=*.resources /
  /sources
/al

... and you'll get the following error message:

build:

[echo] Build Directory is ../../build/gekkota-0.4-debug
[al] Compiling 1 files to
'/home/genius/projects/gekkota/build/gekkota-0.4-debug/lib/
  de-DE/Gekkota.resources.dll'.
[al] ALINK: error A1012: 'lib' is not a valid setting for option
  'target'

BUILD FAILED

Any idea?

Furthermore, I would suggest to replace lib with library, just
to be consistent with the csc task.

Thanks,
j3d.

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] Still problems with the al task

2005-02-06 Thread Giuseppe Greco
Hi Gert,

here below is the verbose log:


build-resources:


build:

 [echo] Build Directory is ../../build/gekkota-0.4-debug
   [al] Output file
'/home/genius/projects/gekkota/build/gekkota-0.4-debug/lib/de-
DE/Gekkota.resources.dll' does not exist, recompiling.
   [al] Compiling 1 files to
'/home/genius/projects/gekkota/build/gekkota-0.4-debug/lib/de-
DE/Gekkota.resources.dll'.
   [al] Contents of /tmp/tmp3eb7ae42.
   [al] /target:library
   [al] /out:/home/genius/projects/gekkota/build/gekkota-0.4-
debug/lib/de-DE/Gekkota.resources.dll
   [al] /culture:de-DE
   [al] /nologo
   [al] /embed:/home/genius/projects/gekkota/build/gekkota-0.4-
debug/lib/de-DE/Gekkota.de-DE.resources
   [al]
   [al] Starting '/usr/local/bin/mono
(/usr/local/lib/mono/1.0/al.exe @/tmp/tmp3eb7ae42)' in
'/home/genius/projects/gekkota/src/Gekkota'
   [al] ALINK: error A1012: 'library' is not a valid setting for
option 'target'

BUILD FAILED

/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(110,8):
External Program Failed: /usr/local/lib/mono/1.0/al.exe (return code was
1):
NAnt.Core.BuildException: 
/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(110,8):
External Program Failed: /usr/local/lib/mono/1.0/al.exe (return code was
1)
in 0x003ab NAnt.Core.Tasks.ExternalProgramBase:ExecuteTask ()

I hope that helps...

Ciao,
j3d.

On Sun, 2005-02-06 at 22:20 +0100, Gert Driesen wrote:
 Hi Giuseppe,
 
 I don't have time to look into this right now, but can you send me a verbose
 log (NAnt.exe -verbose ...) ?
 
 BTW: you should be able to use either lib or library on MS.NET, not sure
 about Mono though.
 
 Gert 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On 
  Behalf Of Giuseppe Greco
  Sent: zondag 6 februari 2005 20:13
  To: NAnt Developers
  Subject: [nant-dev] Still problems with the al task
  
  Hi all,
  
  I've still problems with the al task...
  Just try the following task on Linux with Mono (1.1.4):
  
  al
target=lib
output=${build.dir}/lib/${culture}/${assembly}.resources.dll
culture=${culture}
sources basedir=${build.dir}/lib/${culture}
  include name=*.resources /
/sources
  /al
  
  ... and you'll get the following error message:
  
  build:
  
  [echo] Build Directory is ../../build/gekkota-0.4-debug
  [al] Compiling 1 files to
  '/home/genius/projects/gekkota/build/gekkota-0.4-debug/lib/
de-DE/Gekkota.resources.dll'.
  [al] ALINK: error A1012: 'lib' is not a valid setting for option
'target'
  
  BUILD FAILED
  
  Any idea?
  
  Furthermore, I would suggest to replace lib with library, just
  to be consistent with the csc task.
  
  Thanks,
  j3d.
  
  -- 
  
  Giuseppe Greco
  
  ::agamura::
  
  phone:  +41 (0)91 604 67 65
  mobile: +41 (0)79 602 99 27
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
  
  
  
  ---
  This SF.Net email is sponsored by: IntelliVIEW -- Interactive 
  Reporting
  Tool for open source databases. Create drag--drop reports. Save time
  by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
  Download a FREE copy at http://www.intelliview.com/go/osdn_nl
  ___
  nant-developers mailing list
  nant-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nant-developers
  
  
 
 
 
 ---
 This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
 Tool for open source databases. Create drag--drop reports. Save time
 by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
 Download a FREE copy at http://www.intelliview.com/go/osdn_nl
 ___
 nant-developers mailing list
 nant-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Building NAnt...

2005-01-30 Thread Giuseppe Greco
Hi all,

this email is just to inform you that compiling NAnt
against the latest version of mono from SVN (v1.1.3)
doesn't work.

Here below are the error messages:

src/NAnt.DotNet/Tasks/NDocTask.cs(389) error CS0104:
  `Project' is an ambiguous reference (NDoc.Core.Project or
  NAnt.Core.Project)
src/NAnt.DotNet/Tasks/NDocTask.cs(397) error CS0104:
  `Project' is an ambiguous reference (NDoc.Core.Project or
  NAnt.Core.Project)
Compilation failed: 2 error(s), 0 warnings
make: *** [bootstrap/NAnt.DotNetTasks.dll] Error 1

j3d.

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Problem with al task

2005-01-28 Thread Giuseppe Greco
Hi all,

I've some trouble with the al task... Here below is
the -verbose output:


build:

[echo] Build Directory is ../../build/gekkota-0.4-debug
  [al] Output file '/home/genius/projects/gekkota/build/
gekkota-0.4-debug/lib/de-DE/Gekkota.resources.dll' does notexist,
recompiling.
  [al] Compiling 1 files to
'/home/genius/projects/gekkota/build/gekkota-0.4-debug/lib/
 de-DE/Gekkota.resources.dll'.
  [al] Contents of /tmp/tmp3dedd41d.
  [al] /target:library
  [al] /out:/home/genius/projects/gekkota/build/
gekkota-0.4-debug/lib/de-DE/Gekkota.resources.dll
  [al] /culture:de-DE
  [al] /nologo
  [al] /embed:/home/genius/projects/gekkota/build/
gekkota-0.4-debug/lib/de-DE/Gekkota.de-DE.resources
  [al]
  [al] Starting '/usr/bin/mono (/usr/bin/al.exe @/tmp/tmp3dedd41d)'
in '/home/genius/projects/gekkota/src/Gekkota'
  [al] ALINK: error A1017: No target filename was specified

BUILD FAILED

/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(110,8):
External Program Failed: /usr/bin/al.exe (return code was 1):
NAnt.Core.BuildException: 
/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(110,8):
External Program Failed: /usr/bin/al.exe (return code was 1)
in 0x0052d NAnt.Core.Tasks.ExternalProgramBase:ExecuteTask ()


I'm running the latest version of NAnt from CVS on mono 1.0.5.
Any idea?

j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] call task

2004-11-30 Thread Giuseppe Greco
Hi all,

it seems there is a problem with the call task:

call
target=myTarget
unless=${file::exists('myDirectory/myFile.cs')} /

In the example above, myTarget should be invoked if and
only if the file myDirectory/myFile.cs does not exist...
but it is not the case. To get the desired behavior, I
have to modify the task as following:

call
target=myTarget
if=${file::exists('myDirectory/myFile.cs')} /

... but in this case, myTarget should be executed if and
only if myDirectory/myFile.cs does exist...

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] call task

2004-11-30 Thread Giuseppe Greco
Done,
j3d.

 Hi Giuseppe,

 Can you submit a bug report for this ?

 Thanks !

 Gert

 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 30, 2004 11:42 AM
 Subject: [nant-dev] call task


 Hi all,

 it seems there is a problem with the call task:

 call
 target=myTarget
 unless=${file::exists('myDirectory/myFile.cs')} /

 In the example above, myTarget should be invoked if and
 only if the file myDirectory/myFile.cs does not exist...
 but it is not the case. To get the desired behavior, I
 have to modify the task as following:

 call
 target=myTarget
 if=${file::exists('myDirectory/myFile.cs')} /

 ... but in this case, myTarget should be executed if and
 only if myDirectory/myFile.cs does exist...

 j3d.

 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 


 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] Back to an old style issue...

2004-11-26 Thread Giuseppe Greco
Yes, but not immediately...

I'll let you know.
j3d.

On Fri, 2004-11-26 at 12:28 +0100, Gert Driesen wrote:
  
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On 
  Behalf Of Giuseppe Greco
  Sent: woensdag 24 november 2004 8:51
  To: [EMAIL PROTECTED]
  Subject: [nant-dev] Back to an old style issue...
  
  Hi all,
  
  As discussed some time ago, before processing a DocBook document, one
  should first download the stylesheet with the get task:
  
  
  target name=build-html
get
  
  src=http://docbook.sourceforge.net/release/xsl/current/xhtml/
  chunk.xsl
  dest=chunk.xsl
  proxy host=proxy.domain.com port=8080
credentials username=user password=password /
  /proxy
/get
style style=chunk.xsl in=myDocument.xml /
  /target
  
  
  Well, assuming we have a proxy server, the target above works just
  partially... The get task isn't a problem at all since we can
  specify the proxy settings, but the style task fails because
  there is no way to specify them... Do you remember? DocBook documents
  have to be validated against the DocBook DTD:
  
  
  ?xml version=1.0 encoding=utf-8?
  
  !ENTITY % docbook PUBLIC -//OASIS//DTD DocBook XML V4.2//EN
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd; [
!ENTITY introduction SYSTEM introduction.xml
...
!ENTITY glossary SYSTEM glossary.xml
  ]
  
  book id=myBook lang=language;
...
  /book
  
  
  To solve this problem we should be also able to set proxy
  settings in the style task. Furthermore, doing so we don't
  need anymore to first download the stylesheet with the get
  task.
  
  Another interesting feature world be the ability to
  specify a XML catalog in the style task in order to
  provide a mapping from generic addresses to specific
  local directories on a given machine...
 
 This would indeed be very interesting. Do you have time to look into this ?
 
 Gert
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Back to an old style issue...

2004-11-24 Thread Giuseppe Greco
Hi all,

As discussed some time ago, before processing a DocBook document, one
should first download the stylesheet with the get task:


target name=build-html
  get
src=http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl;
dest=chunk.xsl
proxy host=proxy.domain.com port=8080
  credentials username=user password=password /
/proxy
  /get
  style style=chunk.xsl in=myDocument.xml /
/target


Well, assuming we have a proxy server, the target above works just
partially... The get task isn't a problem at all since we can
specify the proxy settings, but the style task fails because
there is no way to specify them... Do you remember? DocBook documents
have to be validated against the DocBook DTD:


?xml version=1.0 encoding=utf-8?

!ENTITY % docbook PUBLIC -//OASIS//DTD DocBook XML V4.2//EN
  http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd; [
  !ENTITY introduction SYSTEM introduction.xml
  ...
  !ENTITY glossary SYSTEM glossary.xml
]

book id=myBook lang=language;
  ...
/book


To solve this problem we should be also able to set proxy
settings in the style task. Furthermore, doing so we don't
need anymore to first download the stylesheet with the get
task.

Another interesting feature world be the ability to
specify a XML catalog in the style task in order to
provide a mapping from generic addresses to specific
local directories on a given machine...

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] get-monodoc-dir()

2004-10-16 Thread Giuseppe Greco
Hi all,

since on Linux monodoc assemblies (assembler.exe, updater.exe, etc.)
are located under /usr/lib/monodoc/, it would be nice to
have the function get-monodoc-dir()...

What do you think about?

j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] zip task...

2004-10-09 Thread Giuseppe Greco
Gert,

Thanks, using zipfileset is OK...

j3d.

On Sat, 2004-10-09 at 13:24, Gert Driesen wrote:
 Giuseppe,
 
 The zip task was recently changed to use a zipfileset instead of a 
 regular fileset element.
 
 The zipfileset allows you to set a prefix (directory) for the files in the 
 fileset.
 
 So, you should actually use zipfileset for the global data type.
 
 The error message that was output was wrong. It should have been Attempting 
 to use a fileset reference where a zipfileset is required.. This is now 
 fixed in cvs.
 
 Hope this helps,
 
 Gert
 
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Friday, October 08, 2004 8:55 PM
 Subject: [nant-dev] zip task...
 
 
  Hi all,
 
  does anybody know if there are issues related to the zip task?
 
  This doesn't work anymore:
 
  fileset
   id=archive.set
   basedir=${build.dir}
   include name=../AUTHORS /
   include name=../COPYRIGHT /
   include name=../LICENSE /
   include name=${package.name}/** /
   exclude name=${package.name}/**/*.resources /
  /fileset
 
  ...
 
  zip zipfile=${archive.name}
   fileset refid=archive.set /
  /zip
 
  I always get the following error message:
   Attempting to use a zipfileset reference where a fileset is
required.
 
  I'm using NAnt 0.85 (Build 0.85.1742.0; mono-1.0.unix; dev; 10/8/2004).
 
  Any idea?
  j3d.
 
  -- 
  
  Giuseppe Greco
 
  ::agamura::
 
  phone:  +41 (0)91 604 67 65
  mobile: +41 (0)76 390 60 32
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
 
 
 
  ---
  This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
  Use IT products in your business? Tell us what you think of them. Give us
  Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out 
  more
  http://productguide.itmanagersjournal.com/guidepromo.tmpl
  ___
  nant-developers mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-developers
 
  
 
 
 
 ---
 This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 Use IT products in your business? Tell us what you think of them. Give us
 Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
 http://productguide.itmanagersjournal.com/guidepromo.tmpl
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Question

2004-09-08 Thread Giuseppe Greco
Hi guys,
I'm trying to use NAnt with .NET 2.0:

nant -defaultframework:net-2.0

... but it looks like NAnt doesn't care:

BUILD FAILED

The SDK for the 'net-1.1' framework is not available or not configured.

Total time: 0.1 seconds.

Any idea?
j3d.



Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Question

2004-09-08 Thread Giuseppe Greco
I'm using the version released on 4th September...

j3d.

 Giuseppe,

 What version of NAnt are you using ? I think there might have been an
 issue
 with this a while ago ...

 Gert

 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 2:05 PM
 Subject: [nant-dev] Question


 Hi guys,
 I'm trying to use NAnt with .NET 2.0:

 nant -defaultframework:net-2.0

 ... but it looks like NAnt doesn't care:

 BUILD FAILED

 The SDK for the 'net-1.1' framework is not available or not configured.

 Total time: 0.1 seconds.

 Any idea?
 j3d.


 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 


 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers





Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Question

2004-09-08 Thread Giuseppe Greco
Gert,

Just try with a resgen task like this:

resgen
  input=${assembly}.${culture}.resx
  output=${build.dir}/bin/${culture}/${assembly}.${culture}.resources/

The csc task, for example, works fine.

J3d.

 Giuseppe,

 I'm unable to reproduce that issue here. Can you package up a small repro
 for this ?

 Thanks,

 Gert

 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: Giuseppe Greco [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 2:35 PM
 Subject: Re: [nant-dev] Question


 I'm using the version released on 4th September...

 j3d.

 Giuseppe,

 What version of NAnt are you using ? I think there might have been an
 issue
 with this a while ago ...

 Gert

 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 2:05 PM
 Subject: [nant-dev] Question


 Hi guys,
 I'm trying to use NAnt with .NET 2.0:

 nant -defaultframework:net-2.0

 ... but it looks like NAnt doesn't care:

 BUILD FAILED

 The SDK for the 'net-1.1' framework is not available or not
 configured.

 Total time: 0.1 seconds.

 Any idea?
 j3d.


 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 


 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 


 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers





Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Question

2004-09-08 Thread Giuseppe Greco
Gert,

I'm really sorry!!!

In one of my build files there was a zombie like this

property name=nant.settings.currentframework value=net-1.1/
readregistry
  property=framework.dir
  key=Software\Microsoft\.NETFramework\InstallRoot
  hive=LocalMachine/

I'm getting old... that is it!

Thanks,
j3d.

 Giuseppe,

 I still cannot reproduce this here.

 Are you sure you're actually targeting the 2.0 framework ?

 Can you try this (with a valid resx file) :

 project name=test
  echo message=Targeting
 ${framework::get-description(framework::get-target-framework())} /
  resgen input=test.resx output=test.resources/
 /project

 Gert

 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: Giuseppe Greco [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 3:13 PM
 Subject: Re: [nant-dev] Question


 Gert,

 Just try with a resgen task like this:

 resgen
  input=${assembly}.${culture}.resx
  output=${build.dir}/bin/${culture}/${assembly}.${culture}.resources/

 The csc task, for example, works fine.

 J3d.

 Giuseppe,

 I'm unable to reproduce that issue here. Can you package up a small
 repro
 for this ?

 Thanks,

 Gert

 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: Giuseppe Greco [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 2:35 PM
 Subject: Re: [nant-dev] Question


 I'm using the version released on 4th September...

 j3d.

 Giuseppe,

 What version of NAnt are you using ? I think there might have been an
 issue
 with this a while ago ...

 Gert

 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 2:05 PM
 Subject: [nant-dev] Question


 Hi guys,
 I'm trying to use NAnt with .NET 2.0:

 nant -defaultframework:net-2.0

 ... but it looks like NAnt doesn't care:

 BUILD FAILED

 The SDK for the 'net-1.1' framework is not available or not
 configured.

 Total time: 0.1 seconds.

 Any idea?
 j3d.


 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 


 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 


 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 


 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click

[nant-dev] ILASM and ILDASM tasks

2004-07-05 Thread Giuseppe Greco
Ian,

The ILASM and ILDASM tasks are ready. I'll send them
to you with a separate email.

About the rebuild property... we could rename it to
redisassemble, but I don't think this name is very nice.

In this context, rebuild means rebuild the IL output,
so I think it could be fine.

Let me know,
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] ILDASM task

2004-07-05 Thread Giuseppe Greco
Hi Ian,

Attached to this email you'll find the IldasmTask.cs
file... I've just corrected the file name in the
header (it was IlasmTask.cs instead of IldasmTask.cs)
and inserted an empty line after some methods because
it was missing.

I know, I'm a perfectionist and I'm sorry... The changes
have been made in the IldasmTask.cs file from CVS.

Thanks,
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com
// IldasmTask.cs
//
// Giuseppe Greco [EMAIL PROTECTED]
// Copyright (C) 2004 Agamura, Inc.
//
// 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
//
// Giuseppe Greco ([EMAIL PROTECTED])

using System.IO;

using NAnt.Core;
using NAnt.Core.Attributes;
using NAnt.Core.Tasks;
using NAnt.Core.Types;
using NAnt.Core.Util;

namespace NAnt.MSNet.Tasks {
/// summary
/// Disassembles any portable executable (PE) file that contains
/// intermediate language (IL) code.
/// /summary
/// example
///   para
///   Disassembles chelloworld.exe/c to chelloworld.il/c.
///   /para
///   code
/// ![CDATA[
/// ildasm input=helloworld.exe output=helloworld.il /
/// ]]
///   /code
/// /example
/// example
///   para
///   Disassembles a set of PE files into the specified directory.
///   /para
///   code
/// ![CDATA[
/// ildasm todir=.
/// assemblies
/// include name=*.exe /
/// include name=*.dll /
/// /assemblies
/// /ildasm
/// ]]
///   /code
/// /example
[TaskName(ildasm)]
[ProgramLocation(LocationType.FrameworkDir)]
public class IldasmTask : ExternalProgramBase {
#region Private Instance Fields
private const string _TargetExt = il;
private bool _all;
private bool _bytes;
private bool _forceRebuild;
private bool _header;
private bool _lineNumbers;
private bool _noIL;
private bool _publicOnly;
private bool _quoteAllNames;
private bool _rawExceptionHandling;
private bool _source;
private bool _tokens;
private bool _unicode;
private bool _utf8;
private string _item;
private string _visibility;
private DirectoryInfo _toDir;
private FileInfo _inputFile;
private FileInfo _outputFile;
private FileSet _assemblies;
private string _options;
#endregion Private Instance Fields

#region Public Instance Properties
/// summary
/// Specifies whether or not the disassembler should combine the
/// c/HEADER/c, c/BYTE/c, and cTOKENS/c options.
/// /summary
/// value
/// see langword=true / if the disassembler should combine the
/// c/HEADER/c, c/BYTE/c, and cTOKENS/c options;
/// otherwise, see langword=false /. The default is
/// see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/ALL/c flag.
/// /para
/// /remarks
[TaskAttribute(all)]
[BooleanValidator()]
public bool All {
get { return _all; }
set { _all = value; }
}

/// summary
/// Specifies whether or not the disassembler should generate the
/// IL stream bytes (in hexadecimal notation) as instruction comments.
/// /summary
/// value
/// see langword=true / if the IL stream bytes should be generated
/// as instruction comments; otherwise, see langword=false /. The
/// default is see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/BYTE/c flag.
/// /para
/// /remarks
[TaskAttribute(bytes)]
[BooleanValidator()]
public bool Bytes {
get { return _bytes; }
set { _bytes = value; }
}

/// summary
/// Instructs NAnt to rebuild the output file regardless of the file
/// timestamps.
/// /summary
/// value
/// see langword=true / if the output file should be rebuilt
/// regardless of its timestamps; otherwise see

[nant-dev] NAnt documentation

2004-07-05 Thread Giuseppe Greco
Hi all,

Actually, NAnt doucmentation is organized like this:

TaskName

Does that and that...

Parameters:
  +---+--+-+--+
  | Attribute | Type | Description | Required |
  +---+--+-+--+
  | debug | bool | bla bla...  | false|
  +---+--+-+--+
  | another   | int  | bla bla...  | true |
  +---+--+-+--+

Don't you think it would be nice to include also the
Value column?

  +---+--+-+-+--+
  | Attribute | Type | Description | Value   | Required |
  +---+--+-+-+--+
  | debug | bool | bla bla...  | true if ... | false|
  +---+--+-+-+--+
  | another   | int  | bla bla...  | and int that... | true |
  +---+--+-+-+--+

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] ILASM and ILDASM tasks

2004-07-03 Thread Giuseppe Greco
Hi all,

Attached to this email you'll find the latest
version of the ILASM task as well as a proposal
version of the ILDASM task.

Let me know,
j3d.



Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com
// NAnt - A .NET build tool
// Copyright (C) 2001-2002 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
//
// Giuseppe Greco ([EMAIL PROTECTED])

using System.IO;

using NAnt.Core;
using NAnt.Core.Attributes;
using NAnt.Core.Tasks;
using NAnt.Core.Types;
using NAnt.Core.Util;

namespace NAnt.DotNet.Tasks {
/// summary
/// Compiles ILASM programs.
/// /summary
/// example
///   paraCompiles chelloworld.il/c to chelloworld.exe/c./para
///   code
/// ![CDATA[
/// ilasm target=exe output=helloworld.exe debug=true
/// sources
/// include name=helloworld.il /
/// /sources
/// /ilasm
/// ]]
///   /code
/// /example
[TaskName(ilasm)]
[ProgramLocation(LocationType.FrameworkDir)]
public class IlasmTask : ExternalProgramBase {
#region Private Instance Fields
private bool _clock;
private bool _debug;
private bool _error;
private bool _forceRebuild;
private bool _listing;
private int _alignment;
private int _base;
private int _flags;
private int _subsystem;
private string _target;
private string _keySource;
private FileInfo _keyFile;
private FileInfo _outputFile;
private FileInfo _resourceFile;
private FileSet _sources;
private string _options;
#endregion Private Instance Fields

#region Public Instance Properties
/// summary
/// Specifies whether or not the compiler should measure and report
/// the compilation times.
/// /summary
/// value
/// see langword=true / if the compilation times should be
/// measured and reported; otherwise, see langword=false /. The
/// default is see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/CLOCK/c flag.
/// /para
/// /remarks
[TaskAttribute(clock)]
[BooleanValidator()]
public bool Clock {
get { return _clock; }
set { _clock = value; }
}

/// summary
/// Specifies whether or not the compiler should generate debug
/// information.
/// /summary
/// value
/// see langword=true / if debug information should be generated;
/// otherwise, see langword=false /. The default is
/// see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/DEBUG/c flag.
/// /para
/// /remarks
[TaskAttribute(debug)]
[BooleanValidator()]
public bool Debug {
get { return _debug; }
set { _debug = value; }
}

/// summary
/// Specifies whether or not the compiler should attempt to create a
/// PE file even if compilation errors have been reported.
/// /summary
/// value
/// see langword=true / if a PE file has to be created even if
/// compilation errors have been reported; otherwise,
/// see langword=false /. The default is see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/ERROR/c flag.
/// /para
/// /remarks
[TaskAttribute(error)]
[BooleanValidator()]
public bool Error {
get { return _error; }
set { _error = value; }
}

/// summary
/// Instructs NAnt to recompile the output file regardless of the file
/// timestamps.
/// /summary
/// value
/// see langword=true / if the output file should be recompiled
/// regardless of its timestamps; otherwise see langword=false /.
/// The default is see langword=false /.
/// /value
[TaskAttribute(rebuild)]
[BooleanValidator()]
public bool ForceRebuild

Re: [nant-dev] ILASM Task

2004-07-02 Thread Giuseppe Greco
Ian,

sorry... just to be precise I've removed
a 'using' statement that was not required.

Here's the very definitive source file.

j3d.

 Giuseppe Greco wrote:

Ach... I knew, in fact I've used writer.Write everywhere,
but not in the WriteOptions method because I've copied
the 3-lines 'foreach' statement from CompilerBase...

By the way, attached to this email you'll find the
definitive source file.



 thanks. I'll look at adding this to the code base shortly.

Do you think it would also be helpful to have the
ildasm task?



 Definately. Then you can do cool stuff like disassemble/merge extra
 code  and reassemble using ilasm.

 Ian

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers




 --
 Ian MacLean, Developer,
 ActiveState, a division of Sophos
 http://www.ActiveState.com




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com
// NAnt - A .NET build tool
// Copyright (C) 2001-2002 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
//
// Giuseppe Greco ([EMAIL PROTECTED])

using System.IO;

using NAnt.Core;
using NAnt.Core.Attributes;
using NAnt.Core.Tasks;
using NAnt.Core.Types;
using NAnt.Core.Util;

namespace NAnt.DotNet.Tasks {
/// summary
/// Compiles ILASM programs.
/// /summary
/// example
///   paraCompiles chelloworld.il/c to chelloworld.exe/c./para
///   code
/// ![CDATA[
/// ilasm target=exe output=helloworld.exe debug=true
/// sources
/// include name=helloworld.il /
/// /sources
/// /ilasm
/// ]]
///   /code
/// /example
[TaskName(ilasm)]
[ProgramLocation(LocationType.FrameworkDir)]
public class IlasmTask : ExternalProgramBase {
#region Private Instance Fields
private bool _clock;
private bool _debug;
private bool _error;
private bool _forceRebuild;
private bool _listing;
private bool _quiet;
private string _alignment;
private string _base;
private string _flags;
private string _target;
private string _subsystem;
private string _keySource;
private FileInfo _keyFile;
private FileInfo _outputFile;
private FileInfo _resourceFile;
private FileSet _sources;
private string _options;
#endregion Private Instance Fields

#region Public Instance Properties
/// summary
/// Specifies whether or not the compiler should measure and report
/// the compilation times.
/// /summary
/// value
/// see langword=true / if the compilation times should be
/// measured and reported; otherwise, see langword=false /. The
/// default is see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/CLOCK/c flag.
/// /para
/// /remarks
[TaskAttribute(clock)]
[BooleanValidator()]
public bool Clock {
get { return _clock; }
set { _clock = value; }
}

/// summary
/// Specifies whether or not the compiler should generate debug
/// information.
/// /summary
/// value
/// see langword=true / if debug information should be generated;
/// otherwise, see langword=false /. The default is
/// see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/DEBUG/c flag.
/// /para
/// /remarks
[TaskAttribute(debug)]
[BooleanValidator

Re: [nant-dev] ILASM Task

2004-07-02 Thread Giuseppe Greco


 - Original Message -
 From: Ian MacLean [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: Giuseppe Greco [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Friday, July 02, 2004 8:30 AM
 Subject: Re: [nant-dev] ILASM Task


 Gert Driesen wrote:

 Giuseppe Greco wrote:
 
 
 Ach... I knew, in fact I've used writer.Write everywhere,
 but not in the WriteOptions method because I've copied
 the 3-lines 'foreach' statement from CompilerBase...
 
 By the way, attached to this email you'll find the
 definitive source file.
 
 
 
 thanks. I'll look at adding this to the code base shortly.
 
 
 
 Will you be adding it to NAnt or NAntContrib ?  Guess we should discuss
 what
 procedure to follow when adding new tasks, or do decide on a
 task-by-task
 basis ?
 
 
 
 Whatever. Obviously it belongs in NAnt.DotNet.Tasks. Its a fairly
 straightforward command line app wrapper so theres not likely to be any
 issues putting it straight into core. I'm not convinced that we have to
 put everything in contrib first if it has an obvious fit in core - ie
 its a piece of previously missing functionality - I would put any other
 .net command line tools in this category. Others may have different
 opinions though.

 No, I also don't think we should first add tasks to NAntContrib as a rule,
 but then I think this is something that at least needs to be discussed on
 a
 task-by-task basis.

 Take, for example, this task : If you'd add the task as is to NAnt, and
 we'd
 release a new version right now, I'm sure we'd have to make some
 (breaking)
 changes to it afterwards...

 Now, A few remarks on the task itself :

 - if you want to allow the task to be used on Mono, you need to add a task
 section to the NAnt configuration file.
 - the Mono ilasm supports only a very limited commandline interface :

 Mono ILasm compiler
 ilasm [options] source-files
--aboutAbout the Mono ILasm compiler
--version  Print the version number of the Mono ILasm compiler
/output:file_name  Specifies output file.
/exe   Compile to executable.
/dll   Compile to library.
 Options can be of the form -option or /option

 We can cope with this in two ways : have the task check whether we're
 on
 Mono, and disregard some options if we are.  Or we could add some
 FrameworkConfigurable properties that indicate if a given option is
 supported by ildasm of a given framework.  This might be the cleanest
 solution.

 - I'd remove the quiet option, and always pass this option to ildasm,
 unless
 Verbose is true. Perhaps we could do the same with the debug option, but
 we'd need to have a way to set the logging level to Debug on a task level.
 I'll need to look into this a little further.
 - The following properties should be backed by an int : Alignment,  Base,
 Flags, Subsystem

I've defined them as string properties because they
are just command-line options... if I had defined them
as integers, I would have had to covert them to strings
in anyway...

j3d.


 Gert




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] ILASM Task

2004-07-02 Thread Giuseppe Greco
Okay guys,

I've made the changes you requested...

What's about the Mono stuff?
j3d.


 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: Ian MacLean [EMAIL PROTECTED]; Giuseppe Greco
 [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, July 02, 2004 8:58 AM
 Subject: Re: [nant-dev] ILASM Task



 
  - Original Message -
  From: Ian MacLean [EMAIL PROTECTED]
  To: Gert Driesen [EMAIL PROTECTED]
  Cc: Giuseppe Greco [EMAIL PROTECTED];
  [EMAIL PROTECTED]
  Sent: Friday, July 02, 2004 8:30 AM
  Subject: Re: [nant-dev] ILASM Task
 
 
  Gert Driesen wrote:
 
  Giuseppe Greco wrote:
  - The following properties should be backed by an int : Alignment,
 Base,
  Flags, Subsystem

 I've defined them as string properties because they
 are just command-line options... if I had defined them
 as integers, I would have had to covert them to strings
 in anyway...

 Yeah, but its about strong typing, which prevent mistakes by users. But
 unless the int value 0 does not have any meaning for these flags, it might
 perhaps be better to leave them as string, but assign an Int32Validator
 attribute to these properties.

 Gert


 ---
 This SF.Net email sponsored by Black Hat Briefings  Training.
 Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
 digital self defense, top technical experts, no vendor pitches,
 unmatched networking opportunities. Visit www.blackhat.com
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com
// NAnt - A .NET build tool
// Copyright (C) 2001-2002 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
//
// Giuseppe Greco ([EMAIL PROTECTED])

using System.IO;

using NAnt.Core;
using NAnt.Core.Attributes;
using NAnt.Core.Tasks;
using NAnt.Core.Types;
using NAnt.Core.Util;

namespace NAnt.DotNet.Tasks {
/// summary
/// Compiles ILASM programs.
/// /summary
/// example
///   paraCompiles chelloworld.il/c to chelloworld.exe/c./para
///   code
/// ![CDATA[
/// ilasm target=exe output=helloworld.exe debug=true
/// sources
/// include name=helloworld.il /
/// /sources
/// /ilasm
/// ]]
///   /code
/// /example
[TaskName(ilasm)]
[ProgramLocation(LocationType.FrameworkDir)]
public class IlasmTask : ExternalProgramBase {
#region Private Instance Fields
private bool _clock;
private bool _debug;
private bool _error;
private bool _forceRebuild;
private bool _listing;
private int _alignment;
private int _base;
private int _flags;
private int _subsystem;
private string _target;
private string _keySource;
private FileInfo _keyFile;
private FileInfo _outputFile;
private FileInfo _resourceFile;
private FileSet _sources;
private string _options;
#endregion Private Instance Fields

#region Public Instance Properties
/// summary
/// Specifies whether or not the compiler should measure and report
/// the compilation times.
/// /summary
/// value
/// see langword=true / if the compilation times should be
/// measured and reported; otherwise, see langword=false /. The
/// default is see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/CLOCK/c flag.
/// /para
/// /remarks
[TaskAttribute(clock)]
[BooleanValidator()]
public bool Clock {
get { return _clock; }
set { _clock = value; }
}

/// summary
/// Specifies whether or not the compiler should generate debug
/// information.
/// /summary
/// value
/// see langword=true / if debug information should be generated;
/// otherwise, see langword=false /. The default is
/// see langword=false

[nant-dev] ILDASM Task

2004-07-02 Thread Giuseppe Greco
Hi all,

Attached to this email you'll find the
implementation of the ildasm task. This
is just a proposal. Comments are welcome!

Bye,
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com
// NAnt - A .NET build tool
// Copyright (C) 2001-2002 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
//
// Giuseppe Greco ([EMAIL PROTECTED])

using System.IO;

using NAnt.Core;
using NAnt.Core.Attributes;
using NAnt.Core.Tasks;
using NAnt.Core.Types;
using NAnt.Core.Util;

namespace NAnt.DotNet.Tasks {
/// summary
/// Disassembles any portable executable (PE) file that contains
/// intermediate language (IL) code.
/// /summary
/// example
///   paraDisassembles chelloworld.exe/c to chelloworld.il/c./para
///   code
/// ![CDATA[
/// ildasm input=helloworld.exe output=helloworld.il /
/// ]]
///   /code
/// /example
[TaskName(ildasm)]
[ProgramLocation(LocationType.FrameworkDir)]
public class IldasmTask : ExternalProgramBase {
#region Private Instance Fields
private bool _all;
private bool _bytes;
private bool _forceRebuild;
private bool _header;
private bool _lineNumbers;
private bool _noIL;
private bool _publicOnly;
private bool _quoteAllNames;
private bool _rawExceptionHandling;
private bool _source;
private bool _tokens;
private bool _unicode;
private bool _utf8;
private string _item;
private string _visibility;
private FileInfo _inputFile;
private FileInfo _outputFile;
private string _options;
#endregion Private Instance Fields

#region Public Instance Properties
/// summary
/// Specifies whether or not the disassembler should combine the
/// c/HEADER/c, c/BYTE/c, and cTOKENS/c options.
/// /summary
/// value
/// see langword=true / if the disassembler should combine the
/// c/HEADER/c, c/BYTE/c, and cTOKENS/c options;
/// otherwise, see langword=false /. The default is
/// see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/ALL/c flag.
/// /para
/// /remarks
[TaskAttribute(all)]
[BooleanValidator()]
public bool All {
get { return _all; }
set { _all = value; }
}

/// summary
/// Specifies whether or not the disassembler should generate the
/// IL stream bytes (in hexadecimal notation) as instruction comments.
/// /summary
/// value
/// see langword=true / if the IL stream bytes should be generated
/// as instruction comments; otherwise, see langword=false /. The
/// default is see langword=false /.
/// /value
/// remarks
/// para
/// Corresponds to the c/BYTE/c flag.
/// /para
/// /remarks
[TaskAttribute(bytes)]
[BooleanValidator()]
public bool Bytes {
get { return _bytes; }
set { _bytes = value; }
}

/// summary
/// Instructs NAnt to rebuild the output file regardless of the file
/// timestamps.
/// /summary
/// value
/// see langword=true / if the output file should be rebuilt
/// regardless of its timestamps; otherwise see langword=false /.
/// The default is see langword=false /.
/// /value
[TaskAttribute(rebuild)]
[BooleanValidator()]
public bool ForceRebuild {
get { return _forceRebuild; }
set { _forceRebuild = value; }
}

/// summary
/// Specifies whether or not the disassembler should include PE header
/// information and runtime header information in the output.
/// /summary
/// value
/// see langword=true / if PE header information and runtime header
/// information should be included in the output; otherwise,
/// see langword=false /. The default is see langword=false /.
/// /value
/// remarks

[nant-dev] ILASM Task

2004-07-01 Thread Giuseppe Greco
OK guys,

Now the IlasmTask class inherits from ExternalProbramBase...
but I'm still unable to get the ilasm task working. I
always get the following error message:

Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il

The arguments list is OK (I've tried it manually and it does function)
and the file above exists.

Is there something else that I should know?

Thanks,
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] ILASM Task

2004-07-01 Thread Giuseppe Greco
Ian,

Here's what NAnt reports:

[ilasm] Starting 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ilasm.exe
  (/NOLOGO /EXE
 /OUTPUT=C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe
 C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il)'
   in 'C:\Home\Projects\temp\.net\ilasm\OddOrEven'

The command-line arguments are fine... I've tested them manually.

j3d.

 What does the generated commandline look like ? Just use nant -v to
 output it or take a look in the debugger.

 Ian


 Giuseppe Greco wrote:

OK guys,

Now the IlasmTask class inherits from ExternalProbramBase...
but I'm still unable to get the ilasm task working. I
always get the following error message:

Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il

The arguments list is OK (I've tried it manually and it does function)
and the file above exists.

Is there something else that I should know?

Thanks,
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers





 ---
 This SF.Net email sponsored by Black Hat Briefings  Training.
 Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
 digital self defense, top technical experts, no vendor pitches,
 unmatched networking opportunities. Visit www.blackhat.com
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] ILASM Task

2004-07-01 Thread Giuseppe Greco
Ian,

Here's the source file.

j3d.

 hmm - that commandline does seem ok. I just tested locally with a test
 .il file. I don't have any other ideas right now but if you want to send
 me the source I could take a quick look at it.


 Ian
 Giuseppe Greco wrote:

Ian,

Here's what NAnt reports:

[ilasm] Starting 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ilasm.exe
  (/NOLOGO /EXE
 /OUTPUT=C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe
 C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il)'
   in 'C:\Home\Projects\temp\.net\ilasm\OddOrEven'

The command-line arguments are fine... I've tested them manually.

j3d.



What does the generated commandline look like ? Just use nant -v to
output it or take a look in the debugger.

Ian


Giuseppe Greco wrote:



OK guys,

Now the IlasmTask class inherits from ExternalProbramBase...
but I'm still unable to get the ilasm task working. I
always get the following error message:

Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il

The arguments list is OK (I've tried it manually and it does function)
and the file above exists.

Is there something else that I should know?

Thanks,
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers





---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers






Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers




 --
 Ian MacLean, Developer,
 ActiveState, a division of Sophos
 http://www.ActiveState.com




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com
// NAnt - A .NET build tool
// Copyright (C) 2001-2002 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
//
// Giuseppe Greco ([EMAIL PROTECTED])

using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;

using NAnt.Core;
using NAnt.Core.Attributes;
using NAnt.Core.Tasks;
using NAnt.Core.Types;
using NAnt.Core.Util;

namespace NAnt.DotNet.Tasks {
/// summary
/// Compiles ILASM programs.
/// /summary
/// example
///   paraCompiles chelloworld.il/c to chelloworld.exe/c./para
///   code
/// ![CDATA[
/// ilasm target=exe output=helloworld.exe debug=true
/// sources
/// include name=helloworld.il /
/// /sources
/// /ilasm
/// ]]
///   /code
/// /example
[TaskName(ilasm)]
[ProgramLocation(LocationType.FrameworkDir)]
public class IlasmTask : ExternalProgramBase {
#region Private Instance Fields
private bool _listing;
private bool _quiet;
private

Re: [nant-dev] ILASM Task

2004-07-01 Thread Giuseppe Greco
Ach... I knew, in fact I've used writer.Write everywhere,
but not in the WriteOptions method because I've copied
the 3-lines 'foreach' statement from CompilerBase...

By the way, attached to this email you'll find the
definitive source file.

Do you think it would also be helpful to have the
ildasm task?

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] ILASM task

2004-06-30 Thread Giuseppe Greco
Hi all,

I've just written the ILASM task, but it does not work
(of course, I'm doing something wrong).

Giving the following build file:

project name=OddOrEven default=build
  target name=build
ilasm target=exe output=OddOrEven.exe
  sources basedir=.
include name=MainClass.il/
  /sources
/ilasm
  /target
/project

... the output is:

[ilasm] Compiling 3 files to
'C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe'.

Microsoft (R) .NET Framework IL Assembler.  Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Assembling '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp' ,
no listing file, to EXE --
  '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE'

Could not open @C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp

* FAILURE *

It looks like the CompilerBase class is not able to find
the source files. Attached to this email you'll find the
IlasmTask.cs file... What am I missing?

Thanks,
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com
// NAnt - A .NET build tool
// Copyright (C) 2001-2002 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
//
// Giuseppe Greco ([EMAIL PROTECTED])

using System.IO;
using System.Text.RegularExpressions;

using NAnt.Core;
using NAnt.Core.Attributes;
using NAnt.Core.Types;
using NAnt.Core.Util;

namespace NAnt.DotNet.Tasks {
/// summary
/// Compiles ILASM programs.
/// /summary
/// example
///   paraCompiles chelloworld.il/c to chelloworld.exe/c./para
///   code
/// ![CDATA[
/// ilasm target=exe output=helloworld.exe debug=true
/// sources
/// include name=helloworld.il /
/// /sources
/// /ilasm
/// ]]
///   /code
/// /example
[TaskName(ilasm)]
[ProgramLocation(LocationType.FrameworkDir)]
public class IlasmTask : CompilerBase {
#region Private Instance Fields

private bool _listing;
private bool _noLogo;
private bool _quiet;
private bool _clock;
// private FileInfo _keyFile;
// private string _keySource;
private string _subsystem;
private string _flags;
private string _alignment;
private string _base;
private bool _error;

#endregion Private Instance Fields

#region Private Static Fields

private static Regex _classNameRegex =
  new 
Regex(@^((?comment/\*.*?(\*/|$))|[\s\.\{]+|class\s+(?class\w+)|(?keyword\w+))*);
private static Regex _namespaceRegex =
  new 
Regex(@^((?comment/\*.*?(\*/|$))|[\s\.\{]+|namespace\s+(?namespace(\w+(\.\w+)*)+)|(?keyword\w+))*);

#endregion Private Static Fields

#region Public Instance Properties

/// summary
/// Specifies whether the compiler should type a formatted listing of
/// the compilation result. The default is see langword=false /.
/// /summary
/// remarks
/// para
/// Corresponds to the c/LISTING/c flag.
/// /para
/// /remarks
[TaskAttribute(listing)]
[BooleanValidator()]
public bool Listing {
get { return _listing; }
set { _listing = value; }
}

/// summary
/// Specifies whether the compiler should suppress logo and copyright
/// statements. The default is see langword=false /.
/// /summary
/// remarks
/// para
/// Corresponds to the c/NOLOGO/c flag.
/// /para
/// /remarks
[TaskAttribute(nologo)]
[BooleanValidator()]
public bool NoLogo {
get { return _noLogo; }
set { _noLogo = value; }
}

/// summary
/// Specifies whether the compiler should suppress the compilation
/// progress report. The default is see langword=false /.
/// /summary
/// remarks
/// para
/// Corresponds to the c/QUIET/c flag.
/// /para
/// /remarks
[TaskAttribute(quiet)]
[BooleanValidator

Re: [nant-dev] ILASM task

2004-06-30 Thread Giuseppe Greco
Don't you think that if we inherit from ExternalProgramBase
we'd have too many redundancies?

j3d.

 I don't think it makes much sense to have this task inherit from
 CompilerBase anyway, no ?

 - Original Message -
 From: Ian MacLean [EMAIL PROTECTED]
 To: Giuseppe Greco [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, June 30, 2004 11:35 AM
 Subject: Re: [nant-dev] ILASM task


 Guis,
 I haven't looked at your source in detail yet but I think the problem is
 that ilasm.exe doesn't support the use of a response file. The core
 compilers : csc, vbc etc all take an @ argument:

 @file Read response file for more options

 And this is what CompilerBase uses to pass the commandline to the
 compiler tools. ilasm.exe takes no such paramater and thinks that
 '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' is the path to an
 il file. You may have to derive from ExternalprogramBase rather than
 CompilerBase although it will mean duplicating some of the functionality
 in CompilerBase.

 Ian


 Giuseppe Greco wrote:

 Hi all,
 
 I've just written the ILASM task, but it does not work
 (of course, I'm doing something wrong).
 
 Giving the following build file:
 
 project name=OddOrEven default=build
   target name=build
 ilasm target=exe output=OddOrEven.exe
   sources basedir=.
 include name=MainClass.il/
   /sources
 /ilasm
   /target
 /project
 
 ... the output is:
 
 [ilasm] Compiling 3 files to
 'C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe'.
 
 Microsoft (R) .NET Framework IL Assembler.  Version
 1.1.4322.573
 Copyright (C) Microsoft Corporation 1998-2002. All rights
 reserved.
 
 Assembling '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp'
 ,
 no listing file, to EXE --
   '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE'
 
 Could not open
 @C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp
 
 * FAILURE *
 
 It looks like the CompilerBase class is not able to find
 the source files. Attached to this email you'll find the
 IlasmTask.cs file... What am I missing?
 
 Thanks,
 j3d.
 
 
 Giuseppe Greco
 
 ::agamura::
 
 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 
 


 --
 Ian MacLean, Developer,
 ActiveState, a division of Sophos
 http://www.ActiveState.com



 ---
 This SF.Net email sponsored by Black Hat Briefings  Training.
 Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
 digital self defense, top technical experts, no vendor pitches,
 unmatched networking opportunities. Visit www.blackhat.com
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers



 ---
 This SF.Net email sponsored by Black Hat Briefings  Training.
 Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
 digital self defense, top technical experts, no vendor pitches,
 unmatched networking opportunities. Visit www.blackhat.com
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] ILASM Task

2004-06-30 Thread Giuseppe Greco
Hi guys,

I've given a lock at the CompilerBase and
ExternalProgramBase classes... and I think
it would be better to modify the CompilerBase
class instead of inheriting from ExternalProgramBase...

What's your opinion?
j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] ILASM Task

2004-06-23 Thread Giuseppe Greco
Hi all,

are there any plans to implement the
ILASM task?

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] ILASM Task

2004-06-23 Thread Giuseppe Greco
Not immediately because I'm currently under pressure...
I'll give a look at it as soon as possible.

j3d.

 Its a good idea. Do you feel like taking a stab at it ?

 Ian

 Giuseppe Greco wrote:

Hi all,

are there any plans to implement the
ILASM task?

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers




 --
 Ian MacLean, Developer,
 ActiveState, a division of Sophos
 http://www.ActiveState.com



 ---
 This SF.Net email sponsored by Black Hat Briefings  Training.
 Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
 digital self defense, top technical experts, no vendor pitches,
 unmatched networking opportunities. Visit www.blackhat.com
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] al task on Linux

2004-05-26 Thread Giuseppe Greco
Hi all,

the al task on Linux does not generate satellite
assemblies at all... here below is the debug info:

build:
 
 [echo] Build Directory is ../../build/gekkota-0.2-debug
   [al] Output file
'/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekkota.resources.dll'
 does not exist, recompiling.
   [al] Compiling 1 files to
'/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekkota.resources.dll'.
   [al] Contents of /tmp/tmp3930dacc.
/target:lib
/out:/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekkota.resources.dll
/culture:de-DE
/nologo
/embed:/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekkota.de-DE.resources
 
   [al] Starting '/usr/local/bin/mono (/usr/local/bin/al.exe
@/tmp/tmp3930dacc)' in '/home/genius/projects/gekkota/src/Gekkota'
ALINK: error A1017: No target filename was specified
 
BUILD FAILED
 
/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(100,7):
External Program Failed: /usr/local/bin/al.exe (return code was 1):
NAnt.Core.BuildException:
/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(100,7):
External Program Failed: /usr/local/bin/al.exe (return code was 1)
in 0x00523 NAnt.Core.Tasks.ExternalProgramBase:ExecuteTask ()

Any idea?
j3d.



-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] al task on Linux

2004-05-26 Thread Giuseppe Greco
Gert,

the following does work:

al /t:lib /embed:myApp.en-US.resources /c:en-US
   /out:myApp.resources.dll

j3d.

On Wed, 2004-05-26 at 16:50, Gert Driesen wrote:
 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 4:31 PM
 Subject: [nant-dev] al task on Linux
 
 
  Hi all,
 
  the al task on Linux does not generate satellite
  assemblies at all... here below is the debug info:
 
  build:
 
   [echo] Build Directory is ../../build/gekkota-0.2-debug
 [al] Output file
 
 '/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekkota.res
 ources.dll' does not exist, recompiling.
 [al] Compiling 1 files to
 
 '/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekkota.res
 ources.dll'.
 [al] Contents of /tmp/tmp3930dacc.
  /target:lib
 
 /out:/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekkot
 a.resources.dll
  /culture:de-DE
  /nologo
 
 /embed:/home/genius/projects/gekkota/build/gekkota-0.2-debug/lib/de-DE/Gekk
 ota.de-DE.resources
 
 [al] Starting '/usr/local/bin/mono (/usr/local/bin/al.exe
  @/tmp/tmp3930dacc)' in '/home/genius/projects/gekkota/src/Gekkota'
  ALINK: error A1017: No target filename was specified
 
  BUILD FAILED
 
  /home/genius/projects/gekkota/src/Gekkota/Gekkota.build(100,7):
  External Program Failed: /usr/local/bin/al.exe (return code was 1):
  NAnt.Core.BuildException:
  /home/genius/projects/gekkota/src/Gekkota/Gekkota.build(100,7):
  External Program Failed: /usr/local/bin/al.exe (return code was 1)
  in 0x00523 NAnt.Core.Tasks.ExternalProgramBase:ExecuteTask ()
 
 This might be an issue a commandline interface compatibility issue in the
 Mono AL.  Can you check whether the mono AL supports the command line
 options we used here, meaning :
 
 /target
 /culture
 /nologo
 /embed
 /out (I guess the issue is with this one)
 
 Gert
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] al task on Linux

2004-05-26 Thread Giuseppe Greco
On Wed, 2004-05-26 at 17:04, Gert Driesen wrote:
 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: NAnt Developers [EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 4:58 PM
 Subject: Re: [nant-dev] al task on Linux
 
 
  Gert,
 
  the following does work:
 
  al /t:lib /embed:myApp.en-US.resources /c:en-US
 /out:myApp.resources.dll
 
 
 al /target:lib /embed:myApp.en-US.resources /culture:en-US
 /out:myApp.resources.dll
 
 and this does not ?

Yes, it does work...
j3d.

 
 Gert
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] get-assembly-direcotry() function

2004-05-21 Thread Giuseppe Greco
May be the problem is related to the fact that
I've installed the mono stuff under /usr/local
instead of /usr...

Usually I install unstable or under development
software in the /usr/local directory...

j3d.

On Fri, 2004-05-21 at 07:36, Clayton Harbour wrote:
 Hi,
 
 I get /usr/lib/mono/1.0 on my Fedora Core 1 install with NAnt rebuilt this morning.  
 There was some oddness with the install as the config file contained a reference to 
 a tasks folder but the task binaries were not built in a task folder.  Maybe I 
 caught something in mid-checkin?  Anyway, it seems to work on this install.
 
 
 Cheers,
 
 
 Clayton
 
 
 -Original Message-
 From: Gert Driesen [mailto:[EMAIL PROTECTED]
 Sent: Thu 5/20/2004 6:39 PM
 To:   Giuseppe Greco
 Cc:   Jaroslaw Kowalski; NAnt Developers
 Subject:  Re: [nant-dev] get-assembly-direcotry() function
 
 
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: Jaroslaw Kowalski [EMAIL PROTECTED]; NAnt Developers
 [EMAIL PROTECTED]
 Sent: Thursday, May 20, 2004 11:23 PM
 Subject: Re: [nant-dev] get-assembly-direcotry() function
 
 
   Giuseppe, can you indeed confirm that get-assembly-directory() just
 returned
   1.0 ?
 
  Yes, I do (of course, on Linux).
  I've inserted the following task in one of my project files:
 
  echo
message=${framework::get-assembly-directory(target.framework)}
  /
 
  ... and the result is 1.0.
 
 Can anyone else reproduce this issue ?  (I still have to reload my gentoo
 image ... I installed the latest longhorn on my linux box .. shame on me ...
 blush :))
 
 Gert
 
 
 
 ---
 This SF.Net email is sponsored by: Oracle 10g
 Get certified on the hottest thing ever to hit the market... Oracle 10g. 
 Take an Oracle 10g class now, and we'll give you the exam FREE.
 http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] ... back to my problem...

2004-05-20 Thread Giuseppe Greco
Hi all,

I've just checked out the latest version of NAnt from
CVS and I've been able to build and install it
successfully.

But!? it doesn't work. I always get the following
error messages:

** (/usr/local/nant/bin/NAnt.exe:28331): WARNING **: Could not find
assembly log4net, references from /usr/local/nant/bin/NAnt.Core.dll
(assemblyref_index=2)
 Major/Minor: 1,2
 Build:   0,30714
 Token:   (null)
 
 
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
in (unmanaged) /usr/local/lib/libmono.so.0(mono_assembly_open+0xda)
[0x453f76]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x4472df]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x447402]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x453c3f]
in (unmanaged) /usr/local/lib/libmono.so.0(mono_assembly_load+0x23)
[0x4545d7]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x428278]
in 0x00045 System.Type:GetType (string)
in 0x00021 System.Configuration.ConfigurationData:CreateNewHandler
(string,System.Configuration.SectionData)
in 0x0026c System.Configuration.ConfigurationData:GetHandler (string)
in 0x00031 System.Configuration.ConfigurationData:GetConfigInternal
(string)
in 0x000bb System.Configuration.ConfigurationData:GetConfig (string)
in 0x00024 System.Configuration.DefaultConfig:GetConfig (string)
in 0x00074 System.Configuration.ConfigurationSettings:GetConfig
(string)
in 0x00032 NAnt.Console.ConsoleStub:get_FrameworkVersion ()
in 0x000c7 NAnt.Console.ConsoleStub:Main (string[])

Do you guys think this is still an issue related to
mcs/class/corlib/System/AppDomain.cs?

I'm running the mono package dated 18-05-2004 since it is the only
one that actually works; this morning I've tried to check out the
latest version from CVS, but it doesn't compile. I'll try again
later...

Any info is appreciated.

Thanks,
j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] ... back to my problem...

2004-05-20 Thread Giuseppe Greco
Hi all,

I've just checked out the latest version of NAnt from
CVS and I've been able to build and install it
successfully.

But!? it doesn't work. I always get the following
error messages:

** (/usr/local/nant/bin/NAnt.exe:28331): WARNING **: Could not find
assembly log4net, references from /usr/local/nant/bin/NAnt.Core.dll
(assemblyref_index=2)
 Major/Minor: 1,2
 Build:   0,30714
 Token:   (null)
 
 
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
in (unmanaged) /usr/local/lib/libmono.so.0(mono_assembly_open+0xda)
[0x453f76]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x4472df]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x447402]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x453c3f]
in (unmanaged) /usr/local/lib/libmono.so.0(mono_assembly_load+0x23)
[0x4545d7]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x428278]
in 0x00045 System.Type:GetType (string)
in 0x00021 System.Configuration.ConfigurationData:CreateNewHandler
(string,System.Configuration.SectionData)
in 0x0026c System.Configuration.ConfigurationData:GetHandler (string)
in 0x00031 System.Configuration.ConfigurationData:GetConfigInternal
(string)
in 0x000bb System.Configuration.ConfigurationData:GetConfig (string)
in 0x00024 System.Configuration.DefaultConfig:GetConfig (string)
in 0x00074 System.Configuration.ConfigurationSettings:GetConfig
(string)
in 0x00032 NAnt.Console.ConsoleStub:get_FrameworkVersion ()
in 0x000c7 NAnt.Console.ConsoleStub:Main (string[])

Do you guys think this is still an issue related to
mcs/class/corlib/System/AppDomain.cs?

I'm running the mono package dated 18-05-2004 since it is the only
one that actually works; this morning I've tried to check out the
latest version from CVS, but it doesn't compile. I'll try again
later...

Any info is appreciated.

Thanks,
j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] get-assembly-direcotry() function

2004-05-20 Thread Giuseppe Greco
Hi all,

could you tell me why the following task always returns
1.0 instead of, for example, /usr/lib or /usr/lib/mono/1.0?

echo
  message=${framework::get-assembly-directory(target.framework)}
/

Thanks,
j3d. 
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] get-assembly-direcotry() function

2004-05-20 Thread Giuseppe Greco
On Thu, 2004-05-20 at 21:55, Gert Driesen wrote:
 - Original Message - 
 From: Jaroslaw Kowalski [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]; Giuseppe Greco
 [EMAIL PROTECTED]; NAnt Developers
 [EMAIL PROTECTED]
 Sent: Thursday, May 20, 2004 9:31 PM
 Subject: Re: [nant-dev] get-assembly-direcotry() function
 
 
  ;-) sorry
 
 I haven't said sorry for far more worse things ;-)
 
 Giuseppe, can you indeed confirm that get-assembly-directory() just returned
 1.0 ?

Yes, I do (of course, on Linux).
I've inserted the following task in one of my project files:

echo
  message=${framework::get-assembly-directory(target.framework)}
/

... and the result is 1.0.

j3d.

 
 Gert
 
 
 
 ---
 This SF.Net email is sponsored by: Oracle 10g
 Get certified on the hottest thing ever to hit the market... Oracle 10g. 
 Take an Oracle 10g class now, and we'll give you the exam FREE.
 http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] NAnt/Mono

2004-05-16 Thread Giuseppe Greco
Hi guys,

...I've checked out and installed the latest version of
mono from CVS, and I always get the same error message as
Jarek when trying to build NAnt:

The current runtime framework 'mono-1.0' is not correctly configured in
the NAnt configuration file.
Unable to locate 'mono' module using pkg-config. Download the Mono
development packages from http://www.go-mono.com/downloads.

On my system the GAC is correctly located at /usr/local/lib/mono/gac...
Any idea?

Thanks,
j3d.


On Tue, 2004-05-11 at 08:51, Jaroslaw Kowalski wrote:
 Unfortunately I get this:
 
 =
 NAnt 0.85 (Build 0.85.1592.0; mono-1.0.unix; nightly; 5/11/2004)
 Copyright (C) 2001-2004 Gerry Shaw
 NAnt Team
 
 BUILD FAILED
 
 The current runtime framework 'mono-1.0' is not correctly configured in the
 NAnt configuration file.
 The 'System.dll' assembly does not exist in framework assembly directory
 '/opt/mono/lib'.
 
 For more information regarding the cause of the build failure, run the build
 again in debug mode.
 =
 
 On my system System.dll is in /opt/mono/lib/mono/1.0/.
 
 After I corrected this in the config file I got another error:
 
   [csc] Compiling 18 files to
 '/home/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/NAnt.DotNetTasks.dl
 l'.
 
 ** (/opt/mono/bin/mcs.exe:8665): WARNING **: Could
 not find assembly log4net, references from
 /home/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/NAnt.Core.dll
 (assemblyref_index=2)
  Major/Minor: 1,2
  Build:   0,30714
  Token:   (null)
 
 
 Unhandled Exception: System.NullReferenceException:
 A null value was found where an object instance was required.
 in (unmanaged)
 /opt/mono/lib/libmono.so.0(mono_assembly_open+0xda) [0x8f68d2]
 in (unmanaged) /opt/mono/lib/libmono.so.0 [0x8e9e53]
 in 0x000d1 Mono.CSharp.Driver:LoadAssembly
 (string,bool)
 in 0x0009f Mono.CSharp.Driver:LoadReferences ()
 in 0x006ac Mono.CSharp.Driver:MainDriver
 (string[])
 in 0x00012 Mono.CSharp.Driver:Main (string[])
 
 A workaround is to:
 
 $ cp bin/lib/mono/1.0/*.dll build/mono-1.0.unix/nant-0.85-debug/bin/
 
 and re-run make. This fixed all errors.
 
 Gert, make sure you have a clean build of mono. I recommend having a
 separate /opt - style prefix for it so that you can easily find old dlls.
 
 Since lib/mono/1.0 is the correct path now that mono has GAC, I've
 committed a fix to CVS.
 
 Jarke
 
 - Original Message - 
 From: Gert Driesen [EMAIL PROTECTED]
 To: Nant-Developers (E-Mail) [EMAIL PROTECTED]
 Sent: Tuesday, May 11, 2004 8:31 AM
 Subject: [nant-dev] NAnt/Mono
 
 
  Hi,
 
  Just to let you know that NAnt (cvs) should now work on Mono/Linux out of
  the box (without tweaking any config files) :
 
  $ export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot/nant
  $ cvs -z3 co nant
  $ cd nant
  $ make
 
  Note: you still might need this workaround for a Mono issue :
  http://nant.sourceforge.net/faq.html#building-mono-1
 
  Gert
 
 
 
  ---
  This SF.Net email is sponsored by Sleepycat Software
  Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to
 deliver
  higher performing products faster, at low TCO.
  http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
  ___
  nant-developers mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
 
 
 ---
 This SF.Net email is sponsored by Sleepycat Software
 Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to deliver
 higher performing products faster, at low TCO.
 http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] NAnt/Mono

2004-05-16 Thread Giuseppe Greco
Gert,

I get nothing, so I've exported the PKG_CONFIG environment
variable (export PKG_CONFIG=/usr/local/lib/pkgconfig)...
and now I get the following error messages:

** (/usr/local/lib/mono/1.0/mcs.exe:13969): WARNING **:
Could not load class from token 0x01000136 in
/usr/local/lib/mono/1.0/System.Web.dll
 
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
in (unmanaged) /usr/local/lib/libmono.so.0 [0x76b719]
in (unmanaged) /usr/local/lib/libmono.so.0(mono_class_init+0x46d)
[0x76cccd]
in (unmanaged) /usr/local/lib/libmono.so.0(mono_type_get_object+0x9f)
[0x722347]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x732f6f]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x733013]
in 0x00017 System.Reflection.Assembly:GetExportedTypes ()
in 0x000ae Mono.CSharp.TypeManager:LoadAllImportedTypes ()
in 0x00c1f Mono.CSharp.Driver:MainDriver (string[])
in 0x00012 Mono.CSharp.Driver:Main (string[])
 
 
** ERROR **: file mini-exceptions.c: line 261 (mono_handle_exception):
assertion failed: (jit_tls-end_of_stack)

Note that I've built the mono stuff with previews
(--with-preview=yes).

It looks like mono has still problems...
Do you know something more?

j3d.

On Sun, 2004-05-16 at 14:10, Gert Driesen wrote:
 Giuseppe,
 
 What do you get when you execute :
 
 $ pkg-config --variable=prefix mono
 
 Gert
 
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Jaroslaw Kowalski [EMAIL PROTECTED]
 Cc: Gert Driesen [EMAIL PROTECTED]; Nant-Developers (E-Mail)
 [EMAIL PROTECTED]
 Sent: Sunday, May 16, 2004 2:08 PM
 Subject: Re: [nant-dev] NAnt/Mono
 
 
  Hi guys,
 
  ...I've checked out and installed the latest version of
  mono from CVS, and I always get the same error message as
  Jarek when trying to build NAnt:
 
  The current runtime framework 'mono-1.0' is not correctly configured in
  the NAnt configuration file.
  Unable to locate 'mono' module using pkg-config. Download the Mono
  development packages from http://www.go-mono.com/downloads.
 
  On my system the GAC is correctly located at /usr/local/lib/mono/gac...
  Any idea?
 
  Thanks,
  j3d.
 
 
  On Tue, 2004-05-11 at 08:51, Jaroslaw Kowalski wrote:
   Unfortunately I get this:
  
   =
   NAnt 0.85 (Build 0.85.1592.0; mono-1.0.unix; nightly; 5/11/2004)
   Copyright (C) 2001-2004 Gerry Shaw
   NAnt Team
  
   BUILD FAILED
  
   The current runtime framework 'mono-1.0' is not correctly configured in
 the
   NAnt configuration file.
   The 'System.dll' assembly does not exist in framework assembly
 directory
   '/opt/mono/lib'.
  
   For more information regarding the cause of the build failure, run the
 build
   again in debug mode.
   =
  
   On my system System.dll is in /opt/mono/lib/mono/1.0/.
  
   After I corrected this in the config file I got another error:
  
 [csc] Compiling 18 files to
  
 '/home/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/NAnt.DotNetTasks.dl
   l'.
  
   ** (/opt/mono/bin/mcs.exe:8665): WARNING **:
 Could
   not find assembly log4net, references from
   /home/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/NAnt.Core.dll
   (assemblyref_index=2)
Major/Minor: 1,2
Build:   0,30714
Token:   (null)
  
  
   Unhandled Exception:
 System.NullReferenceException:
   A null value was found where an object instance was required.
   in (unmanaged)
   /opt/mono/lib/libmono.so.0(mono_assembly_open+0xda) [0x8f68d2]
   in (unmanaged) /opt/mono/lib/libmono.so.0
 [0x8e9e53]
   in 0x000d1 Mono.CSharp.Driver:LoadAssembly
   (string,bool)
   in 0x0009f Mono.CSharp.Driver:LoadReferences
 ()
   in 0x006ac Mono.CSharp.Driver:MainDriver
   (string[])
   in 0x00012 Mono.CSharp.Driver:Main (string[])
  
   A workaround is to:
  
   $ cp bin/lib/mono/1.0/*.dll build/mono-1.0.unix/nant-0.85-debug/bin/
  
   and re-run make. This fixed all errors.
  
   Gert, make sure you have a clean build of mono. I recommend having a
   separate /opt - style prefix for it so that you can easily find old
 dlls.
  
   Since lib/mono/1.0 is the correct path now that mono has GAC, I've
   committed a fix to CVS.
  
   Jarke
  
   - Original Message - 
   From: Gert Driesen [EMAIL PROTECTED]
   To: Nant-Developers (E-Mail) [EMAIL PROTECTED]
   Sent: Tuesday, May 11, 2004 8:31 AM
   Subject: [nant-dev] NAnt/Mono
  
  
Hi,
   
Just to let you know that NAnt (cvs) should now work on Mono/Linux out
 of
the box (without tweaking any config files) :
   
$ export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot/nant
$ cvs -z3 co nant
$ cd nant
$ make
   
Note: you still might need this workaround for a Mono issue :
http

Re: [nant-dev] NAnt/Mono

2004-05-16 Thread Giuseppe Greco
On Sun, 2004-05-16 at 15:34, Gert Driesen wrote:
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: Jaroslaw Kowalski [EMAIL PROTECTED]; Nant-Developers (E-Mail)
 [EMAIL PROTECTED]
 Sent: Sunday, May 16, 2004 2:27 PM
 Subject: Re: [nant-dev] NAnt/Mono
 
 
  Gert,
 
  I get nothing,
 
 hmm, did you build Mono from cvs ?

Yes, I did.

 
 what do you get when executing this (before exporting PKG_CONFIG) :
 
 $ pkg-config --print-errors --variable=prefix mono

I get the following message:

Package mono was not found in the pkg-config search path.
Perhaps you should add the directory containing `mono.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mono' found

... that's why I defined the environment variable
PKG_CONFIG_PATH... I've the same problem with gtk-sharp,
but by defining PKG_CONFIG_PATH everything goes well
(that's not the case with NAnt).

j3d.

 
  so I've exported the PKG_CONFIG environment
  variable (export PKG_CONFIG=/usr/local/lib/pkgconfig)...
  and now I get the following error messages:
 
  ** (/usr/local/lib/mono/1.0/mcs.exe:13969): WARNING **:
  Could not load class from token 0x01000136 in
  /usr/local/lib/mono/1.0/System.Web.dll
 
  Unhandled Exception: System.NullReferenceException: A null value was
  found where an object instance was required.
  in (unmanaged) /usr/local/lib/libmono.so.0 [0x76b719]
  in (unmanaged) /usr/local/lib/libmono.so.0(mono_class_init+0x46d)
  [0x76cccd]
  in (unmanaged) /usr/local/lib/libmono.so.0(mono_type_get_object+0x9f)
  [0x722347]
  in (unmanaged) /usr/local/lib/libmono.so.0 [0x732f6f]
  in (unmanaged) /usr/local/lib/libmono.so.0 [0x733013]
  in 0x00017 System.Reflection.Assembly:GetExportedTypes ()
  in 0x000ae Mono.CSharp.TypeManager:LoadAllImportedTypes ()
  in 0x00c1f Mono.CSharp.Driver:MainDriver (string[])
  in 0x00012 Mono.CSharp.Driver:Main (string[])
 
 
  ** ERROR **: file mini-exceptions.c: line 261 (mono_handle_exception):
  assertion failed: (jit_tls-end_of_stack)
 
  Note that I've built the mono stuff with previews
  (--with-preview=yes).
 
 Not sure what this does, but if you can reproduce this issue (even without
 using NAnt) I'd consider posting a message on one of the mono lists ...
 
 Gert
 
 
 
 ---
 This SF.Net email is sponsored by: SourceForge.net Broadband
 Sign-up now for SourceForge Broadband and get the fastest
 6.0/768 connection for only $19.95/mo for the first 3 months!
 http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] al task on Linux

2004-04-24 Thread Giuseppe Greco
Hi all,

I'm trying to create a satellite assembly with a task
like this:

  al
target=lib
output=${build.dir}/${culture}/${assembly}.resources.dll
culture=${culture}
sources basedir=${build.dir}/${culture}
  includes name=*.resources /
/sources
  /al

... but I always get the following error message:

  ALINK: error A1017: No target filename was specified.

Note that I'm able to create satellite assemblies manually:

  al /t:lib /embed:myApp.en-US.resources /c:en-US
/out:myApp.resources.dll

I've also tried to check out the latest version from CVS to
see whether or not it works, but I'm not able to build it:

  src/NAnt.DotNet/Tasks/NDocTask.cs(201) error CS0117:
`NDoc.Core.Project' does not contain a definition for
  `AppendProbePath'

Any idea?
j3d.
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] al task on Linux

2004-04-24 Thread Giuseppe Greco
On Sat, 2004-04-24 at 20:33, Gert Driesen wrote:
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Saturday, April 24, 2004 8:25 PM
 Subject: [nant-dev] al task on Linux
 
 
  Hi all,
  
  I'm trying to create a satellite assembly with a task
  like this:
  
al
  target=lib
  output=${build.dir}/${culture}/${assembly}.resources.dll
  culture=${culture}
  sources basedir=${build.dir}/${culture}
includes name=*.resources /
  /sources
/al
  
  ... but I always get the following error message:
  
ALINK: error A1017: No target filename was specified.
  
  Note that I'm able to create satellite assemblies manually:
  
al /t:lib /embed:myApp.en-US.resources /c:en-US
  /out:myApp.resources.dll
  
 
 I'll look into this tomorrow

Thanks.

 
 
  I've also tried to check out the latest version from CVS to
  see whether or not it works, but I'm not able to build it:
  
src/NAnt.DotNet/Tasks/NDocTask.cs(201) error CS0117:
  `NDoc.Core.Project' does not contain a definition for
`AppendProbePath'
 
 I did restructure the binaries in cvs, did you do a clean checkout ?

Yes, I did.

 
 I'll look into this soon anyway ...
 
 Gert
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Re: [MonoDevelop] #D coorporation

2004-03-19 Thread Giuseppe Greco
On Fri, 2004-03-19 at 19:26, John Luke wrote:
 On Fri, 2004-03-19 at 19:14 +0100, Giuseppe Greco wrote:
 
  I do not agree!
  
  Just download the following sample application and
  try to build it with the latest version of nant:
  
  http://developer.agamura.com/resources/thermota-0.6.src.tar.gz
  
  We develop our software on Linux, and we use NAnt to build
  it. Of course, at the beginning there were some small problems,
  but now I can assure you that NAnt is quite mature.
  
 
 I guess we will have to agree to disagree here:
 1. Nant has greatly improved recently, and I have used it myself on
 linux for a long time.
 2. Your sample is only managed code.

Yes, that's true... even if you can invoke the
C compiler with the exec task. I'm honest... we
used to compile C code with make/automake, but we
tried, for example, to build our LaTeX docs with
NAnt instead of make, and it works fine.

By the way, I understand you viewpoint.

 3. does nant support building C? 

Just ask it to the NAnt community: Ian, Gert, Jarek, is there any
plan to build C support in NAnt?

 4. There is no one build system that is best for everything
 5. It is not really about nant being immature, more about not solving
 all the same problems as the auto* tools yet
 6. I just tried it and it failed, which means I have to re-download nant
 and update it, see if it works, maybe edit the framework settings, then
 retry, so you see it is not as simple as you think
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] NAnt.build

2004-03-12 Thread Giuseppe Greco
Ian, Gert,

I think you should modify the build.number property
in NAnt.build like this in order to avoid negative
build numbers:

property name=build.number
  value=${math::abs(math::floor(timespan::get-total-days
  (datetime::now() - convert::to-datetime('01/01/2000'}
  dynamic=true /

j3d.
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] CVS vs. SVN

2004-03-06 Thread Giuseppe Greco
Hi all,

What's about SVN? NAnt just supports CVS,
but CVS is leaving the game, and the
migration process to SVN has already
started...

We are also porting all our projects to
SVN.

Another point related to CVS/SVN: I think
NAnt should skip the CVS/.svn directories.
Actually, one has to manually exclude them
from the current fileset.

j3d.
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Patch

2004-03-05 Thread Giuseppe Greco
On Sat, 2004-03-06 at 06:47, Jaroslaw Kowalski wrote:

Jarek,

yes, that could be another good alternative.

j3d.

 Hi Giuseppe!
 
 Looks like that you really need a support for filesets in the nant task.
 This way you could get rid of your gateway buildfile:
 
 Like this:
 
 --- MASTER.build --
 fileset id=subprojects
 includes name=**/*.build /
 excludes ... /
 /fileset
 
 target name=build
 nant target=build
 buildfiles refid=subprojects /
 /nant
 /target
 ---
 
 gateway.build goes away.
 
 Am I right? This looks like another (simpler) way to implement your required
 features without the need for wildcard targets (I assume that your master
 file won't contain any).
 
 Jarek
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: Gert Driesen [EMAIL PROTECTED]
 Cc: NAnt Developers [EMAIL PROTECTED]
 Sent: Saturday, March 06, 2004 1:01 AM
 Subject: Re: [nant-dev] Patch
 
 
  Gert,
 
  this new patch should be OK.
 
  By the way, I've noticed something very strange;
  to avoid the infinite loop, I've just modified
  the code at line 782 from
 
  do {
currentTarget = (Target) sortedTargets[currentIndex++];
if (currentTarget.Name.Equals(WildTarget)  _currentTarget != null) {
  currentTarget.Name = _currentTarget.Name;
}
 
_currentTarget = currentTarget;
 
// only execute targets that have not been executed already,
// if we are not forcing.
if(forceDependencies || !_currentTarget.Executed) {
  _currentTarget.Execute();
}
  } while (!_currentTarget.Name.Equals(targetName));
 
  ... to
 
  do {
currentTarget = (Target) sortedTargets[currentIndex++];
if (currentTarget.Name.Equals(WildTarget)  CurrentTarget != null) {
  currentTarget.Name = CurrentTarget.Name;
}
 
_currentTarget = currentTarget;
 
// only execute targets that have not been executed already,
// if we are not forcing.
if(forceDependencies || !currentTarget.Executed) {
  currentTarget.Execute();
}
  } while (!currentTarget.Name.Equals(targetName));
 
  Strange, isn't it?
 
  ...again, wild targets are nothing impressive, but I think
  they would be very helpful when writing gateway build files
  (no need of additional properties just to forward target names);
  furthermore, as already said, it would be possible to define
  a target that is executed when the user specifies a target
  that does not exist in the current build file...
 
  j3d.
 
  On Fri, 2004-03-05 at 20:50, Gert Driesen wrote:
   Giuseppe,
  
   There appears to be a problem with your changes. Have you tried applying
 the
   patch against NAnt cvs ?
  
   NAnt seem to get stuck in an infinite loop, I'll look into it if you
 want
   ...
  
   Regardless of this, I'd like to get feedback from other members of the
   community before committing your patch.  I don't mind committing the new
   target::get-current-target function, but I'm not sure about the wildcard
   target support ...
  
   Gert
  
   - Original Message - 
   From: Giuseppe Greco [EMAIL PROTECTED]
   To: NAnt Developers [EMAIL PROTECTED]
   Sent: Thursday, March 04, 2004 5:02 PM
   Subject: [nant-dev] Patch
  
  
Hi all,
   
attached to this email you will find the patch
I promised yesterday.
   
Now, it's up to you...
   
j3d.
   
-- 

Giuseppe Greco
   
::agamura::
   
phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com

   
  -- 
  
  Giuseppe Greco
 
  ::agamura::
 
  phone:  +41 91 604 67 65
  mobile: +41 76 390 60 32
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
 
 
 
 
 ---
 This SF.Net email is sponsored by: IBM Linux Tutorials
 Free Linux tutorial presented by Daniel Robbins, President and CEO of
 GenToo technologies. Learn everything from fundamentals to system
 administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https

[nant-dev] Building NAnt on Mono

2004-03-04 Thread Giuseppe Greco
Hi all,

I've just checked out the latest version of NAnt
from CVS, and I'm not able to build it on Linux.

Here's the error message:

 
create-common-assemblyinfo:
 
   [attrib] Setting file attributes for 1 files to Normal.
 
** (bin/NAnt.exe:32596): WARNING **: Aborting of threads in domain
TypeGatheringDomain timed out.
 
BUILD FAILED
 
/home/genius/projects/nant/NAnt.build(49,9):
AssemblyInfo file '/home/genius/projects/nant/src/CommonAssemblyInfo.cs'
could not be generated.
Aborting of threads in domain TypeGatheringDomain timed out.

Has anybody experienced the same problem?
I'm running the very last version of Mono form CVS.

Thanks,
j3d.

-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Building NAnt on Mono

2004-03-04 Thread Giuseppe Greco
gasp?!

I've done the same and it works.

Thanks,
j3d.

On Thu, 2004-03-04 at 20:01, Jaroslaw Kowalski wrote:
 This is related to a bug in mono. I've reported it as a bug in ximian
 bugzilla.
 
 http://bugzilla.ximian.com/show_bug.cgi?id=54980
 
 Note that NUnit is not working either.
 
 I hacked mcs with this patch:
 
 ---
 Index: System/AppDomain.cs
 ===
 RCS file: /mono/mcs/class/corlib/System/AppDomain.cs,v
 retrieving revision 1.55
 diff -u -r1.55 AppDomain.cs
 --- System/AppDomain.cs 10 Feb 2004 11:04:03 -  1.55
 +++ System/AppDomain.cs 4 Mar 2004 20:12:04 -
 @@ -723,7 +723,8 @@
 if (domain == null)
 throw new ArgumentNullException (domain);
 
 -   InternalUnload (domain.getDomainID());
 +   // HACK - this causes a lot of trouble
 +   // InternalUnload (domain.getDomainID());
 }
 
 [MethodImplAttribute(MethodImplOptions.InternalCall)]
 
 Jarek
 
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Thursday, March 04, 2004 7:53 PM
 Subject: [nant-dev] Building NAnt on Mono
 
 
  Hi all,
 
  I've just checked out the latest version of NAnt
  from CVS, and I'm not able to build it on Linux.
 
  Here's the error message:
 
 
  create-common-assemblyinfo:
 
 [attrib] Setting file attributes for 1 files to Normal.
 
  ** (bin/NAnt.exe:32596): WARNING **: Aborting of threads in domain
  TypeGatheringDomain timed out.
 
  BUILD FAILED
 
  /home/genius/projects/nant/NAnt.build(49,9):
  AssemblyInfo file '/home/genius/projects/nant/src/CommonAssemblyInfo.cs'
  could not be generated.
  Aborting of threads in domain TypeGatheringDomain timed out.
 
  Has anybody experienced the same problem?
  I'm running the very last version of Mono form CVS.
 
  Thanks,
  j3d.
 
  -- 
  
  Giuseppe Greco
 
  ::agamura::
 
  phone:  +41 91 604 67 65
  mobile: +41 76 390 60 32
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
 
 
 
  ---
  This SF.Net email is sponsored by: IBM Linux Tutorials
  Free Linux tutorial presented by Daniel Robbins, President and CEO of
  GenToo technologies. Learn everything from fundamentals to system
  administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
  ___
  nant-developers mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
 
 
 ---
 This SF.Net email is sponsored by: IBM Linux Tutorials
 Free Linux tutorial presented by Daniel Robbins, President and CEO of
 GenToo technologies. Learn everything from fundamentals to system
 administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Wild targets/Current target

2004-03-03 Thread Giuseppe Greco
Hi all,

I've just completed the implementation of the
stuff we discussed yesterday.

Right now I'm out of office and I don't have
CVS access due to proxy restrictions, so
attached to this email you will find the
modified files. I'll send you a patch tomorrow.

The modified files are:

NAnt.Core/Project.cs
line81   added WildTarget const
line   132   added _currentTarget field
lines  410 -  416added CurrentTarget property
lines  784 -  796replaced do-while statement
lines 1415 - 1419added wild targets handling

NAnt.Core/Functions/NAntFunctions.cs
lines   83 - 98  added GetCurrentTarget functioin

These modifications allow you to specify a wild target
that is executed when the user specifies a target that
does not exist in the current build file. Here's an
example:

project
  name=myProject
  default=build

  target name=build
echo message=This is the build target./
  /target

  target name=*
echo message=This is the ${target::get-current-target()} target./
  /target
/project

if you type

  nant hello

from the command, you get the message This is the hello target.

Furthermore, using the master-gateway-slave build file pattern is
much easier (see my previous emails). Here below is another
example.

Let's start with the usual project:

/myProject
 + default.build
 + /src
 + default.build
 + /Subproject
+ default.build
+ HelloWorld.cs

the master build file (/myProject/default.build) looks
like this:

?xml version=1.0?

project
  name=myProject
  default=build

 target
name=build
description=Builds the current configuration
nant
  buildfile=src/default.build
  target=${target::get-current-target()}/
  /target

  target
name=test
description=Tests the current configuration
nant
  buildfile=src/default.build
  target=${target::get-current-target()}/
  /target

  target
name=clean
description=Deletes the current configuration
nant
  buildfile=src/default.build
  target=${target::get-current-target()}/
  /target

/project


... and the gateway build file (/myProject/src/default.build)
like this:

?xml version=1.0?

project
  name=myProject
  default=*

  target
name=*
description=Builds recursively all subprojects
foreach
  item=Folder
  property=foldername
  in
items
  includes name=*/
  excludes name=CVS/
/items
  /in
  do
nant
  buildfile=${foldername}/default.build
  target=${project.config} ${target::get-current-target()}/
  /do
/foreach
  /target

/project

I don't report the slave build file (/myProject/src/Subproject/default.build)
since it is like any other build file written till now.

Wild targets allow you to write more compact build files and
provide a standard way to handle unexpected targets.

What do you think about that?

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com


patch.tar.gz
Description: GNU Zip compressed data


[nant-dev] Re: Wild targets/Current target

2004-03-03 Thread Giuseppe Greco
 As a curiousity, wouldn't you be able to use a regular target and
 properties to define what to call?  For instance, your gateway project
 can just do this:

 target
   name=process
   description=Builds recursively all subprojects
   foreach
 item=Folder
 property=foldername
 in
   items
 includes name=*/
 excludes name=CVS/
   /items
 /in
 do
   nant
 buildfile=${foldername}/default.build
 target=${project.config} ${operation}/
 /do
   /foreach
 /target

 The master just needs to set the operation property before calling.
 I'm not certain these wildcard targets are necessary in this case.

 property name=operation value=build /
 nant buildfile=gateway.build target=process /

 etc...

Yes, but this is exactly what I'm trying to avoid...

When a master build file contains more than 3 or 4 targets
to forward, you have to define lots of properties just to handle that.

I think a wild target would be much more elegant. Furthermore,
be able to define a wild target that is executed when the user
specifies a target that does not exist in the current build file,
would be handy...

Of course, that's nothing vital, but...

j3d.

 Giuseppe Greco wrote:

 Hi all,

 I've just completed the implementation of the
 stuff we discussed yesterday.

 Right now I'm out of office and I don't have
 CVS access due to proxy restrictions, so
 attached to this email you will find the
 modified files. I'll send you a patch tomorrow.

 The modified files are:

 NAnt.Core/Project.cs
 line81   added WildTarget const
 line   132   added _currentTarget field
 lines  410 -  416added CurrentTarget property
 lines  784 -  796replaced do-while statement
 lines 1415 - 1419added wild targets handling

 NAnt.Core/Functions/NAntFunctions.cs
 lines   83 - 98  added GetCurrentTarget functioin

 These modifications allow you to specify a wild target
 that is executed when the user specifies a target that
 does not exist in the current build file. Here's an
 example:

 project
   name=myProject
   default=build

   target name=build
 echo message=This is the build target./
   /target

   target name=*
 echo message=This is the ${target::get-current-target()}
 target./
   /target
 /project

 if you type

   nant hello

 from the command, you get the message This is the hello target.

 Furthermore, using the master-gateway-slave build file pattern is
 much easier (see my previous emails). Here below is another
 example.

 Let's start with the usual project:

 /myProject
  + default.build
  + /src
  + default.build
  + /Subproject
 + default.build
 + HelloWorld.cs

 the master build file (/myProject/default.build) looks
 like this:

 ?xml version=1.0?

 project
   name=myProject
   default=build

  target
 name=build
 description=Builds the current configuration
 nant
   buildfile=src/default.build
   target=${target::get-current-target()}/
   /target

   target
 name=test
 description=Tests the current configuration
 nant
   buildfile=src/default.build
   target=${target::get-current-target()}/
   /target

   target
 name=clean
 description=Deletes the current configuration
 nant
   buildfile=src/default.build
   target=${target::get-current-target()}/
   /target

 /project


 ... and the gateway build file (/myProject/src/default.build)
 like this:

 ?xml version=1.0?

 project
   name=myProject
   default=*

   target
 name=*
 description=Builds recursively all subprojects
 foreach
   item=Folder
   property=foldername
   in
 items
   includes name=*/
   excludes name=CVS/
 /items
   /in
   do
 nant
   buildfile=${foldername}/default.build
   target=${project.config} ${target::get-current-target()}/
   /do
 /foreach
   /target

 /project

 I don't report the slave build file
 (/myProject/src/Subproject/default.build)
 since it is like any other build file written till now.

 Wild targets allow you to write more compact build files and
 provide a standard way to handle unexpected targets.

 What do you think about that?

 j3d.

 
 Giuseppe Greco

 ::agamura::

 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux

Re: [nant-dev] Current target again...

2004-03-02 Thread Giuseppe Greco


 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 02, 2004 7:49 AM
 Subject: [nant-dev] Current target again...


 ...

 My proposal is to introduce the concept of generic target.
 Let's go back to our gateway build file described above,
 and rewrite the recurse target as a generic target:

 ?xml version=1.0?

 project
   name=myProject
   default=*

   target
 name=*
 description=Builds recursively all subprojects
 foreach
   item=Folder
   property=foldername
   in
 items
   includes name=*/
   excludes name=CVS/
 /items
   /in
   do
 nant
   buildfile=${foldername}/default.build
   target=${project.config} ${nant.current.target}/
   /do
 /foreach
   /target

 /project

 Generic targets would specify * as their name, and NAnt
 would always execute them.

 I don't immediately see a need for this.

Let me show you a more detailed example. Here is a
fragment of the caller build file (the one in the
project's top directory):

  ...

  target
name=test
depends=init
description=Tests the current configuration
property
  name=target
  value=test/
nant buildfile=src/default.build/
  /target

  ...

In this example, the target property is set to test,
and then the nant task calls the gateway build file
described in my previous email. If NAnt would support
generic targets, we could reduce the target above like
this:

  ...

  target
name=test
depends=init
description=Tests the current configuration
nant
  buildfile=src/default.build
  target=${target::get-current-target()}/
  /target

  ...


and then let gateway build files forward targets
automatically:

?xml version=1.0?

project
  name=myProject
  default=*
  target
name=*
description=Builds recursively all subprojects
foreach
  item=Folder
  property=foldername
  in
items
  includes name=*/
  excludes name=CVS/
/items
 /in
  do
nant
 buildfile=${foldername}/default.build
  target=${project.config} ${target::get-current-target()}/
  /do
/foreach
  /target
/project

I think this would be a nice feature... but, of course,
that's just my opinion.

j3d.


 At that point we also need a way
 to get the target name specified by the calling build file,
 and the answer is a built-in property named ${nant.current.target}.

 I'm not sure we should implement this, but if we should we'd definitely
 implement it as a function, not a built-in property.

 I guess we could add the following functions :

 target::get-target-name or target::get-current-target()

 this function returns the name of the current target
 this would throw an exception when there's no current target

 target::get-description(string targetname)

 this functions returns the description of the specified target
 this would throw an exception when the targetname is null or the given
 target does not exist

 But I'd like to get feedback of other committers first ...

 Gert




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Current target again...

2004-03-02 Thread Giuseppe Greco
OK guys,

I'm going to implement it...
I'll let you know when is done.

j3d.

 Guis,
 Why don't you just implement it as a nant extension function and then
 see if there is enough interest to include it in either nantcontrib or
 nant core.

 Ian
 Giuseppe Greco wrote:

- Original Message -
From: Giuseppe Greco [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 7:49 AM
Subject: [nant-dev] Current target again...




...

My proposal is to introduce the concept of generic target.
Let's go back to our gateway build file described above,
and rewrite the recurse target as a generic target:

?xml version=1.0?

project
  name=myProject
  default=*

  target
name=*
description=Builds recursively all subprojects
foreach
  item=Folder
  property=foldername
  in
items
  includes name=*/
  excludes name=CVS/
/items
  /in
  do
nant
  buildfile=${foldername}/default.build
  target=${project.config} ${nant.current.target}/
  /do
/foreach
  /target

/project

Generic targets would specify * as their name, and NAnt
would always execute them.


I don't immediately see a need for this.



Let me show you a more detailed example. Here is a
fragment of the caller build file (the one in the
project's top directory):

  ...

  target
name=test
depends=init
description=Tests the current configuration
property
  name=target
  value=test/
nant buildfile=src/default.build/
  /target

  ...

In this example, the target property is set to test,
and then the nant task calls the gateway build file
described in my previous email. If NAnt would support
generic targets, we could reduce the target above like
this:

  ...

  target
name=test
depends=init
description=Tests the current configuration
nant
  buildfile=src/default.build
  target=${target::get-current-target()}/
  /target

  ...


and then let gateway build files forward targets
automatically:

?xml version=1.0?



project


  name=myProject
  default=*
  target
name=*
description=Builds recursively all subprojects
foreach
  item=Folder
  property=foldername
  in
items
  includes name=*/
  excludes name=CVS/
/items
 /in
  do
nant
 buildfile=${foldername}/default.build
  target=${project.config} ${target::get-current-target()}/
  /do
/foreach
  /target
/project

I think this would be a nice feature... but, of course,
that's just my opinion.

j3d.



At that point we also need a way
to get the target name specified by the calling build file,
and the answer is a built-in property named ${nant.current.target}.


I'm not sure we should implement this, but if we should we'd definitely
implement it as a function, not a built-in property.

I guess we could add the following functions :

target::get-target-name or target::get-current-target()

this function returns the name of the current target
this would throw an exception when there's no current target

target::get-description(string targetname)

this functions returns the description of the specified target
this would throw an exception when the targetname is null or the
 given
target does not exist

But I'd like to get feedback of other committers first ...

Gert






Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers




 --
 Ian MacLean, Developer,
 ActiveState, a division of Sophos
 http://www.ActiveState.com



 ---
 SF.Net is sponsored by: Speed Start Your Linux Apps Now.
 Build and deploy apps  Web services for Linux with
 a free DVD software kit from IBM. Click Now!
 http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com

[nant-dev] Current target again...

2004-03-01 Thread Giuseppe Greco
Hi all,

In my previous email there was a copy-and-paste
problem, and my explanation was incomplete!

I'll try again...

I use to structure projects like this:

/myProject
+ default.build
+ /src
+ default.build
+ /subproject1
|   + default.build
|   + mySource.cs
+ /subproject2
+ default.build
+ mySource.cs

This structure let me build subprojects from any
level. The build file located in the /src directory
is just a gateway build file, and looks like this:

?xml version=1.0?

project
  name=myProject
  default=recurse

  target
name=recurse
description=Builds recursively all subprojects
foreach
  item=Folder
  property=foldername
  in
items
  includes name=*/
  excludes name=CVS/
/items
  /in
  do
nant
  buildfile=${foldername}/default.build
  target=${project.config} ${target}/
  /do
/foreach
  /target

/project

The 'target' property of the nant task specifies
two targets: ${project.config} and ${target}. Both
are inherited from the calling build file (the one
located in the project's root directory).

${project.config} contains 'release' or 'debug', while
${target} contains the target that should be executed
in each subproject.

My proposal is to introduce the concept of generic target.
Let's go back to our gateway build file described above,
and rewrite the recurse target as a generic target:

?xml version=1.0?

project
  name=myProject
  default=*

  target
name=*
description=Builds recursively all subprojects
foreach
  item=Folder
  property=foldername
  in
items
  includes name=*/
  excludes name=CVS/
/items
  /in
  do
nant
  buildfile=${foldername}/default.build
  target=${project.config} ${nant.current.target}/
  /do
/foreach
  /target

/project

Generic targets would specify * as their name, and NAnt
would always execute them. At that point we also need a way
to get the target name specified by the calling build file,
and the answer is a built-in property named ${nant.current.target}.

What's your opinion?

j3d.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Current target

2004-02-28 Thread Giuseppe Greco
Hi all,

is there a built-in property that contains the name
of the current target? In my projects, I use to
generate gateway build files like this:

project
  name=myProject
  default=recurse

  target
name=recurse
description=Builds recursively all subprojects
foreach
  item=Folder
  property=foldername
  in
items
  includes name=*/
  excludes name=CVS/
/items
  /in
  do
nant
  buildfile=${foldername}/default.build
  target=${project.config} ${target}/
  /do
/foreach
  /target

/project

The purpose of such a build file is just to forward
a target from a build file in the parent directory to 
the build files in all of the children directories.

To implement that, I define a property named target
in the parent build file that contains the name of
the target to execute...

I think it would be nice to have a built-in property
named nant.current.target that contains the name of
the executing target.

What's your opinion?

j3d.

-- 

Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] ?

2004-01-10 Thread Giuseppe Greco
On Sat, 2004-01-10 at 15:50, Gert Driesen wrote:

Gert thanks,

 Giuseppe,
 
 Expression support is still very much alpha, so indeed things have changed
 since the initial implementation
 
 About the resgen task : I don't have access to NAnt sources right now (and
 sf is down for maintenance), but it could be that you should now also
 specify the path information in the output attribute,

OK, that works fine.

 and that the todir attribute is now only used in combination with the
 resources fileset as it makes more sense to specify both the
 path and filename in the output attribute when dealing with a single
 input file. I'd have to check the sources to be sure of that, but
 I think I did make some changes to that ...

Are there also changes related to the uptodate task?
The following fragment doesn't work anymore:

uptodate
  targetfile=figures/project-structure.gif
  sourcefile=${build.dir}/figures/project-structure.xcf
  property=project-structure.gif.uptodate/
ifnot test=${project-structure.gif.uptodate}
  exec
program=xcftoall
commandline=
--gif --output=${build.dir}/figures/image.gif figures/image.xcf/
/ifnot


the uptodate/ifnot task pair causes the following exception:

INTERNAL ERROR
 
System.NullReferenceException: A null value was found where an object
instance was required
in 0x00244 NAnt.Core.Task:Execute ()
in 0x002a3 NAnt.Core.Target:Execute ()
in 0x000d8 NAnt.Core.Project:Execute (string,bool)
in 0x0030d NAnt.Core.Project:Execute ()
in 0x00185 NAnt.Core.Project:Run ()
 
Gius_.

 
 Gert
 - Original Message - t
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Saturday, January 10, 2004 2:18 PM
 Subject: [nant-dev] ?
 
 
  Hi all,
 
  I've checked out the latest version of NAnt from
  cvs, and I've noted some differences...
 
  For example,
 
  ifnot test=${nant::property-exists('configured')}
...
  /ifnot
 
  is not longer valid; instead, one has to specify something
  like this:
 
 
  ifnot test=${property::exists('configured')}
...
  /ifnot
 
  Ok, that's easy... but what's about the following target?
 
  target
name=build-resources
description=Builds resource binaries
foreach
  item=String
  in=de-DE,en-US,es-ES,fr-FR,it-IT
  delim=,
  property=culture
  mkdir
dir=${build.dir}/${package.name}/lib/${culture}
failonerror=false/
  resgen
input=${module}.${culture}.resx
output=${module}.${culture}.resources
todir=${build.dir}/${package.name}/lib/${culture}/
/foreach
  /target
 
  The target above worked fine before the updated. Now, it just
  creates the directories (e.g. /build/gekkota/lib/de-DE), period!
 
  Any idea?
 
  I'm working on Fedora Core 1 with mono 0.29.99.20031226.
 
  Thanks,
  Gius_.
 
  -- 
  
  Giuseppe Greco
 
  ::agamura::
 
  phone:  +41 (0)91 604 67 65
  mobile: +41 (0)76 390 60 32
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
 
 
 
  ---
  This SF.net email is sponsored by: Perforce Software.
  Perforce is the Fast Software Configuration Management System offering
  advanced branching capabilities and atomic changes on 50+ platforms.
  Free Eval! http://www.perforce.com/perforce/loadprog.html
  ___
  nant-developers mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
 
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System offering
 advanced branching capabilities and atomic changes on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Unable to build NAnt 0.85 on Linux

2003-12-13 Thread Giuseppe Greco
OK, after having installed ICU the whole works again...

Thanks,
Gius_.

On Sat, 2003-12-13 at 17:32, Gert Driesen wrote:
 Giuseppe,
 
 I can't reproduce this on my gentoo box right here but I think its a bug in
 Mono, as it was reported by others too ...
 
 The following code apparently results in an ArgumentException :
 
 using System.Globalization;
 
 class Test {
   static void Main() {
 CultureInfo.GetCultures(CultureTypes.AllCultures);
   }
 }
 
 Can you check wheter you have ICU support enabled in Mono ?
 
 Gert
 
 
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Saturday, December 13, 2003 5:26 PM
 Subject: [nant-dev] Unable to build NAnt 0.85 on Linux
 
 
  Hi all,
 
  I'm not able to build the last version of NAnt from CVS.
  Here below are the error messages:
 
  BUILD FAILED
 
  INTERNAL ERROR
 
  System.Reflection.TargetInvocationException: Exception has
  been thrown by the target of an invocation. ---
  System.TypeInitializationException: An exception was thrown by the type
  initializer for NAnt.DotNet.Tasks.CompilerBase ---
  System.ArgumentException: An invalid argument was specified.
  in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1b)
  [0x4007e6a7]
  in (unmanaged) /usr/local/lib/libmono.so.0 [0x400a5db9]
  in 0x00084 System.Globalization.CultureInfo:Construct
  (int,string,bool)
  in 0x00084 System.Globalization.CultureInfo:.ctor (int,bool)
  in 0x00012 System.Globalization.CultureInfo:.ctor (int)
  in 0x001a3 System.Globalization.CultureInfo:GetCultures
  (System.Globalization.CultureTypes)
  in 0x000ba NAnt.DotNet.Tasks.CompilerBase:.cctor ()
  --- End of inner exception stack trace ---
 
  in (unmanaged) NAnt.DotNet.Tasks.CompilerBase:.ctor ()
  in 0x0003d NAnt.DotNet.Tasks.CscTask:.ctor ()
  in (unmanaged) /usr/local/lib/libmono.so.0 [0x40045f4f]
  in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke+0x23)
  [0x4007c69b]
  in (unmanaged)
  /usr/local/lib/libmono.so.0(mono_runtime_invoke_array+0xb6) [0x4007d2ae]
  in (unmanaged) /usr/local/lib/libmono.so.0 [0x40082a98]
  in 0x0009c System.Reflection.MonoCMethod:Invoke
 
 (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys
 tem.Globalization.CultureInfo)
  --- End of inner exception stack trace ---
 
  in 0x00103 System.Reflection.MonoCMethod:Invoke
 
 (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys
 tem.Globalization.CultureInfo)
  in 0x00022 System.Reflection.MonoCMethod:Invoke
 
 (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Glo
 balization.CultureInfo)
  in 0x00256 System.Activator:CreateInstance
 
 (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[
 ],System.Globalization.CultureInfo,object[])
  in 0x00050 System.Reflection.Assembly:CreateInstance
 
 (string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[
 ],System.Globalization.CultureInfo,object[])
  in 0x00060 NAnt.Core.TaskBuilder:CreateTask ()
  in 0x00111 NAnt.Core.TypeFactory:CreateTask
  (System.Xml.XmlNode,NAnt.Core.Project)
  in 0x00017 NAnt.Core.Project:CreateTask
  (System.Xml.XmlNode,NAnt.Core.Target)
  in 0x00287 NAnt.Core.Target:Execute ()
  in 0x000d8 NAnt.Core.Project:Execute (string,bool)
  in 0x0030d NAnt.Core.Project:Execute ()
  in 0x00173 NAnt.Core.Project:Run ()
 
  I'm running NAnt on RH Linux 9 with the last version
  of Mono from CVS.
 
  Thanks,
  Gius_.
 
  -- 
  
  Giuseppe Greco
 
  ::agamura::
 
  phone:  +41 (0)91 604 67 65
  mobile: +41 (0)76 390 60 32
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
 
 
 
  ---
  This SF.net email is sponsored by: SF.net Giveback Program.
  Does SourceForge.net help you be more productive?  Does it
  help you create better code?  SHARE THE LOVE, and help us help
  YOU!  Click Here: http://sourceforge.net/donate/
  ___
  nant-developers mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
 
 
 
 ---
 This SF.net email is sponsored by: SF.net Giveback Program.
 Does SourceForge.net help you be more productive?  Does it
 help you create better code?  SHARE THE LOVE, and help us help
 YOU!  Click Here: http://sourceforge.net/donate/
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net

[nant-dev] install task

2003-11-01 Thread Giuseppe Greco
Hi all,
Hi Ian,

some time ago we discussed about an install task
in NAnt.build... so the question is: do we add it?

I'll propose something like this:

target
   name=install
   depends=build
   description=Installs the current configuration
   copy
 todir=${install.dir}/bin
 overwrite=true
 fileset basedir=${build.dir}/${package.name}/bin
   includes name=**/
 /fileset
   /copy
/target

target
  name=uninstall
  depends=init
  description=Uninstalls the current configuration
  delete failonerror=false
fileset basedir=${install.dir}/bin
  includes name=NAnt.exe/
  includes name=NAnt.exe.congig/
  ...
/fileset
  /delete
/target

What's your opinion?

Gius_.

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Filesets redefinition...

2003-10-19 Thread Giuseppe Greco
Hi All,
Hi Ian,

What have you decided about filesets redefinition?
Is semantically still correct that NAnt complies
when redefining existing filesets?

Gius_.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email sponsored by: Enterprise Linux Forum Conference  Expo
The Event For Linux Datacenter Solutions  Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office;  in the Server Room 
http://www.enterpriselinuxforum.com
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Problems with zip and fileset tasks

2003-10-09 Thread Giuseppe Greco

- Original Message -
From: Giuseppe Greco [EMAIL PROTECTED]
To: Gert Driesen [EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 5:10 PM
Subject: Re: [nant-dev] Problems with zip and fileset tasks


Gert,

OK, I was using a three weeks old version...

 three weeks old ??? A lot can happen in three weeks, you should know that
 :-) LOL

Now I've downloaded the last one, and the result is:

project-name/AUTHORS
project-name/COPYRIGHT
project-name/bin/myApp.exe

As you can see, the files are now named correctly,
but the file 'project-name/LICENSE' is still missing.

 Are you running NAnt on linux ?

No, I'm running NAnt on Windows (that's rare, but it can happen).
Right now I'm not in my office... later I'll try on Linux and
tomorrow I'll let you know.

 Is it the exact case of the file ?

Yes, it is.

Gius_.


I hope that helps...

 doesn't help at all :-)

 Gert




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Problems with zip and fileset tasks

2003-10-09 Thread Giuseppe Greco
Ian, Gert,

I've checked out and installed the last version and
it works!

There is just another issue. If one tries to redefine
a fileset, the following error occurs:


INTERNAL ERROR

System.ArgumentException: Item has already been added.  Key in dictionary:
archive.set  Key being added: archive.set
   at System.Collections.Hashtable.Insert(Object key, Object nvalue,
Boolean add)
   at System.Collections.Hashtable.Add(Object key, Object value)
   at NAnt.Core.DataTypeBaseDictionary.Add(String key, DataTypeBase value)
in c:\Home\Projects\nant\src\NAnt.C
ore\DataTypeBaseDictionary.cs:line 130
   at NAnt.Core.Target.Execute() in
c:\Home\Projects\nant\src\NAnt.Core\Target.cs:line 211
   at NAnt.Core.Project.Execute(String targetName) in
c:\Home\Projects\nant\src\NAnt.Core\Project.cs:line 698
   at NAnt.Core.Tasks.CallTask.ExecuteTask() in
c:\Home\Projects\nant\src\NAnt.Core\Tasks\CallTask.cs:line 111
...


The message is clear, so the question is: Is that a bug
or the desired behavior?

Attached to this email you will find a small project to
reproduce the problem. From the command line, just type

  nant src package

The error occurs because I'm trying to reassign the
archive.set id to another fileset. By default,
archive.set references a fileset that contains the
executables only; by specifying the src configuration
from the command line, archive.set should then reference
a fileset that contains the whole project
(including source files).

Let me know whether or not this is the desired behavior.
Eventually, I'll modify my build files as needed...

Gius_.

 Giuseppe,
 does a copy using the same fileset give the same result ie skip the
 LICENSE file ? If so then we know its somthing in the fileset code.
 Could you post a small sample demonstrating this behaviour ?

 Ian

- Original Message -
From: Giuseppe Greco [EMAIL PROTECTED]
To: Gert Driesen [EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 5:10 PM
Subject: Re: [nant-dev] Problems with zip and fileset tasks






Gert,

OK, I was using a three weeks old version...



three weeks old ??? A lot can happen in three weeks, you should know that
:-) LOL



Now I've downloaded the last one, and the result is:

project-name/AUTHORS
project-name/COPYRIGHT
project-name/bin/myApp.exe

As you can see, the files are now named correctly,
but the file 'project-name/LICENSE' is still missing.



Are you running NAnt on linux ? Is it the exact case of the file ?



I hope that helps...



doesn't help at all :-)

Gert



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers







 ---
 This SF.net email is sponsored by: SF.net Giveback Program.
 SourceForge.net hosts over 70,000 Open Source Projects.
 See the people who have HELPED US provide better services:
 Click here: http://sourceforge.net/supporters.php
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers




Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com


hello.zip
Description: Zip compressed data


Re: [nant-dev] Problems with zip and fileset tasks

2003-10-09 Thread Giuseppe Greco

 Giuseppe Greco wrote:

Ian, Gert,

I've checked out and installed the last version and
it works!



 great ! Glad to hear its all working.
 As for fileset re-definitions - we allow properties to be re-defined to
 it probably makes sense to do the same for datatype references. If we
 agree that this is the desired behaviour I'll add the change.

OK, thanks!

Gius_.


 Ian

There is just another issue. If one tries to redefine
a fileset, the following error occurs:


INTERNAL ERROR

System.ArgumentException: Item has already been added.  Key in
 dictionary:
archive.set  Key being added: archive.set
   at System.Collections.Hashtable.Insert(Object key, Object nvalue,
Boolean add)
   at System.Collections.Hashtable.Add(Object key, Object value)
   at NAnt.Core.DataTypeBaseDictionary.Add(String key, DataTypeBase
 value)
in c:\Home\Projects\nant\src\NAnt.C
ore\DataTypeBaseDictionary.cs:line 130
   at NAnt.Core.Target.Execute() in
c:\Home\Projects\nant\src\NAnt.Core\Target.cs:line 211
   at NAnt.Core.Project.Execute(String targetName) in
c:\Home\Projects\nant\src\NAnt.Core\Project.cs:line 698
   at NAnt.Core.Tasks.CallTask.ExecuteTask() in
c:\Home\Projects\nant\src\NAnt.Core\Tasks\CallTask.cs:line 111
...


The message is clear, so the question is: Is that a bug
or the desired behavior?

Attached to this email you will find a small project to
reproduce the problem. From the command line, just type

  nant src package

The error occurs because I'm trying to reassign the
archive.set id to another fileset. By default,
archive.set references a fileset that contains the
executables only; by specifying the src configuration
from the command line, archive.set should then reference
a fileset that contains the whole project
(including source files).

Let me know whether or not this is the desired behavior.
Eventually, I'll modify my build files as needed...

Gius_.



Giuseppe,
does a copy using the same fileset give the same result ie skip the
LICENSE file ? If so then we know its somthing in the fileset code.
Could you post a small sample demonstrating this behaviour ?

Ian



- Original Message -
From: Giuseppe Greco [EMAIL PROTECTED]
To: Gert Driesen [EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 5:10 PM
Subject: Re: [nant-dev] Problems with zip and fileset tasks








Gert,

OK, I was using a three weeks old version...




three weeks old ??? A lot can happen in three weeks, you should know
 that
:-) LOL





Now I've downloaded the last one, and the result is:

project-name/AUTHORS
project-name/COPYRIGHT
project-name/bin/myApp.exe

As you can see, the files are now named correctly,
but the file 'project-name/LICENSE' is still missing.




Are you running NAnt on linux ? Is it the exact case of the file ?





I hope that helps...




doesn't help at all :-)

Gert



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers







---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers






Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com








Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] monodoc support

2003-07-21 Thread Giuseppe Greco

-- Original Message --
From: Ian MacLean [EMAIL PROTECTED]
To: Giuseppe Greco [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [nant-dev] monodoc support
Date: Tue, 15 Jul 2003 12:19:59 +0900


if you build it they will come. Sounds like its a ndoc documenter you 
need though - not new functionality in nant.

You cannot process the XML files generated by monodoc directly. You
have first to process them and generate a XML file that can be
understood by NDoc. Actually, to do that, I'm using the utility
written by Jerek, but I think it would be great if this functionality
could be integrated directly into NAnt with a new task.

Out of interest why does the mdsn documenter fail on linux - does it 
always try to build a chm ?

On Linux hhc.exe doesn't exist, that's why I've decided to
switch to MonoDoc to generate compiled help... but I still
need NDoc to generate plain HTML and LaTeX source.

Gius_.


Ian

Hi all,

are there plans to support monodoc?

For example, a problem we have is that
there is no help compiler like hhc.exe
for Linux...

The monodoc project provides assembler.exe,
which generates documentation from ECMA XML files
generated by generator.exe/updater.exe (these
two applications are also shipped with monodoc).

Yesterday, Jarek ([EMAIL PROTECTED])
wrote a utility (which is attached to this e-mail)
for converting ECMA XML files generated by
generator.exe/updater.exe to an XML file that
can be processed by NDoc...

I need to generate my docs in the following formats:

. HTML
. PDF
. something equivalent to MSDN

NDoc already supports Linear HTML; it also provides
a LaTeX documenter that generates LaTeX source files
from which one can easely generate either PDF or PS
output.

The MSDN documenter works on Windows only, so it would
be nice to have also monodoc support.

What's your opinion?

Gius_. 



  





---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Re: [Nant-users] Setting environment variables

2003-07-20 Thread Giuseppe Greco
On Wed, 2003-04-30 at 05:33, Ian MacLean wrote:
 you can use somthing like this:
   exec program = cmd.exe commandline=/c test.bat
   environment
  option name =foo value=bar /
  /environment
   /exec
 the environment tag is new since 0.82 so you will need to get the 
 latest cvs build.

This doesn't work on Linux. I get the message

projects/gekkota/src/Gekkota.Core/default.build(102,27):
NAnt.Core.Tasks.ExecTask: echo had errors. Please see log4net log.
The requested feature is not yet implemented

Any idea?
Gius_.

 
 Ian
 
  Hello
  
  How can I set the environment variable using the exec task. What should be the 
  Program argument value of that task should be set to?
  
  Thanks for your help
  Skarthik
  
  
  ---
  This sf.net email is sponsored by:ThinkGeek
  Welcome to geek heaven.
  http://thinkgeek.com/sf
  ___
  Nant-users mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-users
 
 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 Nant-users mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-users
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Problem with the resgen task

2003-07-10 Thread Giuseppe Greco
Hi all,

I've checked out the latest version of NAnt from
CVS right now... and the resgen task doesn't function
correctly anymore. This is my resgen task:

resgen
  input=${module}.resx
  output=${module}.${culture}.resources
  todir=${build.dir}/${package.name}/bin/${culture}/

The resulting .resource file is not placed in the
directory specified in the todir property. Instead, the
generated file is just saved into the current directory.

Before the update of today, the resgen task was running
correctly.

Gius_.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Problem with the resgen task

2003-07-10 Thread Giuseppe Greco
On Thu, 2003-07-10 at 22:33, Giuseppe Greco wrote:
 Hi all,

Ah, I've also checked out the latest version of Mono
from CVS...

Gius_.
 
 I've checked out the latest version of NAnt from
 CVS right now... and the resgen task doesn't function
 correctly anymore. This is my resgen task:
 
 resgen
   input=${module}.resx
   output=${module}.${culture}.resources
   todir=${build.dir}/${package.name}/bin/${culture}/
 
 The resulting .resource file is not placed in the
 directory specified in the todir property. Instead, the
 generated file is just saved into the current directory.
 
 Before the update of today, the resgen task was running
 correctly.
 
 Gius_.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Just a suggestion...

2003-07-09 Thread Giuseppe Greco
Hi all,

right now, the nunit2 task takes the following
form:

nunit2
  test assemblyname=${build.dir}/bin/MyModule.Tests.dll/
/nunit2

The task above doesn't test an 'assembly', but a 'module'.
One can create single-module assemblies or multi-module
assemblies, but a test task always tests a module.

So, I would suggest to rename the assemblyname property to
module:

nunit2
  test module=${build.dir}/bin/MyModule.Tests.dll/
/nunit2

What do you think about that?

Gius_.



---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Just a suggestion...

2003-07-09 Thread Giuseppe Greco

-- Original Message --
From: Ian MacLean [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: 'Giuseppe Greco' [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Subject: Re: [nant-dev] Just a suggestion...
Date: Thu, 10 Jul 2003 10:58:16 +0900


To be honest the occurance of multi module assemblies is low enough that

I think most users will find 'assembly' a more meaningful identifier 
than 'module'.
the Assembly.LoadFrom() method which loads a specific file off disk 
calls that file paramater 'assemblyFile' not 'moduleFile'. So I think we

are safe enough using assembly.

Ian

Anthony LoveFrancisco wrote:

What's your definition of module versus assembly ?

A module, is a single application component, while
an assembly  encloses all the modules (or component) that
form an application. When we run the test case, we are
actually testing a single application component, not
the whole application (assembly).

Gius_.


- Ants

|  -Original Message-
|  From: [EMAIL PROTECTED] 
|  [mailto:[EMAIL PROTECTED] On 
|  Behalf Of Giuseppe Greco
|  Sent: Wednesday, 09 July, 2003 00:57
|  To: [EMAIL PROTECTED]
|  Subject: [nant-dev] Just a suggestion...
|  
|  
|  Hi all,
|  
|  right now, the nunit2 task takes the following
|  form:
|  
|  nunit2
|test assemblyname=${build.dir}/bin/MyModule.Tests.dll/
|  /nunit2
|  
|  The task above doesn't test an 'assembly', but a 'module'.
|  One can create single-module assemblies or multi-module 
|  assemblies, but a test task always tests a module.
|  
|  So, I would suggest to rename the assemblyname property to
|  module:
|  
|  nunit2
|test module=${build.dir}/bin/MyModule.Tests.dll/
|  /nunit2
|  
|  What do you think about that?
|  
|  Gius_.
|  
|  
|  
|  ---
|  This SF.Net email sponsored by: Parasoft
|  Error proof Web apps, automate testing  more.
|  Download  eval WebKing and get a free book. 
|  www.parasoft.com/bulletproofapps 
|  ___
|  nant-developers mailing list [EMAIL PROTECTED]
|  https://lists.sourceforge.net/lists/listinfo/nant-developers
|  



---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
  





---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Problem with exec task on Linux

2003-07-06 Thread Giuseppe Greco
Hi all,

With the latest version of NAnt, I'm not able to
use the exec task any more.

When executing a task like this

exec
  program=xsltproc
  output=${build.dir}/${document.name}.fo
  commandline=${stylesheet} ${nant.project.name}.xml/
 

I always get the following error messages:

[exec] xsltproc
http://www.agamura.com/quxo/stylesheets/current/fo/quxo.xsl
  csharp-coding-guidelines.xml
[exec] Starting 'xsltproc
  (http://www.agamura.com/quxo/stylesheets/current/fo/quxo.xsl
  csharp-coding-guidelines.xml)' in ''
 
Unhandled Exception: System.NullReferenceException: A null value was
  found where an object instance was required
 
I've tried the command manually and it does function:

  xsltproc http://www.agamura.com/quxo/stylesheets/current/fo/quxo.xsl \
building-projects-with-nant.xml  building-projects-with-nant.fo

Furthermore, I haven't changed my build files since the last release and
executing them with NAnt 0.82 there is no problems at all.

Any idea?

Gius_.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Executing NAnt on Linux

2003-07-05 Thread Giuseppe Greco
Hi all,

I'm not able to execute NAnt on Linux. I've checked out
the very last version of NAnt from CVS right now; it does
compile successfully, but as I try to run it, I get the
following error messages:

Framework mono-1.0 does not exist or is not specified in the NAnt
configuration file. Defaulting to no known framework.
Buildfile:
file://home/genius/projects/gekkota/src/Gekkota.Core/de-DE/default.build
 
build:
 
 
BUILD FAILED
 
INTERNAL ERROR
 
System.NullReferenceException: A null value was found where
an object instance was required
in 0x001cc 00 NAnt.Core.Tasks.ExternalProgramBase:DetermineFilePath ()
in 0x00011 00 NAnt.Core.Tasks.ExternalProgramBase:get_ProgramFileName
()
in 0x006bb 00 NAnt.Core.Tasks.ExternalProgramBase:ExecuteTask ()
in 0x004be 00 NAnt.DotNet.Tasks.ResGenTask:ExecuteTask ()
in 0x0014d 00 NAnt.Core.Task:Execute ()
in 0x0020f 00 NAnt.Core.Task:Execute ()
in 0x00477 00 NAnt.Core.Target:Execute ()
in 0x000be 00 NAnt.Core.Project:Execute (string)
in 0x0014a 00 NAnt.Core.Project:Execute ()
in 0x00173 00 NAnt.Core.Project:Run ()
 
I've given a look at the NAnt.exe.config file, and everything
seems to be OK! On my Linux box I've installed the very last
version of mono and mcs from CVS.

Is there something I need to know to have NAnt running on
my Linux box?

Thanks,

Gius_.
 

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Fileset references

2003-06-29 Thread Giuseppe Greco
Ian,

I've a target like the following that simply initializes a file set:

target name=dist
  ... 
  fileset id=archive.set basedir=${build.dir}
...
includes name=../AUTHORS/
includes name=../COPYRIGHT/
includes name=../LICENSE/
includes name=${package.name}/**/
excludes name=${package.name}/**/*.xml/
excludes name=${package.name}/**/*.resources/
  /fileset
 /target

... and then another target that uses it:

target name=package depends=dist
  ...
  zip zipfile=${archive.name}
fileset refid=archive.set/
  /zip
/target

Well, the resulting zip archive is empty. Am I missing
something?

Gius_.
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Problem with the resgen task on Linux

2003-06-28 Thread Giuseppe Greco
Hi Gert,

On Sat, 2003-06-28 at 13:48, Gert Driesen wrote:
 Hi Giuseppe,
 
 I looked at the code of the resgen task, and apparently it's not being
 executed on the mono runtime right now.
 
 The following comment is in the UsesRuntimeEngine property :
 
 // TO-DO : uncomment this when monoresgen no longer crashes when run with
 the mono runtime.
 
 I think that comment was put there by Ian, but I haven't checked this.
 
 Can you uncomment the code in in Resgen.UsesRuntimeEngine and try again ?

I've tried it, but it doesn't work at all.

This is the error message:

Error: Exception has been thrown by the target of an invocation.
Total time: 0 seconds.

May be that's why Ian commented out lines from 130 to 135 in
ResGenTask.cs ...

Gius_.

 
 Gert
 
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Saturday, June 28, 2003 11:44 AM
 Subject: [nant-dev] Problem with the resgen task on Linux
 
 
  Hi all,
 
  I've target like this:
 
  target
name=build
description=Builds resource binaries for de-DE culture
mkdir
  dir=${build.dir}/bin/${culture}
  failonerror=false/
resgen
  input=${assembly}.resx
  output=${assembly}.${culture}.resources
  todir=${build.dir}/bin/${culture}/
al
  target=lib
  culture=${culture}
  output=${build.dir}/bin/${culture}/${assembly}.resources.dll
  sources basedir=${build.dir}/bin/${culture}
includes name=*.resources/
  /sources
/al
  /target
 
  The target above just generates a .resources file and the
  related satellite resource assembly DLL.
 
  It works on Windows, but it doesn't on Linux!
  monoresgen complies like this:
 
  /home/genius/projects/gekkota/src/Gekkota.Core/de-DE/default.build(44,60):
   resgen task/usr/local/bin/monoresgen.exe failed to start.
 
  Cannot find the specified file
 
  The *.resx file to compile is there and error free (otherwise it
  wouldn't have compiled on Windows)... Does anybody know more on this?
 
  Gius_.
  -- 
  
  Giuseppe Greco
 
  ::agamura::
 
  phone:  +41 (0)91 604 67 65
  mobile: +41 (0)76 390 60 32
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
 
 
 
  ---
  This SF.Net email sponsored by: Free pre-built ASP.NET sites including
  Data Reports, E-commerce, Portals, and Forums are available now.
  Download today and enter to win an XBOX or Visual Studio .NET.
  http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
  ___
  nant-developers mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] fileset references

2003-06-28 Thread Giuseppe Greco
On Sat, 2003-06-28 at 16:10, Ian MacLean wrote:
 Its definately in cvs. I've done a clean check out into a seperate 
 directory and the example below works fine. Are you seeing errors ? What 
 isn't working ?

NAnt simply says Unknown task fileset.

Gius_.

 Ian
 
 Ian,
 
 On Tue, 2003-06-24 at 11:35, Ian MacLean wrote:
   
 
 fileset references are done. I still need to add some unit tests and 
 polish a few things but its all working.
 
 try somthing like the following :
 
 fileset id=foo
 includes name=*.*/   
 /fileset
 
 copy todir=. overwrite=true
 fileset refid=foo/
 /copy
 
 There is now a general framework for referencable types. Its only 
 implemented for filesets right now.
 
 
 
 Is that on CVS?
 It doesn't seem so...
 
 Gius_.
 
   
 
 Ian
 
 
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 Nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] fileset references

2003-06-28 Thread Giuseppe Greco
On Sat, 2003-06-28 at 16:15, Ian MacLean wrote:
 windows or linux ? - is your fileset definition at the project level ? 
 fileset definitions at target level are not supported right now.

A-ha, that's the problem... I'm trying to use fileset definitions at
target level...

Gius_.

 
 Ian
 
 On Sat, 2003-06-28 at 16:10, Ian MacLean wrote:
   
 
 Its definately in cvs. I've done a clean check out into a seperate 
 directory and the example below works fine. Are you seeing errors ? What 
 isn't working ?
 
 
 
 NAnt simply says Unknown task fileset.
 
 Gius_.
 
   
 
 Ian
 
 
 
 Ian,
 
 On Tue, 2003-06-24 at 11:35, Ian MacLean wrote:
  
 
   
 
 fileset references are done. I still need to add some unit tests and 
 polish a few things but its all working.
 
 try somthing like the following :
 
 fileset id=foo
includes name=*.*/   
 /fileset
 
 copy todir=. overwrite=true
fileset refid=foo/
 /copy
 
 There is now a general framework for referencable types. Its only 
 implemented for filesets right now.

 
 
 
 Is that on CVS?
 It doesn't seem so...
 
 Gius_.
 
  
 
   
 
 Ian
 
 
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 Nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers

 
 
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Problem with the resgen task on Linux

2003-06-28 Thread Giuseppe Greco
On Sat, 2003-06-28 at 16:22, Ian MacLean wrote:
 Guis,
 can you run with -verbose. Grab the commandline thats generated and try 
 it in a shell window. ie see if the same failure occurs when running 
 monoresgen by itself. If not can you post the full output generated by 
 nant - including stack trace.

No, monoresgen doesn't work... I'll post this to the Mono list.

Gius_.

 
 Ian
 
 
 Hi Gert,
 
 On Sat, 2003-06-28 at 13:48, Gert Driesen wrote:
   
 
 Hi Giuseppe,
 
 I looked at the code of the resgen task, and apparently it's not being
 executed on the mono runtime right now.
 
 The following comment is in the UsesRuntimeEngine property :
 
 // TO-DO : uncomment this when monoresgen no longer crashes when run with
 the mono runtime.
 
 I think that comment was put there by Ian, but I haven't checked this.
 
 Can you uncomment the code in in Resgen.UsesRuntimeEngine and try again ?
 
 
 
 I've tried it, but it doesn't work at all.
 
 This is the error message:
 
 Error: Exception has been thrown by the target of an invocation.
 Total time: 0 seconds.
 
 May be that's why Ian commented out lines from 130 to 135 in
 ResGenTask.cs ...
 
 Gius_.
 
   
 
 Gert
 
 - Original Message - 
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]
 Sent: Saturday, June 28, 2003 11:44 AM
 Subject: [nant-dev] Problem with the resgen task on Linux
 
 
 
 
 Hi all,
 
 I've target like this:
 
 target
   name=build
   description=Builds resource binaries for de-DE culture
   mkdir
 dir=${build.dir}/bin/${culture}
 failonerror=false/
   resgen
 input=${assembly}.resx
 output=${assembly}.${culture}.resources
 todir=${build.dir}/bin/${culture}/
   al
 target=lib
 culture=${culture}
 output=${build.dir}/bin/${culture}/${assembly}.resources.dll
 sources basedir=${build.dir}/bin/${culture}
   includes name=*.resources/
 /sources
   /al
 /target
 
 The target above just generates a .resources file and the
 related satellite resource assembly DLL.
 
 It works on Windows, but it doesn't on Linux!
 monoresgen complies like this:
 
 /home/genius/projects/gekkota/src/Gekkota.Core/de-DE/default.build(44,60):
  resgen task/usr/local/bin/monoresgen.exe failed to start.
 
 Cannot find the specified file
 
 The *.resx file to compile is there and error free (otherwise it
 wouldn't have compiled on Windows)... Does anybody know more on this?
 
 Gius_.
 -- 
 
 Giuseppe Greco
 
 ::agamura::
 
 phone:  +41 (0)91 604 67 65
 mobile: +41 (0)76 390 60 32
 email:  [EMAIL PROTECTED]
 web:www.agamura.com
 
 
 
 
 ---
 This SF.Net email sponsored by: Free pre-built ASP.NET sites including
 Data Reports, E-commerce, Portals, and Forums are available now.
 Download today and enter to win an XBOX or Visual Studio .NET.
 http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
 ___
 nant-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
   
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Anonymous CVS

2003-06-28 Thread Giuseppe Greco
Hi all,

DocBook source files of the documents Building Projects With NAnt
and C# Coding Guidelines can be checked out from anonymous CVS:

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/technotes
  co building-projects-with-nant csharp-coding-guidelines

They have been compiled on Linux using xsltproc as XSLT processor
and Apache FOP as FO processor (I plan to switch from FOP to xmlroff
very soon). If you intend to compile them on Windows, you have to
adjust the build files depending on the tools you are using.

Software requirements and build instructions can be found in the
file INSTALL, which is part of the distribution.

Gius_.
 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Building Projects With NAnt

2003-06-27 Thread Giuseppe Greco
Hi all,

Since I've decided to adopt NAnt as the standard build
tool here at ::agamura::, I've written a document titled
Building Projects With NAnt...

It is available at http://developer.agamura.com/technotes
either in PDF or HTML format -- DocBook source files will
be available soon.

May be it could be helpful for those who are new to NAnt...
It covers NAnt basics and introduces how projects should
be structured.

Any comment, suggestion, or critic is welcome!

Gius_.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] CVS issue...

2003-06-27 Thread Giuseppe Greco
On Sat, 2003-06-28 at 06:05, Ian MacLean wrote:
 Guis,
 
 ZipTaskTest.cs is the very last file in the cvs tree. Does it actually get checked 
 out or does it get everything else but that file ?
 I just did a clean 'cvs co nant' and built with no issues.
 Ian

I get this problem time to time...

For example, right now I'm able to checkout NAnt
from CVS without problems, But last week I had
exactly the same troubles as yesterday evening.

Gius_.

 
 
 Hi all,
 
 I'm trying to checkout NAnt from CVS and it works
 up to 'U nant/tests/NAnt.Zip/Tasks/ZipTaskTest.cs'...
 
 Then, at that point, it blocks an nothing more
 happens...
 
 If I stop CVS with CTRL+C, then NAnt doesn't compile...
 
 Gius_.
 
   
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Building Projects With NAnt

2003-06-27 Thread Giuseppe Greco
On Sat, 2003-06-28 at 06:23, Ian MacLean wrote:
 will the html version be hosted somewhere so we can link to it from the 
 NAnt home page ?

Et voil!

http://developer.agamura.com/technotes/building-projects-with-nant/

The HTML version is now online.

Note that I'm building a new web site for ::agamura:: and this URL
may be changed... but don't worry, if the case, I'll notice that
in advance.

Gius_.

 
 Ian
 
 Hi all,
 
 Since I've decided to adopt NAnt as the standard build
 tool here at ::agamura::, I've written a document titled
 Building Projects With NAnt...
 
 It is available at http://developer.agamura.com/technotes
 either in PDF or HTML format -- DocBook source files will
 be available soon.
 
 May be it could be helpful for those who are new to NAnt...
 It covers NAnt basics and introduces how projects should
 be structured.
 
 Any comment, suggestion, or critic is welcome!
 
 Gius_.
   
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [nant-dev] Building Projects With NAnt

2003-06-27 Thread Giuseppe Greco
Ian,

On Sat, 2003-06-28 at 06:15, Ian MacLean wrote:
 Nice work Guis.

Thanks.

 One small point - the nant build file has no install 
 target yet.

I know... I've just anticipated what we are going to do soon.
Do you remember the discussion we had a couple of days ago?

Ev. we could temporarily remove the Installing NAnt
section.

Gius_.

 I agree we should add it. Its just not been implemented yet.
 Ian
 
 Hi all,
 
 Since I've decided to adopt NAnt as the standard build
 tool here at ::agamura::, I've written a document titled
 Building Projects With NAnt...
 
 It is available at http://developer.agamura.com/technotes
 either in PDF or HTML format -- DocBook source files will
 be available soon.
 
 May be it could be helpful for those who are new to NAnt...
 It covers NAnt basics and introduces how projects should
 be structured.
 
 Any comment, suggestion, or critic is welcome!
 
 Gius_.
 
   
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Re: [Nant-users] Re: [nant-dev] Building Projects With NAnt

2003-06-27 Thread Giuseppe Greco
Jaroslaw,

First of all, thank you for your feedback! I've really appreciated it.

On Fri, 2003-06-27 at 23:55, Jaroslaw Kowalski wrote:
 I think it's a good idea to promote good build system design and I think
 that your document is a step in the right direction.
 
 I like the idea of being able to treat all subprojects in a generic way. You
 use gateway build files for that purpose, but I think that this kind of
 functionality should be directly supported with NAnt, so you don't need to
 resort to this kind of hack.
 
 I think, one should be able to invoke nant like this (or with some other
 syntax):
 
 nant target=${target}
 buildfiles
 includes ... /
 /buildfiles
 /nant
 

This would be nice... but it is not implemented yet.

The main advantage of gateway build files, is that you can add
new subprojects without having to modify any build file.

 This can be even used with recently added named filesets feature. You
 would define a (single) fileset that would keep all your *.build files and
 invoke various targets on it using simple one-liner without the need of a
 gateway file trick.
 
 I don't remember the exact syntax for named filesets, but the concept is:
 
 fileset id=childrenBuildFiles
 includes file=**/*.build /
 /fileset
 
 target name=build
 nant target=build fileset=childrenBuildFiles /
 /target
 

Yes, the syntax is correct. I'll introduce an example ASAP -- fileset
references are available since last Tuesday...

 This would make your *.build files MUCH more readable, and simplicity and
 readability is (imho) the most iportant part of a build system.
 
 What do you think?

I think we could discuss all together how to continue the development
of this document; as soon as I'll publish the DocBook source files,
anybody will be able to enhance it...

Gius_.

 
 Jarek
 - Original Message -
 From: Giuseppe Greco [EMAIL PROTECTED]
 To: NAnt Developers [EMAIL PROTECTED]; NAnt Users
 [EMAIL PROTECTED]
 Sent: Friday, June 27, 2003 10:29 PM
 Subject: [nant-dev] Building Projects With NAnt
 
 
  Hi all,
 
  Since I've decided to adopt NAnt as the standard build
  tool here at ::agamura::, I've written a document titled
  Building Projects With NAnt...
 
  It is available at http://developer.agamura.com/technotes
  either in PDF or HTML format -- DocBook source files will
  be available soon.
 
  May be it could be helpful for those who are new to NAnt...
  It covers NAnt basics and introduces how projects should
  be structured.
 
  Any comment, suggestion, or critic is welcome!
 
  Gius_.
 
  --
  
  Giuseppe Greco
 
  ::agamura::
 
  phone:  +41 (0)91 604 67 65
  mobile: +41 (0)76 390 60 32
  email:  [EMAIL PROTECTED]
  web:www.agamura.com
  
 
 
 
  ---
  This SF.Net email sponsored by: Free pre-built ASP.NET sites including
  Data Reports, E-commerce, Portals, and Forums are available now.
  Download today and enter to win an XBOX or Visual Studio .NET.
  http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
  ___
  nant-developers mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/nant-developers
 
 
 
 
 ---
 This SF.Net email sponsored by: Free pre-built ASP.NET sites including
 Data Reports, E-commerce, Portals, and Forums are available now.
 Download today and enter to win an XBOX or Visual Studio .NET.
 http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
 ___
 Nant-users mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-users
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] fileset references

2003-06-24 Thread Giuseppe Greco

-- Original Message --
From: Ian MacLean [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [nant-dev] fileset references
Date: Tue, 24 Jun 2003 18:35:04 +0900


fileset references are done. I still need to add some unit tests and 
polish a few things but its all working.

try somthing like the following :

fileset id=foo
includes name=*.*/   
/fileset

copy todir=. overwrite=true
fileset refid=foo/
/copy

There is now a general framework for referencable types. Its only 
implemented for filesets right now.

Wow, I'll try it immediately!
Thanks,

Gius_.


Ian




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Compiling NAnt on Linux

2003-06-13 Thread Giuseppe Greco
Hi all,

I'm trying to compile the latest version of NAnt on Linux,
but due to a bug in Mono, I've to give up.

It is always the same error:

INTERNAL ERROR
 
System.IO.FileNotFoundException: Could not find file
file://home/home/genius/pr ojects/nant/NAnt.build

(as you can see, the URL is wrong).

Gert has already reported the problem to the Mono
team, and I hope they will solve it asap (in the last
two weeks I wasn't able to compile NAnt on Linux
anymore).

Does anybody found a workaround?

Gius_.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] Unable to checkout NAnt from CVS

2003-06-07 Thread Giuseppe Greco
Hi all, Ian,

This morning I've tried to checkout NAnt from CVS,
but it always gives up...

Here are the error messages:

cvs server: Updating nant/src/NAnt.Win32/Tasks
cvs server: failed to create lock directory for
`/cvsroot/nant/nant/src/NAnt.Win32/Tasks'
(/cvsroot/nant/nant/src/NAnt.Win32/Tasks/#cvs.lock): Permission
deniedcvs server: failed to obtain dir lock in repository
`/cvsroot/nant/nant/src/NAnt.Win32/Tasks'
cvs [server aborted]: read lock failed - giving up

It looks like there are problems with permissios...

Gius_.
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


[nant-dev] [Fwd: [Nant-users] Problem with the exec task]

2003-05-30 Thread Giuseppe Greco
Sorry,

I've accidentally sent this email to the users
mailing list...

Gius_.

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com

---BeginMessage---
Hi all,

There is a problem with the exec task. To produce a
Formattings Object (FO) file, I've written a task like
this:

exec program=xsltproc output=${build.dir}/mydocument.fo
  commandline=mystylesheet.xsl mydocument.xml/

If you give a look at the generated mydocument.fo file,
only the first output line generated by xsltproc is there...
the rest is lost.

This is just an example; I stated the same problem with
other programs when trying to redirect output with the
'output' property.

Gius_.


Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
---End Message---


[nant-dev] Problem with the copy task on Linux

2003-05-29 Thread Giuseppe Greco
Hi all,

giving the following directory structure

project
   +-file1
   +-file2
   +-src
  +-file3
  +-file4

... and the following task

copy todir=/tmp overwrite=true
  fileset basedir=.
includes name=**/
  /fileset
/copy

I've the following problem on Linux (on Windows it does work):

only file1 and file2 are copied into the /tmp directory. The src
directory and its content (file3 and file4) is ignored.

Gius_.
 
-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com




---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers