Frank Wierzbicki <[EMAIL PROTECTED]> 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.
Stefan