[NAnt-users] msi task - 'cabarc' failed to start
Hi, I saw a thread with the same subject approx a year ago in the mail archive, but I did not see any resolution. I am having the same exact problem. At the end of this email is the output from running the msi task from my nant script. I have not done anything with setting a path (either env variable or within the nant script itself). At this time, my msi task is very simple - I only have sourcedir defined as the directory that contains the files to put into the installer, and output defined to be the name of the msi installer. My application is a VS2008 solution built on .net 3.5 framework. Did the person with this same problem ever get it figured out? Are people able to successfully use the msi task with nant? If so, did you have to do some special configuration to get it to work? Thanks, Beth Build Error : C:\content\ContentTrunk\ContentManagementTool\srcnant Distribute NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) Copyright (C) 2001-2007 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/content/ContentTrunk/ContentManagementTool/src/ContentManagem entTool.build Target framework: Microsoft .NET Framework 3.5 Target(s) specified: Distribute Distribute: [msi] Building Installer Database 'C:/BuildArea/ContentManagementTool/Distribute/ContentManagementTool.msi '. [msi] Compressing Files... [exec] Starting 'cabarc (-r N C:/BUILDA~1/CONTEN~1/Publish/\ContentManagementTool.cab *)' in 'C:\Documents and Settings\user\Temp\tmpC2C.tmp' BUILD FAILED C:\content\ContentTrunk\ContentManagementTool\src\ContentManagementTool. build(176,4): Unable to build Installer database 'C:/BuildArea/ContentManagementTool/Distribute/ContentManagementTool.msi '. C:\content\ContentTrunk\ContentManagementTool\src\ContentManagementTool. build(176,4): Error creating cab file. 'cabarc' failed to start. The system cannot find the file specified Total time: 1 seconds. --- This email and any files transmitted with it are confidential proprietary to Systems and Software Enterprises, Inc. (dba IMS). This information is intended solely for the use of the individual or entity to which it is addressed. Access or transmittal of the information contained in this e-mail, in full or in part, to any other organization or persons is not authorized. --- -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] FTP Task
Does anyone have any ideas on this?? On Tue, Jan 27, 2009 at 10:18 AM, Karl Stubsjoen kst...@gmail.com wrote: Hello, I need to make a tweak to the FTP task. When it compares dates from my local system to remote system, the date of the remote system is off by 1 hour, so code I've made changes to inside this hour do not get ftp'd when overwrite is false. I'm hoping to: a) configure the FTP task somehow b) tweak the source code If option b, where can I find the source code? Thanks, Karl.. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] msi task - 'cabarc' failed to start
Beth, Do you have the Cabinet SDK installed? Can you launch cabarc.exe from the command prompt? Gert From: Beth Hechanova [mailto:bhechan...@imsco-us.com] Sent: woensdag 28 januari 2009 19:30 To: nant-users@lists.sourceforge.net Subject: [NAnt-users] msi task - 'cabarc' failed to start Hi, I saw a thread with the same subject approx a year ago in the mail archive, but I did not see any resolution. I am having the same exact problem. At the end of this email is the output from running the msi task from my nant script. I have not done anything with setting a path (either env variable or within the nant script itself). At this time, my msi task is very simple - I only have sourcedir defined as the directory that contains the files to put into the installer, and output defined to be the name of the msi installer. My application is a VS2008 solution built on .net 3.5 framework. Did the person with this same problem ever get it figured out? Are people able to successfully use the msi task with nant? If so, did you have to do some special configuration to get it to work? Thanks, Beth Build Error : C:\content\ContentTrunk\ContentManagementTool\srcnant Distribute NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) Copyright (C) 2001-2007 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/content/ContentTrunk/ContentManagementTool/src/ContentManagementT ool.build Target framework: Microsoft .NET Framework 3.5 Target(s) specified: Distribute Distribute: [msi] Building Installer Database 'C:/BuildArea/ContentManagementTool/Distribute/ContentManagementTool.msi'. [msi] Compressing Files... [exec] Starting 'cabarc (-r N C:/BUILDA~1/CONTEN~1/Publish/\ContentManagementTool.cab *)' in 'C:\Documents and Settings\user\Temp\tmpC2C.tmp' BUILD FAILED C:\content\ContentTrunk\ContentManagementTool\src\ContentManagementTool.buil d(176,4): Unable to build Installer database 'C:/BuildArea/ContentManagementTool/Distribute/ContentManagementTool.msi'. C:\content\ContentTrunk\ContentManagementTool\src\ContentManagementTool.buil d(176,4): Error creating cab file. 'cabarc' failed to start. The system cannot find the file specified Total time: 1 seconds. This email and any files transmitted with it are confidential proprietary to Systems and Software Enterprises, Inc. (dba IMS). This information is intended solely for the use of the individual or entity to which it is addressed. Access or transmittal of the information contained in this e-mail, in full or in part, to any other organization or persons is not authorized. Internal Virus Database is out of date. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.10.8/1898 - Release Date: 1/16/2009 3:09 PM -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] FTP Task
What FTP task are you referring to? This one from Google? http://www.google.com/search?q=nant+ftp+task http://www.spinthemoose.com/~ftptask/ If so, it looks like the date comparisons are hard-coded: // snip DateTime.Compare( _client.ModTime(Path.GetFileName(remoteFilePath)), (new FileInfo(fileName)).LastWriteTime)=0 // snip this.Log(this.LevelLogfiles, Remote file is newer.); It doesn't look like it can be easily extended. The task comes with a build script. You could modify the code then submit your changes back to the author. Maybe move DateTime.Compare into an interface: public interface IDateTimeCompare { int Compare(DateTime t1, DateTime t2); } public class DefaultDateTimeCompare : IDateTimeCompare { public int Compare(DateTime t1, DateTime t2) { return DateTime.Compare(t1, t2); } } public class OneHourBehindDateTimeCompare : IDateTimeCompare { public int Compare(DateTime t1, DateTime t2) { return DateTime.Compare(t1.AddHours(-1), t2); } } Or add a timeOffset attribute to the connection task and move the DateTime.Compare calls into a helper method that normalizes the times. - Original Message From: Karl Stubsjoen kst...@gmail.com To: nant-users@lists.sourceforge.net Sent: Wednesday, January 28, 2009 3:03:34 PM Subject: Re: [NAnt-users] FTP Task Does anyone have any ideas on this?? On Tue, Jan 27, 2009 at 10:18 AM, Karl Stubsjoen kst...@gmail.com wrote: Hello, I need to make a tweak to the FTP task. When it compares dates from my local system to remote system, the date of the remote system is off by 1 hour, so code I've made changes to inside this hour do not get ftp'd when overwrite is false. I'm hoping to: a) configure the FTP task somehow b) tweak the source code If option b, where can I find the source code? Thanks, Karl.. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users