Diagnostics: using a Java dialog; JavaScript in Windows
Posted by mholmes on 09 Mar 2017 in Activity log
Following up on a hint from RC at Oxygen, I figured out how to use a Swing JFileChooser dialog to let the user select their project directory, directly from ant; this is neat and very useful. It took a while to nail down exactly how best to do it, and I still have some cleanup to do to make the process fail more elegantly if the user cancels out of the dialog, but we're nearly there. Haven't tested on Windows yet either.
In the morning, I did a pile of work to get the output page JavaScript working in Windows. It was substituting Windows line-endings in the script, which the serializer was then escaping to numeric entities; took some wrangling to prevent that.