-
Notifications
You must be signed in to change notification settings - Fork 12
Don't add xerces jars to ant's classpath #56
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes Xerces XML parser JARs (xml-apis.jar and xercesImpl.jar) from Ant's bootstrap classpath in the build scripts. Since Xerces-J is an XML parser project that builds these JARs as output, they should not be in Ant's classpath during the build initialization. The build.bat file explicitly states the classpath should be "minimum required to run ant" with "application dependent classpaths specified in build.xml."
- Removed xml-apis.jar from Ant's classpath in both build scripts
- Removed xercesImpl.jar from Ant's classpath in both build scripts
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| build.sh | Removed two lines that added xml-apis.jar and xercesImpl.jar to LOCALCLASSPATH for Ant bootstrap |
| build.bat | Removed two lines that added xml-apis.jar and xercesImpl.jar to LOCALCLASSPATH for Ant bootstrap |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SingingBush
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting. Doesn't this mean that removing tools/xercesImpl.jar is fine though? I've been calling ant directly rather than using the build.sh script. This also indicates that perhaps xml-apis can be removed completely.
|
Probably, but it has to be done in the right order. Don't remove things while they're still referenced. |
|
and there are other references to those files, so this alone is necessary but not sufficient to remove them |
no, the build.xml does set a var that sets the |
@SingingBush