Java Code Examples for org.apache.commons.lang3.SystemUtils#FILE_SEPARATOR

The following examples show how to use org.apache.commons.lang3.SystemUtils#FILE_SEPARATOR . 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: ExprGetSysProp.java    From skUtilities with GNU General Public License v3.0 5 votes vote down vote up
@Override
@Nullable
protected String[] get(Event e) {
  switch (ty) {
    case 0:
      return new String[]{SystemUtils.OS_ARCH};
    case 1:
      return new String[]{SystemUtils.OS_NAME};
    case 2:
      return new String[]{SystemUtils.OS_VERSION};
    case 3:
      return new String[]{SystemUtils.getJavaHome().toString()};
    case 4:
      return new String[]{SystemUtils.getUserDir().toString()};
    case 5:
      return new String[]{SystemUtils.getUserHome().toString()};
    case 6:
      return new String[]{SystemUtils.USER_NAME};
    case 7:
      return new String[]{SystemUtils.USER_LANGUAGE};
    case 8:
      return new String[]{SystemUtils.USER_TIMEZONE};
    case 9:
      return new String[]{SystemUtils.LINE_SEPARATOR};
    case 10:
      return new String[]{SystemUtils.FILE_SEPARATOR};
    case 11:
      return new String[]{SystemUtils.PATH_SEPARATOR};
    case 12:
      return new String[]{SystemUtils.FILE_ENCODING};
  }
  return null;
}
 
Example 2
Source File: MultiHopFlowCompilerTest.java    From incubator-gobblin with Apache License 2.0 4 votes vote down vote up
private String formNodeFilePath(File flowGraphDir, String groupDir, String fileName) {
  return flowGraphDir.getName() + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}
 
Example 3
Source File: GitFlowGraphMonitorTest.java    From incubator-gobblin with Apache License 2.0 4 votes vote down vote up
private String formNodeFilePath(String groupDir, String fileName) {
  return this.flowGraphDir.getName() + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}
 
Example 4
Source File: GitFlowGraphMonitorTest.java    From incubator-gobblin with Apache License 2.0 4 votes vote down vote up
private String formEdgeFilePath(String parentDir, String groupDir, String fileName) {
  return this.flowGraphDir.getName() + SystemUtils.FILE_SEPARATOR + parentDir + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}
 
Example 5
Source File: GitConfigMonitorTest.java    From incubator-gobblin with Apache License 2.0 4 votes vote down vote up
private String formConfigFilePath(String groupDir, String fileName) {
  return this.configDir.getName() + SystemUtils.FILE_SEPARATOR + groupDir + SystemUtils.FILE_SEPARATOR + fileName;
}