DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4785>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4785

The 'dest' attribute is handled improperly

           Summary: The 'dest' attribute is handled improperly
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Per CVS 1.10.7 the -d switch to checkout states:

Use  the  -d  dir option to create a directory called dir for the working files,
instead of using the module name.  Unless you also use -N, the paths created
under dir will be as short as possible.

Ant Cvs Task does not shorten the path, but just checks the module out to
the 'dest' rather than the submodule whose root is described in package.

The -d option maps to the 'dest' attribute.
I would place the lines just after the following to lines

        toExecute.createArgument().setLine(command);
        toExecute.addArguments(cmd.getCommandline());

//Add lines below:
        if (dest == null) dest = project.getBaseDir();
        toExecute.createArgument().setValue("-d");
        toExecute.createArgument().setValue(dest.getName());
//ADD lines lines
.
.
.
        exe.setAntRun(project);
//REMOVE lines below
        if (dest == null) dest = project.getBaseDir();
//REMOVE lines above    
//CHANGE the lines below
        exe.setWorkingDirectory(project.getBaseDir());
//CHANGE the lines above

This now exhibits the correct behavior per 1.10.7

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to