Examples of createProperty()


Examples of org.apache.tools.ant.taskdefs.Ant.createProperty()

                Map atts = event.getAttributes();
                for (Iterator iter = atts.keySet().iterator(); iter.hasNext();) {
                    String key = (String) iter.next();
                    String value = (String) atts.get(key);
                    if (value != null) {
                        Property p = ant.createProperty();
                        p.setName(prefix == null ? key : prefix + key);
                        p.setValue(value);
                    }
                }
View Full Code Here

Examples of org.apache.tuscany.model.assembly.AssemblyFactory.createProperty()

    protected void setUp() throws Exception {
        super.setUp();
        factory = new JNDIPropertyFactory();
        xmlFactory = XMLInputFactory.newInstance();
        AssemblyFactory assemblyFactory = new AssemblyFactoryImpl();
        property = assemblyFactory.createProperty();

        oldICF = System.getProperty(INITIAL_CONTEXT_FACTORY);
        System.setProperty(INITIAL_CONTEXT_FACTORY, MockContextFactory.class.getName());
    }
View Full Code Here

Examples of org.apache.tuscany.model.assembly.impl.AssemblyFactoryImpl.createProperty()

    protected void setUp() throws Exception {
        super.setUp();
        factory = new JNDIPropertyFactory();
        xmlFactory = XMLInputFactory.newInstance();
        AssemblyFactory assemblyFactory = new AssemblyFactoryImpl();
        property = assemblyFactory.createProperty();

        oldICF = System.getProperty(INITIAL_CONTEXT_FACTORY);
        System.setProperty(INITIAL_CONTEXT_FACTORY, MockContextFactory.class.getName());
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.persistence.PropertiesCommon.createProperty()

   @SuppressWarnings("rawtypes")
   public PersistenceUnitCommon configure(PersistenceUnitCommon unit, JPADataSource ds, Project project)
   {
      unit.excludeUnlistedClasses(Boolean.FALSE);
      PropertiesCommon properties = unit.getOrCreateProperties();
      properties.createProperty().name("hibernate.hbm2ddl.auto").value("create-drop");
      properties.createProperty().name("hibernate.show_sql").value("true");
      properties.createProperty().name("hibernate.format_sql").value("true");
      properties.createProperty().name("hibernate.transaction.flush_before_completion").value("true");

      if (!DatabaseType.DEFAULT.equals(ds.getDatabase()))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.