Does anyone recall why we have jvm code under `src...
# development
h
Does anyone recall why we have jvm code under
src/python/pants/jvm/
instead of
src/jvm/
?
f
because it is shared by java and scala backends, right?
for example,
src/python/pants/jvm/compile.py
has the definition for
ClasspathEntryRequest
which is critical to the compile workflow for jvm
h
It could still be in
src/jvm
not under
src/python
I guess it's because we treat it like a resource for python code (which then compiles it at Pants runtime)
which is awesome btw because I can iterate on java code and pants does the right thing just by running it
f
but it is python rule code
There are some Java source under
src/python/pants/jvm/**
which could be moved over, but most of the files under that directory are Python rule code.
h
Yeah, I am referring to the .java files, naturally
I am wondering why we have .java files under
src/python
and not
src/jvm
By "jvm code" above I meant "code in java" not "python code for the jvm backend"...
should have been more clear