Package org.apache.maven.archetype.metadata

Examples of org.apache.maven.archetype.metadata.RequiredProperty


     
      Table table = propertiesViewer.getTable();
      table.setItemCount(properties.size());
      int i = 0;
      for (Iterator<RequiredProperty> it = properties.iterator(); it.hasNext();) {
        RequiredProperty rp = it.next();
        TableItem item = table.getItem(i++);
        if (!rp.getKey().equals(item.getText())) {
          // then create it - otherwise, reuse it
          item.setText(0, rp.getKey());
          item.setText(1, "");
          item.setData(item);
        }
      }
    } catch (Exception e) {
View Full Code Here


        for ( Iterator<?> propertiesIterator = requiredProperties.keySet().iterator(); propertiesIterator.hasNext(); )
        {
            String propertyKey = (String) propertiesIterator.next();

            RequiredProperty requiredProperty = new RequiredProperty();
            requiredProperty.setKey( propertyKey );
            requiredProperty.setDefaultValue( requiredProperties.getProperty( propertyKey ) );

            archetypeDescriptor.addRequiredProperty( requiredProperty );

            getLogger().debug(
                "Adding requiredProperty " + propertyKey + "=" + requiredProperties.getProperty( propertyKey )
View Full Code Here

TOP

Related Classes of org.apache.maven.archetype.metadata.RequiredProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.