netbean5 packaging travail  
Author Message
C P via JavaKB.com





PostPosted: 2006-2-9 6:02:00 Top

java-programmer, netbean5 packaging travail Hello
I have a project, an applet, that compiles and runs
fine with some 3rd party jars that are in the
libraries folder. It never packages them into the
final project jar. I fixed this problem for the
swing-layout with:

<jar update="true" destfile="${dist.jar}">
<zipfileset
src="${libs.swing-layout.classpath}"/>
<!-- <zipfileset
src="${libs.3rdparty.classpath}"/> -->
</jar>

unaware of the nameing convention and of course I dont
know how to get it to work with anything else. Can
someone instruct what is necessary in config or
build.xml to get the 3rd party jars packaged? tia.

--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-tools/200602/1
 
Kroll, Michael





PostPosted: 2006-2-10 18:03:00 Top

java-programmer >> netbean5 packaging travail Hello,

I don't now it works for you.
I pack some extra packages for example:

<target name="-post-jar">
<jar update="true" destfile="${dist.jar}">
<zipfileset src="${libs.swing-layout.classpath}" />
<zipfileset src="${file.reference.ojdbc14.jar}" />
<zipfileset src="${file.reference.looks-1.3.1.jar}" />
</jar>
</target>

I hope it help you.


Regards
Michael


--
http://www.smurfi.de
German NetBeans Site
 
C P via JavaKB.com





PostPosted: 2006-2-10 23:15:00 Top

java-programmer >> netbean5 packaging travail Hi Michael
Thanks for the response. However I still dont understand the naming. the EL
expression "${libs.swing-layout.classpath}" I understand as a Library module
called swing-layout. But what is the classpath component. Further how are
you using, where should the jars be for your reference? Could your reference
be rewritten as "${libs.ojdbc14.classpath}" if you created that jar as a
Library? Where is this nomenclature documented? Is this Ant1.6? Thanks for
any help.

Kroll, Michael wrote:
>Hello,
>
>I don't now it works for you.
>I pack some extra packages for example:
>
> <target name="-post-jar">
> <jar update="true" destfile="${dist.jar}">
> <zipfileset src="${libs.swing-layout.classpath}" />
> <zipfileset src="${file.reference.ojdbc14.jar}" />
> <zipfileset src="${file.reference.looks-1.3.1.jar}" />
> </jar>
> </target>
>
>I hope it help you.
>
>Regards
>Michael
>

--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-tools/200602/1
 
 
C P via JavaKB.com





PostPosted: 2006-2-10 23:26:00 Top

java-programmer >> netbean5 packaging travail Hi Michael
Thanks for the response. However I still dont understand the naming. The EL
expression "${libs.swing-layout.classpath}" I understand as a Library module
called swing-layout. (That is not the full name, how does it know the correct
one). But what is the classpath component? Further how are you using, the
naming file.reference? Where should the jars be for your reference? Could
your reference be rewritten as "${libs.ojdbc14.classpath}" if you created
that jar as a Library? Where is this nomenclature documented? Is this Ant1.
6? Thanks for any help.

Kroll, Michael wrote:
>Hello,
>
>I don't now it works for you.
>I pack some extra packages for example:
>
> <target name="-post-jar">
> <jar update="true" destfile="${dist.jar}">
> <zipfileset src="${libs.swing-layout.classpath}" />
> <zipfileset src="${file.reference.ojdbc14.jar}" />
> <zipfileset src="${file.reference.looks-1.3.1.jar}" />
> </jar>
> </target>
>
>I hope it help you.
>
>Regards
>Michael
>

--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-tools/200602/1
 
 
C P via JavaKB.com





PostPosted: 2006-2-11 3:39:00 Top

java-programmer >> netbean5 packaging travail Hi Michael
Thanks. However I still dont understand the naming convention. I somewhat
understand the EL phrase "${lib.swing-layout.classpath}", but the the jar
really is called swing-layout-1.0.jar. How does it know the exact one to
pick? Also what does the classpath component indicate? That it wants the
jar on the classpath? Isnt that redundant?

Finally, newbies have these torrents of questions grin, where must the jars
be for your reference to work? Could your reference be re-written as "${lib.
ojdbc14.classpath}"? This nomenclature, is its namespace for Ant1.6 and is
that where I should followup? Thanks for any additional help

Kroll, Michael wrote:
>Hello,
>
>I don't now it works for you.
>I pack some extra packages for example:
>
> <target name="-post-jar">
> <jar update="true" destfile="${dist.jar}">
> <zipfileset src="${libs.swing-layout.classpath}" />
> <zipfileset src="${file.reference.ojdbc14.jar}" />
> <zipfileset src="${file.reference.looks-1.3.1.jar}" />
> </jar>
> </target>
>
>I hope it help you.
>
>Regards
>Michael
>

--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-tools/200602/1