Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19802

Re: problem creating WAR file with ant

From Laura Schmidt <ls@mailinator.com>
Newsgroups comp.lang.java.programmer
Subject Re: problem creating WAR file with ant
Date 2012-11-19 04:21 +0100
Organization (posted via) M-net Telekommunikations GmbH
Message-ID <k8c8ic$vab$1@news.m-online.net> (permalink)
References <k8b3pr$7k7$1@news.m-online.net> <50a9144e$0$293$14726298@news.sunsite.dk>

Show all headers | View raw


On 11/18/2012 06:01 PM, Arne Vajhøj wrote:
> On 11/18/2012 11:53 AM, Laura Schmidt wrote:

Hi Arne!

>> Within the produced war file, the class files of L were in the root
>> directory. I believe that the class files should be placed into the
>> WEB-INF/classes directory of the war file.
>>
>> However, this problem cannot be new and there must be a standard way to
>> do it. I would be glad if someone can tell me how to do it right.
>
> The war task has a nested lib element.
>
> There is an example at the bottom at:
> http://ant.apache.org/manual/Tasks/war.html
>
> Use that!

If I use that I''ll have to create a jar file for the library every time 
I make changes to it. Instead of the lib element I used a symbolic link 
in the WEB-INF/lib directory of the project pointing to the library's 
jar file. This is the way I always did it.

But now I find it useful to avoid this step by directly including the 
library's class files, which are located under $L/classes. What about this?

If including the class files directly, where in the war file do they belong?

Thanks!
Laura

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

problem creating WAR file with ant Laura Schmidt <ls@mailinator.com> - 2012-11-18 17:53 +0100
  Re: problem creating WAR file with ant Arne Vajhøj <arne@vajhoej.dk> - 2012-11-18 12:01 -0500
    Re: problem creating WAR file with ant Laura Schmidt <ls@mailinator.com> - 2012-11-19 04:21 +0100
      Re: problem creating WAR file with ant Lew <lewbloch@gmail.com> - 2012-11-18 20:18 -0800
      Re: problem creating WAR file with ant Arne Vajhøj <arne@vajhoej.dk> - 2012-11-19 09:41 -0500

csiph-web