Open yegor256 opened 10 months ago
@yegor256 are you sure we should rewrite all files in OTHER directory?
For example we optimized org/eolang/benchmark/App.xmir
and saved it in org/eolang/xmir-after/App.xmir
. It means that we should replace all fqns of the first object with the second one. Otherwise the second object won't be used at all.
Current version does not move App.xmir
and adds new BA.xmir
to the current package
@maxonfjvipon we should take everything from inputDirectory
, save to outputDirectory
, and then modify the content inside the outputDirectory
. Modifying the sources is a very bad idea, since it will confuse the user.
I'm getting this log:
It's not clear, what exactly happened. What files were read? What files were saved? How much they were changed? What changes were applied?
Would be great to have something like this (reading from one directory, saving into another one!):
IMPORTANT: we should read files from one directory and save new versions of them (after optimization) into another directory!