You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Mitja B." <in...@mitjab.com> on 2007/09/14 13:21:23 UTC

war inlcude problem

i want to create war file, but i have problem with including lib files into
lib folder

I have lib files in different lib dirs. How can i include it?
This does not work

      	<lib dir="C:/Oracle/jdevstudio1013/">
                <include name="BC4J/lib/adfbinding.jar"/>
                <include name="javacache/lib/cache.jar"/>
                <include name="jlib/help4.jar"/>
                <include name="jlib/inspect4.jar"/>
                <include name="jlib/jewt4.jar"/>
                <include name="jlib/share.jar"/>
      	</lib>
thx

________________________________________________
Message sent using UebiMiau 2.7.10



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: war inlcude problem

Posted by David Weintraub <qa...@gmail.com>.
You never said why it didn't work or what type of error you're
getting. I am assuming you want all the jars in the root of the lib
directory in the war. Specify a <lib> element for each directory, and
then include the <include> sub-tasks for the jar files you want. You
can use wildcards if that makes things easier.

<war destfile=${war.file}"
    webxml="${webxml.file">
    <lib dir="${jdev.dir}/BC4J/lib">
       <include name="adfbinding.jar"/>
   </lib>
   <lib dir="${jdev.dir}/jlib">
      <include name="help4.jar"/>
      <include name="inspec4.jar"/>
      <include name="jewt4.jar"/>
      <include name="share.jar"/>
    </lib>
    <lib dir="${jdev.dir}/javacache/lib"/>
      <include name="cache.jar"/>
    </lib>
</war>

On 9/14/07, Mitja B. <in...@mitjab.com> wrote:
> i want to create war file, but i have problem with including lib files into
> lib folder
>
> I have lib files in different lib dirs. How can i include it?
> This does not work
>
>         <lib dir="C:/Oracle/jdevstudio1013/">
>                 <include name="BC4J/lib/adfbinding.jar"/>
>                 <include name="javacache/lib/cache.jar"/>
>                 <include name="jlib/help4.jar"/>
>                 <include name="jlib/inspect4.jar"/>
>                 <include name="jlib/jewt4.jar"/>
>                 <include name="jlib/share.jar"/>
>         </lib>
> thx
>
> ________________________________________________
> Message sent using UebiMiau 2.7.10
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
--
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: war inlcude problem

Posted by Barry Pape <bp...@netspend.com>.
If I understand correctly, adding the prefix attribute should do the
trick:

 

            <lib dir="C:/Oracle/jdevstudio1013/" prefix="lib>

                <include name="BC4J/lib/adfbinding.jar"/>

                <include name="javacache/lib/cache.jar"/>

                <include name="jlib/help4.jar"/>

                <include name="jlib/inspect4.jar"/>

                <include name="jlib/jewt4.jar"/>

                <include name="jlib/share.jar"/>

            </lib>

 

Regards,

Barry

 

-----Original Message-----
From: Mitja B. [mailto:info@mitjab.com] 
Sent: Friday, September 14, 2007 6:21 AM
To: user@ant.apache.org
Subject: war inlcude problem

 

i want to create war file, but i have problem with including lib files
into

lib folder

 

I have lib files in different lib dirs. How can i include it?

This does not work

 

            <lib dir="C:/Oracle/jdevstudio1013/">

                <include name="BC4J/lib/adfbinding.jar"/>

                <include name="javacache/lib/cache.jar"/>

                <include name="jlib/help4.jar"/>

                <include name="jlib/inspect4.jar"/>

                <include name="jlib/jewt4.jar"/>

                <include name="jlib/share.jar"/>

            </lib>

thx

 

________________________________________________

Message sent using UebiMiau 2.7.10

 

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@ant.apache.org

For additional commands, e-mail: user-help@ant.apache.org

 




-----------------------------------------
Confidentiality Notice!
This electronic transmission and any attached documents or other
writings are confidential and are for the sole use of the intended
recipient(s) identified above. This message may contain information
that is privileged, confidential or otherwise protected from
disclosure under applicable law. If the receiver of this
information is not the intended recipient, or the employee, or
agent responsible for delivering the information to the intended
recipient, you are hereby notified that any use, reading,
dissemination, distribution, copying or storage of this information
is strictly prohibited. If you have received this information in
error, please notify the sender by return email and delete the
electronic transmission, including all attachments from your
system.