ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nan Null" <null....@gmail.com>
Subject Re: How to set an Ant task attribute with type of string array
Date Mon, 29 Sep 2008 02:52:48 GMT
There is an existing Ant task.  I need to set the attribute extraClasses.
Open the task's source code, it looks like this:

public String[] getExtraClasses()
public void setExtraClasses(String[] extraClasses)

I didn't write the code, and prefer not modify this code even it's
open source (because other people in the company will use this, and
they would have to use the modify version, and I have to handle the
update).

Anyway, it may not be as hard.  Maybe I just need to know how to use this.
In case you're wonder, it's Java2WSDLTask from Apache.

So, my question is how do I set this extraClasses attribute.
In case you want the full source:

http://www.java2s.com/Open-Source/Java-Document/Web-Services-AXIS2/java2wsdl/org/apache/ws/java2wsdl/Java2WSDLTask.java.htm

The reason I ask because I don't see much document for this one.  I
can see some old documentation, but they're probably outdated.

On Sun, Sep 28, 2008 at 3:49 PM, supareno <reno.rkcrew@free.fr> wrote:
> what you wanna do?
> it may exist an other way to do what you wanna do :-)
>
> for example, adding a new jar to your classpath???
>>
>> There is an Ant task, where it has this method:
>>
>> public String[] getExtraClasses()
>> public void setExtraClasses(String[] extraClasses)
>>
>> How do I set these extra classes?
>>
>> This doesn't work:
>>
>> <SomeTask extraClasses="a,b,c">
>>
>> </SomeTask>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message