How does eclipse determine what to include in a WAR file when it's
deployed? I think I learned the hard way that simply placing a related
project on the Web-app's build path doesn't do it.
Hi Gary,
I think the content of exported war file is determined by the component
file.
..settings/org.eclipse.wst.common.component.
You can change the source and deploy path in the web-resource xml element.
"Gary Mrenak" <gmrenak@topdownsoftware.com> wrote in message
news:fb9fjk$h11$2@build.eclipse.org...
> Eclipse 3.2.1
>
> How does eclipse determine what to include in a WAR file when it's
> deployed? I think I learned the hard way that simply placing a related
> project on the Web-app's build path doesn't do it.
>
> Gary
zhaoming lin wrote:
> Hi Gary,
> I think the content of exported war file is determined by the component
> file.
> .settings/org.eclipse.wst.common.component.
> You can change the source and deploy path in the web-resource xml element.
>
> "Gary Mrenak" <gmrenak@topdownsoftware.com> wrote in message
> news:fb9fjk$h11$2@build.eclipse.org...
>> Eclipse 3.2.1
>>
>> How does eclipse determine what to include in a WAR file when it's
>> deployed? I think I learned the hard way that simply placing a related
>> project on the Web-app's build path doesn't do it.
>>
>> Gary
>
>
Thanks very much ... I had no idea those ".settings" files were there.
Now it will be much simpler to experiment and see what particular
Eclipse actions cause WAR file inclusions.
It is not just the component file: project classpath entries can also be
bundled into the WAR (in WEB-INF/lib) if those entries have the appropriate
WTP attribute.
Management of WEB-INF/lib dependencies (whether persisted in the component
file or via a classpath entry attribute) is done via the J2EE Module
Dependencies UI.
-Rob
"Gary Mrenak" <gmrenak@topdownsoftware.com> wrote in message
news:fbgv3k$97v$1@build.eclipse.org...
> zhaoming lin wrote:
>> Hi Gary,
>> I think the content of exported war file is determined by the component
>> file.
>> .settings/org.eclipse.wst.common.component.
>> You can change the source and deploy path in the web-resource xml
>> element.
>>
>> "Gary Mrenak" <gmrenak@topdownsoftware.com> wrote in message
>> news:fb9fjk$h11$2@build.eclipse.org...
>>> Eclipse 3.2.1
>>>
>>> How does eclipse determine what to include in a WAR file when it's
>>> deployed? I think I learned the hard way that simply placing a related
>>> project on the Web-app's build path doesn't do it.
>>>
>>> Gary
>>
>>
> Thanks very much ... I had no idea those ".settings" files were there. Now
> it will be much simpler to experiment and see what particular Eclipse
> actions cause WAR file inclusions.
>
> Gary