Examples of addSourceMapping()


Examples of org.codehaus.plexus.compiler.util.scan.StaleSourceScanner.addSourceMapping()

            {
                scanner.addSourceMapping( new SingleTargetSourceMapping( ".class", getTimestampFile().getPath() ) );
            }
            else
            {
                scanner.addSourceMapping( new SuffixMapping( ".class", ".dummy" ) );
            }

            Set classes = scanner.getIncludedSources( getClassDirectory(), getTimestampDirectory() );

            if ( !classes.isEmpty() )
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.StaleSourceScanner.addSourceMapping()

            getLog().debug( "The module XML hasn't been updated");

            // js file already exists, but may not be up-to-date with project source files
            SingleTargetSourceMapping singleTargetMapping = new SingleTargetSourceMapping( ".java", outputTarget );
            StaleSourceScanner scanner = new StaleSourceScanner();
            scanner.addSourceMapping( singleTargetMapping );

            SingleTargetSourceMapping uiBinderMapping = new SingleTargetSourceMapping( ".ui.xml", outputTarget );
            scanner.addSourceMapping( uiBinderMapping );

            Collection<File> compileSourceRoots = new HashSet<File>();
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.StaleSourceScanner.addSourceMapping()

            SingleTargetSourceMapping singleTargetMapping = new SingleTargetSourceMapping( ".java", outputTarget );
            StaleSourceScanner scanner = new StaleSourceScanner();
            scanner.addSourceMapping( singleTargetMapping );

            SingleTargetSourceMapping uiBinderMapping = new SingleTargetSourceMapping( ".ui.xml", outputTarget );
            scanner.addSourceMapping( uiBinderMapping );

            Collection<File> compileSourceRoots = new HashSet<File>();
            for (String sourceRoot : getProject().getCompileSourceRoots()) {
                for (String sourcePackage : gwtModule.getSources()) {
                    String packagePath = gwtModule.getPackage().replace( '.', File.separatorChar );
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.StaleSourceScanner.addSourceMapping()

    protected Set<File> jxmlFilesToCompile(SourceMapping mapping) throws MojoExecutionException {
        Validate.isTrue(sourceDirectory.isDirectory(), sourceDirectory.getName() + " is not a directory");

        try {
            SourceInclusionScanner scanner = new StaleSourceScanner();
            scanner.addSourceMapping(mapping);
            return scanner.getIncludedSources(sourceDirectory, outputDirectory);
        } catch (InclusionScanException e) {
            throw new MojoExecutionException("Error scanning source root: \'" + sourceDirectory + "\'.", e);
        }
    }
View Full Code Here

Examples of org.teiid.adminapi.impl.ModelMetaData.addSourceMapping()

                List<ManagedObject> mappings = (List<ManagedObject>)MetaValueFactory.getInstance().unwrap(sourceMappings.getValue());
                for (ManagedObject mo:mappings) {
                    String name = ManagedUtil.getSimpleValue(mo, "name", String.class);//$NON-NLS-1$
                    String jndiName = ManagedUtil.getSimpleValue(mo, "connectionJndiName", String.class);//$NON-NLS-1$
                    String translatorName = ManagedUtil.getSimpleValue(mo, "translatorName", String.class);//$NON-NLS-1$
                    model.addSourceMapping(name, translatorName, jndiName);
                }
            }       
      }           
    }
    else if (property.getName().equals("JAXBProperties")) { //$NON-NLS-1$
View Full Code Here

Examples of org.teiid.adminapi.impl.ModelMetaData.addSourceMapping()

            char sourceID = 'a';
            // by default every model has one binding associated, but for multi-source there were none assigned.
            ModelMetaData m = vdb.getModel(model);
            int x = m.getSourceNames().size();
            for(int i=x; i<sourceCount; i++, sourceID++) {
               m.addSourceMapping("" + sourceID, "translator"null); //$NON-NLS-1$ //$NON-NLS-2$
            }
        }
       
        MultiSourceMetadataWrapper wrapper = new MultiSourceMetadataWrapper(metadata, multiSourceModels);
        AnalysisRecord analysis = new AnalysisRecord(false, DEBUG);
View Full Code Here

Examples of org.teiid.adminapi.impl.ModelMetaData.addSourceMapping()

    vdb.setVersion(1);
    vdb.addProperty("vdb-property", "vdb-value")
   
    ModelMetaData modelOne = new ModelMetaData();
    modelOne.setName("model-one");
    modelOne.addSourceMapping("s1", "translator", "java:mybinding")
    modelOne.setModelType(Model.Type.PHYSICAL);
    modelOne.addProperty("model-prop", "model-value")
    modelOne.addProperty("model-prop", "model-value-override")
    modelOne.setVisible(false);
    modelOne.addError("ERROR", "There is an error in VDB")
View Full Code Here

Examples of org.teiid.adminapi.impl.ModelMetaData.addSourceMapping()

   
    vdb.addModel(modelOne);
   
    ModelMetaData modelTwo = new ModelMetaData();
    modelTwo.setName("model-two");
    modelTwo.addSourceMapping("s1", "translator", "java:binding-one")
    modelTwo.addSourceMapping("s2", "translator", "java:binding-two")
    modelTwo.setModelType(Model.Type.VIRTUAL);
    modelTwo.addProperty("model-prop", "model-value")
   
    vdb.addModel(modelTwo);
View Full Code Here

Examples of org.teiid.adminapi.impl.ModelMetaData.addSourceMapping()

    vdb.addModel(modelOne);
   
    ModelMetaData modelTwo = new ModelMetaData();
    modelTwo.setName("model-two");
    modelTwo.addSourceMapping("s1", "translator", "java:binding-one")
    modelTwo.addSourceMapping("s2", "translator", "java:binding-two")
    modelTwo.setModelType(Model.Type.VIRTUAL);
    modelTwo.addProperty("model-prop", "model-value")
   
    vdb.addModel(modelTwo);
   
View Full Code Here

Examples of org.teiid.adminapi.impl.ModelMetaData.addSourceMapping()

  private void addModel(VDBMetaData vdbMetaData, Schema schema) {
    ModelMetaData model = new ModelMetaData();
    model.setName(schema.getName());
    vdbMetaData.addModel(model);
    model.addSourceMapping("source", "translator", "jndi:source");
  }
 
  public VDBMetaData getVDB(String vdbName) {
    return this.repo.getVDB(vdbName, 1);
  }
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.