Why detecting the operating system at run time? - 7.3

Java custom code

Version
7.3
Language
English (United States)
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Custom code components (Integration) > Java custom code components
Data Quality and Preparation > Third-party systems > Custom code components (Integration) > Java custom code components
Design and Development > Third-party systems > Custom code components (Integration) > Java custom code components
As Talend Studio supports cross-platform Job execution and development on one or several machines, you often need to know the current operating system when running a Talend Job.

Some components such as File components always require a local file path. Operating systems do not all have the same format for paths in the file system. In order to make the Job run on different operating systems, the component needs to detect the current operating system type and set a dynamic file path at runtime.