Reputation: 7591
I have some resources e.g. xml files, images etc in org\languagetool\resource
directory in my jars applications directory.
I wonder how to provide reference to these resources when building dll from a jar file.
I tried adding following options:
-externalresource:org/languagetool/resources=org/languagetool/resources/
and
-resource:org/languagetool/resources=org/languagetool/resources/
but both seems does not to work.
My Command is as follows:
ikvmc.exe -target:library -out:LanguageTool.dll -resource:org/languagetool/rules=org/languagetool/rules/ -resource:org/languagetool/resources=org/languagetool/resources/ LanguageTool.jar
PS: I am creating dll for LanguageTools library http://www.languagetool.org/
Upvotes: 2
Views: 1519
Reputation: 1
IKVM currently supports -recurse:
flag that allows to add a full folder as a resource in the output .dll
file. That helped me not list files one by one :)
- INPUT FILES -
-reference:<filespec> Reference an assembly (short form -r:<filespec>)
-recurse:<filespec> Recurse directory and include matching files
-exclude:<filename> A file containing a list of classes to exclude
I am able to use it the next way:
-recurse:M:/git/citrine/scala/src/main/resources
Upvotes: 0
Reputation: 1037
The -externalresource: and -resource: options both are for individual files only, so if you want multiple resources, you have to include all of them explicitly (by specifying the option multiple times).
Upvotes: 1