Issue (View Online)

Key: NXP-376
Issue Type: Bug Bug
Status: Resolved Resolved
Priority: Minor Minor
Resolution: Not A Bug
Assignee: Bogdan Stefanescu
Reporter: Anahide Tchertchian
Original Estimate: 4 hours
Remaining Estimate: 4 hours

Operations

View all
View comments
View history
Deployment mechanism: wrong behaviour using exclude on copy 
Updated: 16/05/07 10:06   Created: 13/12/06 16:02  

The following issue has been resolved as NOT A BUG.

Author: Bogdan Stefanescu
Date: 16/05/07 10:06
Comment:
This is not a bug - this happens because the syntax is incorrect and
syntax errors are not yet handled.
The correct syntax is
    <copy from="MyProject.tmp/web" to="nuxeo.war/web">
      <exclude>to_exclude</exclude>
    </copy>

and not

    <copy src="" dst="nuxeo.war/web">
      <exclude>to_exclude</exclude>
    </copy>

Using the correct syntax it works.

This happens because from and to are not initialized (and because of this will use a to and a from pointing to the current directory). And because syntax errors are not handled the command will try to copyk the current directory
inside itself.

I won't do anything to handle syntax errors because I am planning to move to ant for install commands

Project: Nuxeo Enterprise Platform 5
Components: Runtime
Fix Versions: 5.1 M3

 Description   
Using the copy command inside an install command and trying to copy the "web" directory excluding a subdirectory named "to_exclude":

    <copy src="" dst="nuxeo.war/web">
      <exclude>to_exclude</exclude>
    </copy>

Results in copying recursively the nuxeo.nxp directory into itself.
Then need to kill jboss, and remove the nuxeo.nxp dir (no space left on device...).

This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to