[nant-dev] [ nant-Bugs-1107410 ] cvs-tag not working as I would expect

2005-01-28 Thread SourceForge.net
Bugs item #1107410, was opened at 2005-01-22 10:10
Message generated for change (Comment added) made by drakmar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=402868aid=1107410group_id=31650

Category: None
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason S Morris (jsmorris)
Assigned to: Nobody/Anonymous (nobody)
Summary: cvs-tag not working as I would expect

Initial Comment:
I am trying to emulate how I do commits, updates and 
tags using TortoiseCVS 1.8.11 (CVSNT 2.0.58d 
(client/server)) in my Nant build scripts using NAnt 0.85 
(Build 0.85.1845.0; nightly; 1/19/2005).

The cvscommit/cvs and cvs-update are 
working, thanks to Clayton for adding the .cvsignore's.  
But, the cvs-tag is giving me some trouble. 

The command that TortoiseCVS 1.8.11 (Concurrent 
Versions System (CVSNT) 2.0.58d (client/server)) runs 
is:

In C:\projects\test: C:\Program 
Files\TortoiseCVS\cvs.exe -q -x tag -
c v_jason2 .
CVSROOT=:sspi:ocsccsdcvs03:\capability

So, I tried to set up my cvs-tag as similarly

cvs-tag cvsroot=${cvs.root}
 usesharpcvslib=false
 verbose=false
 failonerror=true
 tag=v_test
 commandline=-c
arg line=-q -x /
/cvs-tag

And I get this build failure message:

BUILD FAILED

C:\projects\test\test.build(40,10):
NAnt.SourceControl.Tasks.TagTask: C:\Program 
Files\TortoiseCVS\cvs.exe had error s. Please see 
log4net log.
Length can not be less than zero.
Parameter name: length

After poking around for awhile, I found that the error is 
that I didn't specify the module attribute.  This is most 
likely a bug in that the error message should be 
corrected to specify the correct parameter name and 
the docs changed to say that the module name is 
required.  However, I don't think that it should be 
required since I got the cvs-update task to work 
without specifying a module.

Now my modified task is

cvs-tag cvsroot=${cvs.root}
 usesharpcvslib=false
 verbose=false
 failonerror=true
 tag=v_test
 commandline=-c
 module=.
arg line=-q -x /
/cvs-tag

And I get this build failure message:

  [cvs-tag] cvs server: nothing known about .cvsignore
  [cvs-tag] cvs server: nothing known about File1.txt
  [cvs-tag] cvs server: nothing known about File2.txt
  [cvs-tag] cvs server: nothing known about File3.txt
  [cvs-tag] cvs server: nothing known about File4.txt
  [cvs-tag] cvs server: nothing known about File5.txt
  [cvs-tag] cvs server: nothing known about test.build
  [cvs-tag] cvs server: nothing known about .cvsignore
  [cvs-tag] cvs server: nothing known about File1.txt
  [cvs-tag] cvs server: nothing known about File2.txt
  [cvs-tag] cvs server: nothing known about File3.txt
  [cvs-tag] cvs server: nothing known about File4.txt
  [cvs-tag] cvs server: nothing known about File5.txt
  [cvs-tag] cvs server: nothing known about File1.txt
  [cvs-tag] cvs server: nothing known about File2.txt
  [cvs-tag] cvs server: nothing known about File3.txt
  [cvs-tag] cvs server: nothing known about File4.txt
  [cvs-tag] cvs server: nothing known about File5.txt
  [cvs-tag] cvs server: nothing known about File1.txt
  [cvs-tag] cvs server: nothing known about File2.txt
  [cvs-tag] cvs server: nothing known about File3.txt
  [cvs-tag] cvs server: nothing known about File4.txt
  [cvs-tag] cvs server: nothing known about File5.txt
  [cvs-tag] cvs [server aborted]: correct the above 
errors first!

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

C:\projects\test\test.build(40,10):
External Program Failed: C:\Program 
Files\TortoiseCVS\cvs.exe (return code was 1)

I would like to know if I am doing something incorrectly 
or if there is a bug in the task.

As a workaround, I was able to define it like this and get 
it to work

cvs usesharpcvslib=false
 command=tag
 commandline=-c 
quot;v_${datetime::get-ticks(datetime::now())}
quot;
 verbose=true
 failonerror=true
 module=.
arg line=-q -x /
/cvs

Thanks,
Jason

PS  I attached my test build script along with the test 
directory tree I used to work out these issues.  Just add 
all files to a local repository, change the cvs.root 
property to give it a try.

--

Comment By: Clayton Harbour (drakmar)
Date: 2005-01-27 08:26

Message:
Logged In: YES 
user_id=677222

Hi Jason, I am really sorry you are correct I did not download 
the test cases in the zip file.  I will take a closer look at it 
tonight.

--

Comment By: Jason S Morris (jsmorris)
Date: 2005-01-25 23:28

Message:
Logged In: YES 
user_id=405288

I 

[nant-dev] [ nant-Bugs-1110832 ] Problem with project xml element.

2005-01-28 Thread SourceForge.net
Bugs item #1110832, was opened at 2005-01-27 18:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=402868aid=1110832group_id=31650

Category: Core
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Amir Kolsky (kolsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with project xml element.

Initial Comment:
The following is a sample build file with the scheme 
specification:
?xml version=1.0?
nant:project name=Bad Sample default=A 
xmlns:nant=http://nant.sf.net/release/0.85-
rc1/nant.xsd  
xmlns:xsi=http://www.w3.org/2001/XMLSchema-
instance 
xsi:schemaLocation=http://nant.sf.net/release/0.85-
rc1/nant.xsd
C:\PROGRA~1\Nant\schema\nant.xsd
target name=A/
/nant:project

This snippet passes validation.

However, when ran an error stating that there is no 
target A in the file is displayed.

The following file which does not have the schema in it 
works.

?xml version=1.0?
project name=Bad Sample default=A
target name=A/
project

This bug means that we can not use validating editors 
to generate the .build files as their output is not 
accepted by NAnt.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=402868aid=1110832group_id=31650


---
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] Support for global collections / referencable types

2005-01-28 Thread Gert Driesen
Hi,

I've added a possible implementation to CVS that allows us to support global
collections. 

To summarize implementation : 

- modify the collection class to derive from a new DataTypeCollectionBase
- have it implement Ilist
- add an ElementName attribute (with the name of the global type)
- add a BuildElement attribute to the Add method

Classes that use the collection should have both a getter and a setter for
the collection to allow the referenced type to be set.

That last part is what I have a problem with: I'd really like to have an
implementation that avoids the need for having setters on collection based
properties. Anyone have any bright ideas on this or does anyone have time to
give this some thought ? How exactly has support for referencable types been
implemented in Ant ? Any lessons we can learn from them ?

As a example / proof of concept, I've transformed the imports child
element that is used in vbc, script and asminfo into a global type
called namespaceimports.

This allows the following build fragment to be used:

project name=whatever default=build
namespaceimports id=test.imports
import namespace=System /
import namespace=System.Data /
import namespace=System.Windows.Forms /
/namespaceimports

target name=build
vbc ...
imports refid=test.imports /
...
/vbc
/target
/project

Any feedback on the implementation is greatly appreciated !

Gert



---
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] cvs-pass exception when user name contains full stop

2005-01-28 Thread Chris Fewtrell



Hello

I getan 
exception (see end) whenever I use a user name with a full stop in 
it.

Example : - 


 
target name="CvsLogin" description="Logs into 
cvs" cvs-pass 
 
cvsroot=":pserver:[EMAIL PROTECTED]:/cvsrepo" 
 
passfile="C:\.cvspass" 
 
password="M3hPassword" 
 
failonerror="true" 
 
verbose="true" / /target

The 
abovefailswhereas this works fine...

 target name="CvsLogin" 
description="Logs into cvs" 
cvs-pass 
 
cvsroot=":pserver:[EMAIL PROTECTED]:/cvsrepo" 
 
passfile="C:\.cvspass" 
 
password="M3hPassword" 
 
failonerror="true" 
 
verbose="true" / 
/target


The exception 
is
ICSharpCode.SharpCvsLib.Misc.CvsRootParseException: Bad 
cvsroot. Expected ( 
:protocol:[EMAIL PROTECTED]:port]:[C:]/path/to/repos ) 
Found ( :pserver:[EMAIL PROTECTED]:/cvsrepo ) at 
ICSharpCode.SharpCvsLib.Misc.CvsRoot.Parse(String cvsRoot) at 
ICSharpCode.SharpCvsLib.Misc.CvsRoot..ctor(String cvsRoot) at 
NAnt.SourceControl.Tasks.CvsPass.ExecuteTask() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.SourceControl\Tasks\CvsPass.cs:line 
135 at NAnt.Core.Task.Execute() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Task.cs:line 
177 at NAnt.Core.Target.Execute() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Target.cs:line 
249 at NAnt.Core.Project.Execute(String targetName, Boolean 
forceDependencies) in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Project.cs:line 
at NAnt.Core.Project.Execute(String targetName) in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Project.cs:line 
852 at NAnt.Core.Tasks.CallTask.ExecuteTask() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Tasks\CallTask.cs:line 
132 at NAnt.Core.Task.Execute() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Task.cs:line 
177 at NAnt.Core.Target.Execute() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Target.cs:line 
249 at NAnt.Core.Project.Execute(String targetName, Boolean 
forceDependencies) in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Project.cs:line 
at NAnt.Core.Project.Execute() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Project.cs:line 
839 at NAnt.Core.Project.Run() in 
C:\Source\NAnt\nant-0.85-nightly-2005-01-23\src\NAnt.Core\Project.cs:line 
924

Please send bug report to nant-developers@lists.sourceforge.net.

__
This email has been scanned by the MessageLabs Email Security System
- after being sent from Granta Design Ltd 
__



[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


RE: [nant-dev] Support for global collections / referencable types

2005-01-28 Thread Castro, Edwin Gabriel (Firing Systems Engr.)
I have a suggestion. All collections should support the Composite
pattern. I've had many situations where I've wanted to specify multiple
filesets or divide up the namespace imports and then collect them up
where they are used.

Suppose I have three different namespace imports (N1, N2, and N3) and
two projects (P1 and P2). P1 requires N1 and N2. P2 requires N1 and N3.
Clearly I would define N1 as a global namespace import and each project
would define the extra imports it requires.

If this capability already exists then I'm happy. A hint to how this is
accomplished would be appreciated in that case.

--Edwin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gert
Driesen
Sent: Thursday, January 27, 2005 11:58 AM
To: 'Nant Dev'
Cc: '[EMAIL PROTECTED] Sourceforge. Net'
Subject: [nant-dev] Support for global collections / referencable types

Hi,

I've added a possible implementation to CVS that allows us to support
global
collections. 

To summarize implementation : 

- modify the collection class to derive from a new
DataTypeCollectionBase
- have it implement Ilist
- add an ElementName attribute (with the name of the global type)
- add a BuildElement attribute to the Add method

Classes that use the collection should have both a getter and a setter
for
the collection to allow the referenced type to be set.

That last part is what I have a problem with: I'd really like to have an
implementation that avoids the need for having setters on collection
based
properties. Anyone have any bright ideas on this or does anyone have
time to
give this some thought ? How exactly has support for referencable types
been
implemented in Ant ? Any lessons we can learn from them ?

As a example / proof of concept, I've transformed the imports child
element that is used in vbc, script and asminfo into a global type
called namespaceimports.

This allows the following build fragment to be used:

project name=whatever default=build
namespaceimports id=test.imports
import namespace=System /
import namespace=System.Data /
import namespace=System.Windows.Forms /
/namespaceimports

target name=build
vbc ...
imports refid=test.imports /
...
/vbc
/target
/project

Any feedback on the implementation is greatly appreciated !

Gert



---
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


[nant-dev] [ nant-Bugs-1110737 ] solution task throws on reference to VB.NET runtime

2005-01-28 Thread SourceForge.net
Bugs item #1110737, was opened at 2005-01-27 15:09
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=402868aid=1110737group_id=31650

Category: Tasks
Group: 0.84-rc1
Status: Open
Resolution: None
Priority: 5
Submitted By: jrv (jrv72)
Assigned to: Gert Driesen (drieseng)
Summary: solution task throws on reference to VB.NET runtime

Initial Comment:
The exception:

System.Exception: Couldn't find referenced type 
library 'C:\WINDOWS\system32\Msvbvm60.dll\3'.
   at NAnt.VSNet.Reference.HandleWrapperImport
(XmlElement elemReference) in D:\Program 
Files\NAnt\NAnt.84\src\NAnt.VSNet\Reference.cs:line 
387
   at NAnt.VSNet.Reference..ctor(Solution solution, 
ProjectSettings ps, XmlElement elemReference, 
SolutionTask solutionTask, String outputDir) in 
D:\Program Fil
es\NAnt\NAnt.84\src\NAnt.VSNet\Reference.cs:line 124
   at NAnt.VSNet.Project.Load(Solution sln, String 
projectPath) in D:\Program Files\NAnt\NAnt.84
\src\NAnt.VSNet\Project.cs:line 194
   at NAnt.VSNet.ProjectFactory.LoadProject(Solution 
sln, SolutionTask slnTask,TempFileCollection tfc, String 
outputDir, String path) in D:\Program 
Files\NAntNAnt.84\src\NAnt.VSNet\ProjectFactory.cs:line 70
[more deleted...]

As best I can tell, the problem is because the 
HandleWrapperImport method encounters a typelib 
registration format it isn't expecting. The problem occurs 
in the lines:

_typelibFile = (string) registryKey.GetValue(null);

if (!File.Exists(_typelibFile)) {
   throw new Exception(string.Format
(CultureInfo.InvariantCulture, 
   Couldn't find referenced type library '{0}'., 
_typelibFile));

The value for the VB.NET runtime library 
is C:\WINDOWS\system32\Msvbvm60.dll\3, where I 
believe the \3 on the end refers to the resource id. 
Some other typelib registrations also have this format so 
I don't believe it is an error, although I am by no means 
a COM registration wizard.

My workaround is to remove the last two characters if 
the string ends in \3, but that's obviously not so 
robust, and I'm not sure if there's other code that would 
depend on loading the typelib resource out of the file. It 
did seem to fix the problem.

So long,
JR


--

Comment By: Gert Driesen (drieseng)
Date: 2005-01-28 20:43

Message:
Logged In: YES 
user_id=707851

This should work fine in NAnt 0.85.

Can you try NAnt 0.85 RC1 or a recent nightly build 
(http://nant.sourceforge.net/nightly/latest) and let us know 
if that worked fine ?



--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=402868aid=1110737group_id=31650


---
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] RemoveFile table.

2005-01-28 Thread Murali Maddali
Hello Guys,

How can I remove or delete the directory during uninstall. 

I believe the RemoveFile table in msi is used for this purpose. 

I am using msi task to build the msi.

Please advice.

Thank you.

Regards, 
Murali k Maddali. 
UAI, Inc. 
Office (256) 705-5191 
Others see things as they are and wonder why; I see them as they are not
and say why not? - Robert Kennedy



-
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.


---
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