use of org.eclipse.jst.server.generic.servertype.definition.PublisherData in project webtools.servertools by eclipse.
the class AntPublisher method doGetTargets.
private String doGetTargets(String dataname) {
StringBuffer buffer = new StringBuffer();
Iterator iterator = getServerRuntime().getServerTypeDefinition().getPublisher(PUBLISHER_ID).getPublisherdata().iterator();
while (iterator.hasNext()) {
PublisherData data = (PublisherData) iterator.next();
if (dataname.equals(data.getDataname())) {
if (buffer.length() > 0)
// $NON-NLS-1$
buffer.append(",");
buffer.append(data.getDatavalue());
}
}
return buffer.toString();
}
use of org.eclipse.jst.server.generic.servertype.definition.PublisherData in project webtools.servertools by eclipse.
the class ServerTypeDefinitionModelTest method testPublisher.
public void testPublisher() {
Publisher publisher = (Publisher) subject.getPublisher().get(0);
assertNotNull(publisher);
assertTrue(publisher.getId() != null && publisher.getId().length() > 0);
assertTrue(publisher.getPublisherdata() != null && publisher.getPublisherdata().size() > 0);
PublisherData data = (PublisherData) publisher.getPublisherdata().get(0);
assertNotNull(data);
assertTrue(data.getDataname() != null && data.getDataname().length() > 0);
assertTrue(data.getDatavalue() != null && data.getDatavalue().length() > 0);
}
Aggregations