aspose file tools*
The moose likes JNLP and Web Start and the fly likes JNLP Jar Href and Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JNLP Jar Href and Ant" Watch "JNLP Jar Href and Ant" New topic
Author

JNLP Jar Href and Ant

Steve Trudel
Greenhorn

Joined: Jan 03, 2005
Posts: 8
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

Joined: Jan 03, 2005
Posts: 8
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
 
jQuery in Action, 2nd edition
 
subject: JNLP Jar Href and Ant