Yes sorry. Unfortunately I really don't know what the problem was. I think it 
was the working Directory like you pointed out. But I also changed the two arg 
lines'

 

They used to be

 

<arg value="${project.installer.file}"/>

<arg line="-nowait"/>

 

To 

<arg file="${project.installer.file}"/>

<arg value="-nowait"/>

 

 

I also added the new parameter 

 

"workingDir="${project.installer.file"

 

Right at this time I don't have time to investigate which one fixed it, but I 
believe it was the "workingDir" parameter.

 

Again thanks to everyone for there help.

 

Scott Mitchell

________________________________

From: Bob Archer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 06, 2008 10:23 AM
To: Scott Mitchell
Subject: RE: [NAnt-users] Exec command

 

You're not going to tell us all what the problem was?

 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Mitchell
Sent: Tuesday, May 06, 2008 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [NAnt-users] Exec command

 


Thanks to everyone that helped me I got it working. 


Here is the command now that works great.


<exec program="${project.installer.build.exe}" 


      basedir="${project.installer.base.dir}"


      failonerror="false" 


      verbose="${project.verbose}" 


      workingdir="${project.installer.base.dir}">


      <arg file="${project.installer.file}" />


      <arg value="-nowait" />


</exec>


Again thanks to everyone for there help.


 


Scott Mitchell


 


Re: [NAnt-users] Exec command


Gert Driesen
Tue, 06 May 2008 00:31:25 -0700

Scott:
Please run NAnt in debug mode (NAnt.exe -debug ...), and post the relevant 
output here.
 
Bob:
The useruntimeengine is used to indicate the you want to run a managed 
application. This has no effect when you're targeting .NET, but is necessary 
when you're targeting Mono.
 
In NAnt 0.86, "useruntimeengine" has been deprecated in favor of a newly 
introduced "managed" attribute which can not only be used to specify that 
you're executing a managed application, but it also allows you to force the 
managed app to be executed using the currently target CLR.
 
Meaning, if you have an assembly built for .NET 1.1 and you're targeting .NET 
2.0 in NAnt, then you can use set the "managed" attribute to "strict" to 
instruct the CLR (either .NET or Mono) to run application on the current target 
framework (eg. .NET 2.0).
 
Gert
 
 
From: Bob Archer 
Sent: Monday, May 05, 2008 11:31 PM
To: Scott Mitchell ; [EMAIL PROTECTED]
Subject: Re: [NAnt-users] Exec command
 
 
Ideas.
 
 
 
  1.. Set resultpropert and set failonerror to false. This way you can see what 
errorcode was returned and that may give you a hint. 
  2.. Are there any environmental variables that need to be set for it to work? 
Perhaps you need to set them. 
  3.. Try setting useruntimeengine to true. I could never find good docs on 
what this did, but sometimes it helps. I think it has to do with if a new cmd 
process is opened or not. 
 
 
BOb
 
 
 
 
 
 
--------------------------------------------------------------------------------
 
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Scott Mitchell
Sent: Monday, May 05, 2008 5:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [NAnt-users] Exec command
 
 
 
Hi Bob,
Yes I have verbose on, here is my exact command.
<exec program="${project.installer.build.exe}" 
basedir="${project.installer.base.dir}"
                        failonerror="false" verbose="${project.verbose}" >
                        <arg value="${project.installer.file}" />
                        <arg line="-nowait" />
            </exec>
Like I said it gets about half way through the installer build, before it goes 
belly up. The working directory is being set correctly, that was the first 
thing I checked. Oh yeah, and verbose is set to true, and I can see it 
compressing he files until all the sudden it stops. 
 
Thanks,
Scott Mitchell
 
Re: [NAnt-users] Exec command
Bob Archer
Mon, 05 May 2008 13:13:36 -0700
 
Did you try setting verbose to true to see what was happening? Perhaps it is 
not running in the directory you are expecting? Try setting the working 
directory to the directory you are in when you run it from the command line. A 
lot of times that is my trouble when EXEC doesn't work.   BOb     
________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On 
Behalf Of Scott MitchellSent: Monday, May 05, 2008 4:08 PMTo: [EMAIL 
PROTECTED]Subject: [NAnt-users] Exec command   I am having a problem with the 
<exec> command. (I think it is the <exec> command at least)   I have started 
switching our build system to use NANT for the building of our software. It is 
going very good, and has replaced so much of our old Perl scripts, with 
relative ease. The problem I have run into is building our installer .exe. We 
use Ghost Installer, and this has been working with our Perl scripts by just 
calling it in a system() call with the command line. Now I can also run this 
installer builder from the command line with out any problems. But when I try 
to run this command line form the <exec> command it makes it through about ½ 
way building the actual installer and then it comes back with and "unknown 
error" and does not build the installer. But like I said the weird thing is I 
can run this from the command line and through the Ghost Installer Builder and 
build the installer without problems, but when using <exec> , it almost always 
fail. I have also as a test put the command line call in a .bat file, and tried 
calling the .bat file form the <exec> command but I run in to the same problem 
still. I know this is not much to go on, I just thought I would ask here to see 
if this sounds like anything anyone else has experienced.    Thanks in advance 
for any help.   Scott Mitchell   -- Scott Mitchell Engineering   Colorado vNet  
 direct 970 203 3756 main 970 203 3700 fax 970 203 3701   email [EMAIL 
PROTECTED] <[EMAIL PROTECTED]>  web www.coloradovnet.com 
<http://www.coloradovnet.com>    255 East Sixth Street Loveland, Colorado 80537 
     

 

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to