Package org.qdl_lang.install
Class ListDistroFiles
- java.lang.Object
-
- org.qdl_lang.install.ListDistroFiles
-
public class ListDistroFiles extends Object
This is a utility class that has the logic of how to make a list of only the files in the current distribution. It takes one argument, the top-level directory of the distritution.Created by Jeff Gaynor
on 5/25/24 at 6:41 AM
-
-
Constructor Summary
Constructors Constructor Description ListDistroFiles()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createFileList(File rootDirectory)
Create a file list.static void
main(String[] args)
protected void
recurse(File rootDirectory)
protected void
runnit(File rootDirectory)
protected void
say(Object x)
protected void
writeFiles(File rootDir, List<String> targetList, String targetFilename)
-
-
-
Field Detail
-
FILE_LIST
public static final String FILE_LIST
- See Also:
- Constant Field Values
-
DIR_LIST
public static final String DIR_LIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
runnit
protected void runnit(File rootDirectory) throws IOException
- Throws:
IOException
-
say
protected void say(Object x)
-
createFileList
protected void createFileList(File rootDirectory)
Create a file list. This is aware of the structure of the distribution and skips certain things. It only has the exact files -- no directories -- relative to the distribution and normalized. Later this list is used to get them as resources from the class loader.- Parameters:
rootDirectory
-
-
recurse
protected void recurse(File rootDirectory)
-
writeFiles
protected void writeFiles(File rootDir, List<String> targetList, String targetFilename) throws IOException
- Throws:
IOException
-
-