Carl Malikowski wrote: > > Thanks – I’ve made some progress, but am still a bit puzzled. I’ve > found I can execute regasm via the exec task, if I set the working > directory to where it resides. The environment already has > “C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322” in PATH so I’m somewhat > surprised. In a nutshell, this is part of a registry cleanup I perform > before we build. The code below does work: > > <foreach item="File" property="filename"> > > <in> > > <items> > > <include > name="${clean.path}\**\Work\APPStandardVB.NET\**\APPStandardVB.NET.dll"/> > > </items> > > </in> > > <do> > > <exec program="regasm" > workingdir="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322" > > commandline = "/nologo /tlb /u ${filename}" /> > > </do> > > </foreach> > > I still can’t access regasm as a task though. Perhaps this info will help. > What's ${clean.path} and the current working directory? Do either of them have a space in the path?
My guess is the answer is yes, but even if it's not, you should get into the habit of making sure properties being passed to <exec> are properly quoted. You could do that by inserting the quotes (which is a bit of a nuisance in XML), but the better approach is to use the <arg value=...> element for the <exec> task. See the NAnt docs for some examples. Gary ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users