Java Code Examples for org.pentaho.di.job.JobMeta#environmentSubstitute()
The following examples show how to use
org.pentaho.di.job.JobMeta#environmentSubstitute() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JobEntryMail.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); String realServername = jobMeta.environmentSubstitute( server ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServername, ResourceType.SERVER ) ); references.add( reference ); return references; }
Example 2
Source File: JobEntryDeleteFile.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( filename ) ) { String realFileName = jobMeta.environmentSubstitute( filename ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFileName, ResourceType.FILE ) ); references.add( reference ); } return references; }
Example 3
Source File: JobEntryShell.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( filename ) ) { String realFileName = jobMeta.environmentSubstitute( filename ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFileName, ResourceType.FILE ) ); references.add( reference ); } return references; }
Example 4
Source File: JobEntryTrans.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( filename ) ) { // During this phase, the variable space hasn't been initialized yet - it seems // to happen during the execute. As such, we need to use the job meta's resolution // of the variables. String realFileName = jobMeta.environmentSubstitute( filename ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFileName, ResourceType.ACTIONFILE ) ); references.add( reference ); } return references; }
Example 5
Source File: JobEntryDTDValidator.java From pentaho-kettle with Apache License 2.0 | 5 votes |
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; }
Example 6
Source File: JobEntryTalendJobExec.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( filename ) ) { String realFileName = jobMeta.environmentSubstitute( filename ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFileName, ResourceType.FILE ) ); references.add( reference ); } return references; }
Example 7
Source File: JobEntryFTPDelete.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( serverName ) ) { String realServername = jobMeta.environmentSubstitute( serverName ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServername, ResourceType.SERVER ) ); references.add( reference ); } return references; }
Example 8
Source File: JobEntryTelnet.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( hostname ) ) { String realServername = jobMeta.environmentSubstitute( hostname ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServername, ResourceType.SERVER ) ); references.add( reference ); } return references; }
Example 9
Source File: JobEntryXSLT.java From pentaho-kettle with Apache License 2.0 | 5 votes |
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; }
Example 10
Source File: JobEntryPing.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( hostname ) ) { String realServername = jobMeta.environmentSubstitute( hostname ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServername, ResourceType.SERVER ) ); references.add( reference ); } return references; }
Example 11
Source File: JobEntryWriteToFile.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( getFilename() ) ) { String realFileName = jobMeta.environmentSubstitute( getFilename() ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFileName, ResourceType.FILE ) ); references.add( reference ); } return references; }
Example 12
Source File: JobEntryFTPSGet.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( serverName ) ) { String realServerName = jobMeta.environmentSubstitute( serverName ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServerName, ResourceType.SERVER ) ); references.add( reference ); } return references; }
Example 13
Source File: JobEntryDeleteFiles.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( arguments != null ) { ResourceReference reference = null; for ( int i = 0; i < arguments.length; i++ ) { String filename = jobMeta.environmentSubstitute( arguments[i] ); if ( reference == null ) { reference = new ResourceReference( this ); references.add( reference ); } reference.getEntries().add( new ResourceEntry( filename, ResourceType.FILE ) ); } } return references; }
Example 14
Source File: JobEntrySSH2GET.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( serverName ) ) { String realServerName = jobMeta.environmentSubstitute( serverName ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServerName, ResourceType.SERVER ) ); references.add( reference ); } return references; }
Example 15
Source File: JobEntryJob.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( filename ) ) { String realFileName = jobMeta.environmentSubstitute( filename ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFileName, ResourceType.ACTIONFILE ) ); references.add( reference ); } return references; }
Example 16
Source File: JobEntryFileCompare.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( ( !Utils.isEmpty( filename1 ) ) && ( !Utils.isEmpty( filename2 ) ) ) { String realFilename1 = jobMeta.environmentSubstitute( filename1 ); String realFilename2 = jobMeta.environmentSubstitute( filename2 ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFilename1, ResourceType.FILE ) ); reference.getEntries().add( new ResourceEntry( realFilename2, ResourceType.FILE ) ); references.add( reference ); } return references; }
Example 17
Source File: JobEntrySendNagiosPassiveCheck.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( serverName ) ) { String realServername = jobMeta.environmentSubstitute( serverName ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServername, ResourceType.SERVER ) ); references.add( reference ); } return references; }
Example 18
Source File: JobEntryGetPOP.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( servername ) ) { String realServername = jobMeta.environmentSubstitute( servername ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServername, ResourceType.SERVER ) ); references.add( reference ); } return references; }
Example 19
Source File: JobEntryPGPVerify.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( gpglocation ) ) { String realFileName = jobMeta.environmentSubstitute( gpglocation ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realFileName, ResourceType.FILE ) ); references.add( reference ); } return references; }
Example 20
Source File: JobEntrySFTPPUT.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public List<ResourceReference> getResourceDependencies( JobMeta jobMeta ) { List<ResourceReference> references = super.getResourceDependencies( jobMeta ); if ( !Utils.isEmpty( serverName ) ) { String realServerName = jobMeta.environmentSubstitute( serverName ); ResourceReference reference = new ResourceReference( this ); reference.getEntries().add( new ResourceEntry( realServerName, ResourceType.SERVER ) ); references.add( reference ); } return references; }