Re: [Ikvm-developers] Classpath !!!
Brought to you by:
jfrijters
|
From: Steve S. <st...@me...> - 2007-09-10 17:38:19
|
So using the recurse option if two files in different directories have the
same name the duplicates are not included. I created a JAR as you suggested
with the files that I needed. However when I run it through IKVMC the
resources are not added to the emitted assembly. Do I have to do something
special to get them to convert.
I have begun to explore other ways of getting these files into a state where
they can be addressed by the classloader. Here is a piece of code that
constrains my options:
StatusHttpServer.class.getClassLoader().getResource("webapps");
Thanks for all your help.
Steve
> Steve Severance wrote:
> > Is there a way with recurse to assign them to specific names? The
> > application is expecting the classpath name to be webapps. I tried
> > using the wildcard with the -resource but that says that it is an
> > illegal character.
> > If I specify just the directory then it says that access is denied,
> > although I assume that is another way of saying that you can't pick a
> > directory.
> > Another although less desirable option would be to change the
> resource
> > name manually later.
>
> The trick is to put all the resources in a separate directory. So for
> example:
>
> resources\webapps\images\foo.jpg
> resources\webapps\docs\blah.html
>
> Now you can use "-recurse:resouces\*" to include all those resources
> with the proper name.
>
> Alternatively, you can also create a jar file with the resources and
> pass that jar file to ikvmc. All non-class files in a jar are
> automatically included as resources in the assembly.
>
> Regards,
> Jeroen
|