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

WOCompile should honor Eclipse classpath ordering #97

Open
darkv opened this issue Dec 4, 2012 · 0 comments
Open

WOCompile should honor Eclipse classpath ordering #97

darkv opened this issue Dec 4, 2012 · 0 comments

Comments

@darkv
Copy link
Member

darkv commented Dec 4, 2012

The WOCompile ant task creates classpath files by including jars from APPROOT/Resources/Java/ in alphabetical order but it should check if in Eclipse a specific ordering has been set and reorder the entries accordingly.

Problem is if you include a lib with a name lower than the project's name but in your source files you overwrite one of its classes it will be ordered below the lib resulting in the wrong class getting loaded. One workaround is to put that lib into a separate framework and include that one to the project.

Solutions would be:

  • easy: always move the project jar file up so it is the first classpath entry
  • more work but better: read the file .classpath if present and order all application jars accordingly
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

No branches or pull requests

1 participant