ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [PATCH] comma separated PVCS projects
Date Mon, 23 Apr 2001 09:13:52 GMT
Frank Wierzbicki <> wrote:

> Ant Developers,
> I was hoping that implementing an addPvcsproject method would just
> involve creating a vector pvcsProjects and adding these lines:
>     public void addPvcsproject(String prj) {
>         pvcsProjects.addElement(prj);
>     }

What you get here is a <pvcsproject> element, even if Ant allowed it
to be a String.  How do you want to specify the name of that project?

I'd probably either use <pvcproject name="..." /> or
<pvsproject>...</pvcsproject>.  The first one requires the class that
represents <pvcsproject> to have a setName() method, the second one
requires addText().  Both is not present in String.

You will want to use a simple wrapper class for this String.  Note
that the setName or addText methods of this wrapper class have not
been called when addPvcsproject is invoked.


View raw message