Updates
Sep 17,2019 - the updated Git package includes full MacOS support. To launch the GUI use the following command:java -XstartOnFirstThread -jar ErrorReport.jar -gui |
The original post
ERTool is a java utility that helps with DataPower error report analysis. I had some issues getting it working on my Mac, so sharing from experience for other people that might benefit from it.
Once downloaded the ERTool project from Git, I've run the build and it failed with compilation errors related to the MacOS environment. This was addressed by changing the build.xml file and MacOS related jar files.
Add the following files to the framework/lib folder:Adding JAR files
- org.eclipse.swt-3.1.jar
- org.eclipse.swt-3.1.jar.zip
Changing the build.xml file
First, add a MacOS environmental property for further references:<condition property="isMac"> <os family="mac"> </condition> |
Next, reference that property while selecting relevant libraries for the build process:
<include if:set="isMac" name="org.eclipse.swt-3.1.jar"/> <include if:set="isMac" name="org.eclipse.swt-3.1.jar.zip"/> |
Save the file and rerun the build command. It should complete successfully.
Example CLI to run the utility from command line:Running the ERTool from command line
java -jar ErrorReport.jar \ -analyticsfile Analytics.xml \ -format HTML \ -outfile output.html \ -file error-report.txt |
No comments:
Post a Comment