Interface OsFileConventions
-
- All Known Implementing Classes:
AbstractOsFileConventions,PosixFileConventions,WindowsFileConventions
public interface OsFileConventionsThe policy for handling filenames and command-lines in the given Gnu Make -nB output.When the current host OS is the same as the host OS that produced the script then these are just pass-through methods to the underlying java File implementation or command-line tokenizer.
If the current host is different from the host that produced the -nB output then it is up to the caller to provide a policy that will work.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetFileName(java.lang.String filename)java.lang.StringgetFileParent(java.lang.String filename)booleanisPathAbsolute(java.lang.String file)java.util.List<java.lang.String>splitCommandLine(java.lang.String commandString)java.io.FiletoFile(java.io.File parent, java.lang.String child)java.io.FiletoFile(java.lang.String filename)java.util.List<java.lang.String>tokenizeCommandLineToEscaped(java.lang.String commandString)java.util.List<java.lang.String>tokenizeCommandLineToRaw(java.lang.String commandString)
-
-
-
Method Detail
-
tokenizeCommandLineToEscaped
@NonNull java.util.List<java.lang.String> tokenizeCommandLineToEscaped(@NonNull java.lang.String commandString)
-
tokenizeCommandLineToRaw
@NonNull java.util.List<java.lang.String> tokenizeCommandLineToRaw(@NonNull java.lang.String commandString)
-
splitCommandLine
@NonNull java.util.List<java.lang.String> splitCommandLine(@NonNull java.lang.String commandString)
-
isPathAbsolute
boolean isPathAbsolute(@NonNull java.lang.String file)
-
getFileParent
@NonNull java.lang.String getFileParent(@NonNull java.lang.String filename)
-
getFileName
@NonNull java.lang.String getFileName(@NonNull java.lang.String filename)
-
toFile
@NonNull java.io.File toFile(@NonNull java.lang.String filename)
-
toFile
@NonNull java.io.File toFile(@NonNull java.io.File parent, @NonNull java.lang.String child)
-
-