[ 
http://jira.codehaus.org/browse/MOJO-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=205753#action_205753
 ] 

Igor Jacy Lino Campista commented on MOJO-1481:
-----------------------------------------------

Now after coming back to work, I run into the same problem in another computer, 
and now even with the build M22.
Failure was the same, locked file cannot be deleted. Quite annoying now.

So I applied now a clear workaround, which is, modified the 
build_preprocess.xml with an extra delay and as well do not fail on error 
during the delete:

{code:xml} 
  <target name="clean-temp" unless="clean_temp" description="Clean temp 
directory">
    <sleep seconds="1"/>
    <delete includeemptydirs="true" failonerror="false">
      <fileset dir="${dita.temp.dir}"></fileset>
    </delete>
  </target>
{code} 

now, I'm wondering why if I set the clean.temp=false   the target is not 
avoided (or even perhaps the delete).



> pdf script fails with locked file (using dita-maven-plugin)
> -----------------------------------------------------------
>
>                 Key: MOJO-1481
>                 URL: http://jira.codehaus.org/browse/MOJO-1481
>             Project: Mojo
>          Issue Type: Bug
>          Components: dita
>            Reporter: Igor Jacy Lino Campista
>         Attachments: sample.zip, sample_after_success.zip
>
>
> Hi,
> I have been generating PDFs as part of the a continous integration server
> using the DITA OT 1.5 M22 and the dita-maven plugin 1.0beta1.
> After using the latest DITA OT 1.5 final release, the script fails at the
> end due to a clean up that cannot be completed.
> The error log is:
> <delete.fo2pdf.topic.fo:
> <
> <topic2pdf2:
> <
> <dita2pdf2:
> <
> <clean-temp:
> <
> <BUILD FAILED
> <C:\calypso-tools\calypso_trunk\documentation\lib\target\DITA-OT1.5\build.x
> ml:66: The following error occurred while executing this line:
> <C:\calypso-tools\calypso_trunk\documentation\lib\target\DITA-OT1.5\build_p
> reprocess.xml:15: Unable to delete file
> C:\calypso-tools\calypso_trunk\documentation\calypso-developer-environment-
> installation-guide\target\dita\temp\Calypso-developer-guide_MERGED.xml
> Somehow that temporal merged xml file is locked by something during the
> script processing.
> I modified the script to not fail (failonerror="false") on that delete
> task. It obviously works, and the script finishes. Afterwards, looking at
> the temp directory, only the file is found. This indicates something has a
> lock on that file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to