Replies: 1 comment 6 replies
-
|
hi! When you use JavaTemplate, or when you provide test text blocks, those are snippets get compiled in complete isolation from your project classpath. This is to allow multiple major versions of libraries to be used within a single recipe module, but does then indeed require that you construct a JavaParser, and provide it with the entries it should place on the classpath (and any imports) when you compile the provided snippets. For your tests the above pattern already looks correct to me (maybe add a version suffix such as Hope that helps you there! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently writing a custom Recipe and have generated a
classpath.tsv.gzTypeTable for my dependencies. However, at least for the tests, I have to manually register / add it withclasspathFromResourcesfor my test:Is something like this also required once the rewriter is executed in production mode? Or will all classes from
classpath.tsv.gzbe loaded automatically?Beta Was this translation helpful? Give feedback.
All reactions