Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MakeUnicodeFiles.java option #636

Merged
merged 4 commits into from
Jan 2, 2024

Conversation

macchiati
Copy link
Member

#627

Adds option to clean directory before building, then copy relevant files after building, as per issue

Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice functionality!

@@ -53,7 +59,64 @@ public class MakeUnicodeFiles {
static boolean DEBUG = false;

public static void main(String[] args) throws IOException {

boolean clean = Arrays.asList(args).contains("-c");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a more self-explanatory option string, something like "--cleanBin" ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping -- longer option names make reading and documenting command lines much easier

generateFile();

if (clean) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it surprising/confusing that the "clean" option should also drive copying the files back to the input.

It would be better to make another new option like "--changesToInput" .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping -- I really think it would be better to make a second option, with another readable option name (not just renaming the Java variable)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't disagree with @markusicu but from the standpoint of practicality, do we see ourselves or anyone else using one option without the other?

@macchiati
Copy link
Member Author

Markus, I'm going to go ahead and merged. It it comes to the point where someone needs 2 options (or more options need to be added) I can do additional work then.

@macchiati macchiati merged commit 4d1941e into unicode-org:main Jan 2, 2024
15 checks passed
@macchiati macchiati deleted the Modify-MakeUnicodeFiles-#627 branch January 2, 2024 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants