ProjectX is a Java program that can read an AUTOSAR (Automotive Open System Architecture) XML file, sort its containers by the short name tag and output the sorted file in a new file.
1- Install Java on your machine if it's not already installed.
2- Download the ProjectX.java file to your local machine.
1- Open a command prompt or terminal and navigate to the directory containing the ProjectX.java file.
2- Compile the Java program using the following command:
javac ProjectX.java3- Run the Java program using the following command:
java ProjectX <path_to_autosar_file>Replace <path_to_autosar_file> with the path to the AUTOSAR XML file you want to sort.
ProjectX throws two exceptions:
1- NotVaildAutosarFileException: This exception is thrown when the file does not have the ".arxml" extension.
2- EmptyAutosarFileException: This exception is thrown when the file is empty.
The output of the program is a new AUTOSAR XML file with "_mod" appended to the original file name. The sorted containers are written to the new file in the same format as the original file.
If you'd like to contribute to the development of ProjectX, feel free to submit a pull request or open an issue.
ProjectX is licensed under the MIT License.