-
|
Is there a way to receive the compilation target directory from a service defined in a META service? I tried TeaVMHost in TeaVMPlugin but I think host properties are meant for something else. I need to produce some files along with the compiled output |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
Sorry, I don't understand your question. Which service do you mean? Can you provide any details or a sample project?
Do you really need TeaVM for that? Can't you write an annotation processor? |
Beta Was this translation helpful? Give feedback.
-
|
Okay, in a TeaVMPlugin, is there a way to get the target directory where the compiled JS code written into? |
Beta Was this translation helpful? Give feedback.
-
|
Okay, I did tool.getProperties().put("targetDirectory", targetDirectory); in my TeavmTool, it is correctly set and not null;however, the properties are passed blank to the TeavmPlugin. |
Beta Was this translation helpful? Give feedback.
-
|
Looks like the getProperties method in TeaVM class returns an instance of Properties with defaults. When Properties class is created with defaults, put and get method wont work. The putProperty and getProperty methods should be used instread. Now it works. |
Beta Was this translation helpful? Give feedback.
Looks like the getProperties method in TeaVM class returns an instance of Properties with defaults. When Properties class is created with defaults, put and get method wont work. The putProperty and getProperty methods should be used instread. Now it works.