ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4785] New: - The 'dest' attribute is handled improperly
Date Fri, 09 Nov 2001 23:35:42 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: rsneale@verisign.com


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message