use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryDTDValidator method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if ((!Utils.isEmpty(dtdfilename)) && (!Utils.isEmpty(xmlfilename))) {
String realXmlFileName = jobMeta.environmentSubstitute(xmlfilename);
String realXsdFileName = jobMeta.environmentSubstitute(dtdfilename);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realXmlFileName, ResourceType.FILE));
reference.getEntries().add(new ResourceEntry(realXsdFileName, ResourceType.FILE));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryXSDValidator method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if ((!Utils.isEmpty(xsdfilename)) && (!Utils.isEmpty(xmlfilename))) {
String realXmlFileName = jobMeta.environmentSubstitute(xmlfilename);
String realXsdFileName = jobMeta.environmentSubstitute(xsdfilename);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realXmlFileName, ResourceType.FILE));
reference.getEntries().add(new ResourceEntry(realXsdFileName, ResourceType.FILE));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryXSLT method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if ((!Utils.isEmpty(xslfilename)) && (!Utils.isEmpty(xmlfilename))) {
String realXmlFileName = jobMeta.environmentSubstitute(xmlfilename);
String realXslFileName = jobMeta.environmentSubstitute(xslfilename);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realXmlFileName, ResourceType.FILE));
reference.getEntries().add(new ResourceEntry(realXslFileName, ResourceType.FILE));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class S3CsvInputMeta method getResourceDependencies.
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
List<ResourceReference> references = new ArrayList<ResourceReference>(5);
ResourceReference reference = new ResourceReference(stepInfo);
references.add(reference);
if (!Utils.isEmpty(filename)) {
// Add the filename to the references, including a reference to this
// step meta data.
//
reference.getEntries().add(new ResourceEntry(transMeta.environmentSubstitute(filename), ResourceType.FILE));
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class XMLInputSaxMeta method getResourceDependencies.
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
List<ResourceReference> references = new ArrayList<ResourceReference>(5);
ResourceReference reference = new ResourceReference(stepInfo);
references.add(reference);
String[] textFiles = getFilePaths(transMeta);
if (textFiles != null) {
for (int i = 0; i < textFiles.length; i++) {
reference.getEntries().add(new ResourceEntry(textFiles[i], ResourceType.FILE));
}
}
return references;
}
Aggregations