• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JNLP Jar Href and Ant

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
    Bookmark Topic Watch Topic
  • New Topic