[ 
https://issues.apache.org/jira/browse/TUSCANY-3680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916273#action_12916273
 ] 

Simon Nash commented on TUSCANY-3680:
-------------------------------------

A number of build.xml files in the samples directory also have this form of 
"clean" target.

This can cause surprising results: if the target directory has subdirectories 
then only one level of subdirectories will be deleted each time "ant clean" is 
run.  This means that it may be necessary to run "ant clean" as many as four 
times to completely delete the target directory and all its contents

Changing this target as described above deletes the whole subdirectory tree 
under the target directory with a single "ant clean".

> "clean" target in generated build.xml files fails with empty target directory
> -----------------------------------------------------------------------------
>
>                 Key: TUSCANY-3680
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3680
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Samples
>    Affects Versions: Java-SCA-1.6
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.x
>
>
> The Tuscany maven-ant-generator plugin generates "clean" targets of the form:
>     <target name="clean">
>         <delete includeemptydirs="true">
>             <fileset dir="target"/>
>         </delete>
>     </target>
> This fails if the "target" directory doesn't exist.  The generated code 
> should be changed to:
>     <target name="clean">
>         <delete dir="target" includeemptydirs="true"/>
>     </target>
> which works in all cases.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to