• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNLP Jar Href and Ant

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Ant to create my JNLP file since the jars listed
in the JNLP file are auto listed based on what is found in
a directory. My problem is I am having a conflict between
the jnlp.jar file and another jar file so I want to list it last.

A section of my build is as follows:
<resources os="Windows" arch="x86">
<j2se version="1.4"/>
<jar href="lib/client.jar"/>
<fileset dir="${stage.dir}"
includes="lib/**/*.jar"
excludes="lib/client.jar lib/jnlp.jar"/>
<jar href="lib/jnlp.jar"/>
</resources>

I exclude client.jar too since it must be listed first since contains the
main code.

The result is:
<resources os="Windows" arch="x86">
<j2se version="1.4"/>
<jar href="lib/client.jar"/>
<jar href="lib/jnlp.jar"/>
<jar href="lib/jar1.jar"/>
<jar href="lib/jar2.jar"/>
</resources>

I was hoping based on where I placed the the hardcoded href that the
jnlp.jar file would be listed last to prevent the conflict. Is there
any way to force the order of how they are listed short of hardcoding
all the jars?

Thanks,
Steve
 
Steve Trudel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So as I mentioned there was a jar conflict and what I did to finally
get rid of it was create an additional resources section with just
the jnlp.jar file. Is there a better way?

<resources os="Windows" arch="x86">
<j2se version="1.4"/>
<jar href="lib/jnlp.jar"/>
</resources>

Thanks,
Steve
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic