Closed yongjhih closed 9 years ago
auto.parcel.processor.AutoParcelTemplateVars.class.getResourceAsStream(resource);
- It's going to load corresponding package path of $resources.srcDirs/auto/parcel/processo/$resource
.
It's easier way by adding java
folder into resources.srcDirs
.
I don't sure how to move vm to resources
without modify loader code snippet or move autoparcel.vm
to resources/auto/parcel/processor/autoparcel.vm
. I'm outdoor now, i'll check that later.
Here is another way by moving autoparcel.vm
to corresponding resources path of src/main/resources/auto/parcel/processor/autoparcel.vm
:
https://github.com/yongjhih/auto-parcel/tree/auto-parcel_vm2
auto.parcel.processor.AutoParcelTemplateVars.class.getResourceAsStream(resource);
- It's going to load corresponding package path of$resources.srcDirs/auto/parcel/processo/$resource
.
In this case, we have only one of resources. So I perfer adding src/main/java
to $resources.srcDirs
avoid maintain both package path of $java.srcDirs
and $resources.srcDirs
in the same.
I'd rather not mix the concept of source code and static resources, so I'm happy to merge the second PR
It's not bad. I'll force-update this PR for regular structure.
Could you just move the
autoparcel.vm
underresources
instead of adding thesrc
folder in thebuild.gradle
file?