ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Faltinsky/Denic" <faltin...@denic.de>
Subject <cvs command=".." tag="..." ... bug??
Date Thu, 14 Feb 2002 16:18:05 GMT
Hi everyone,

I am just trying to check a taged version out of my cvs.

So far: (using ant 1.4.1!)
---------------------------
<cvs cvsRoot="${cvs.root}"/>
<cvs dest="${source.dir}" command="co" package="${source}" />
...works fine

<cvs cvsRoot="${cvs.root}"/>
<cvs dest="${source.dir}" command="co" tag="release1_1" package="${source}"
/>
...result in this:
cvs server: Updating de/denic/blocks/abrechnung
cvs server: cannot find module `-r' - ignored
cvs server: cannot find module `release1_1' - ignored
cvs [checkout aborted]: cannot expand modules

Any idea??? I only would like to get:
cvs co -r release1_1 ${source}


The class cvs.java contains:
    public void setTag(String p) {
        // Check if not real tag => set it to null
        if (p != null && p.trim().length() > 0) {
            cmd.createArgument().setValue("-r");
            cmd.createArgument().setValue(p);
        }
    }
seems right. My Tag is not null so that the "-r" param is added.
But the way the comandline is build together should be something wrong.
->toExecute.createArgument().setLine(command);
-> exe.setCommandline(toExecute.getCommandline());
-> exe.execute();
Could this be a bug?
I couldN#t find all needed jar's to compile, sorry.


I also tried it without command, because "checkout" is default.
-> private String command = "checkout";
Did not work either!

Many thanks in advance.

Holger



--
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