Hi,

I got this error when I’m trying to do my build.

 

INTERNAL ERROR

 

System.IO.IOException: The process cannot access the file "D:\DailyBuild\TestLog.log" because it is being used by another process.

   at System.IO.__Error.WinIOError(Int32 errorCode, String str)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

   at NAnt.Contrib.Util.FileLogListener.Start()

   at NAnt.Contrib.Tasks.RecordTask.ExecuteTask()

   at NAnt.Core.Task.Execute()

   at NAnt.Core.Target.Execute()

   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)

   at NAnt.Core.Project.Execute()

   at NAnt.Core.Project.Run()

 

Here’s the code where it’s erroring out:

<property name="build.dir" value="bin"/>

    <property name="log.file" value=" TestLog.log"/>

 

    <!-- *** Cleans directory *** -->

    <target name="clean">

      <record name="${log.file}" level="Debug" action="" />

      <delete dir="${build.dir}" verbose="true"

if="${directory::exists(build.dir)}" />

    </target>

 

I hope you can help me solve this problem.

 

Thanks!

Grace


Attention:
The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

This email message has been scanned for Viruses and Content and cleared by NetIQ MailMarshal

Reply via email to