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

annotation detection doesn't work in scala projects #611

Closed
casualjim opened this issue Sep 12, 2012 · 0 comments
Closed

annotation detection doesn't work in scala projects #611

casualjim opened this issue Sep 12, 2012 · 0 comments
Labels

Comments

@casualjim
Copy link
Contributor

The annotation processing doesn't work in scala projects because they compile the .class files to a different location.

in java the class files are put in target/classes
but in a scala project built with sbt (I don't think this is an issue for maven projects) the class files are located in
target/scala_{scala.version}/

for example:
/Users/ivan/temp/atmotest/target/scala-2.9.2/classes...

I think changing this line https://github.com/Atmosphere/atmosphere/blob/master/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java#L1147

to have the following regex should fix it

^.*/(WEB-INF|target)(?:/scala-[^/]+)?/(test-)?classes/(.*)\\.class

jfarcand added a commit that referenced this issue Sep 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants