Package nl.datasteel.crudcraft.tools
Class EditableFileTool
java.lang.Object
nl.datasteel.crudcraft.tools.EditableFileTool
Utility that post-processes generated sources to deal with editable stubs.
It copies files marked with the "@crudcraft.editable" tag from the annotation processor's output directory into the main source tree if they do not yet exist there. Regardless of whether they are copied, the generated versions are removed so subsequent compilations do not pick them up again.
The source and destination directories can be overridden either via command
line arguments (sourceDir destDir) or the system properties
crudcraft.generatedDir and crudcraft.sourceDir.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EditableFileTool
public EditableFileTool()
-
-
Method Details
-
main
The main method that executes the file copying process. It scans the generated sources directory for editable files, copies them to the main source directory, and deletes the original files.- Parameters:
args- command line arguments (not used)- Throws:
IOException- if an I/O error occurs during file operations
-