Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Variable that point to webapps directory?
Variable that point to webapps directory? [message #484170] Fri, 04 September 2009 09:45 Go to next message
Eclipse User
Originally posted by: david.balazic.hermes.si.foo

Hi!

In a (web app) project we have this line in the project.properties file:

something=F:/work/eclipseWS/ws1/.metadata/.plugins/org.eclip se.wst.server.core/tmp0/webapps/

That is obviously not a good thing. Is there some variable we could use?
A variable that point to the tomcat webapp directory?

We use Eclipse 3.5.0 and Tomcat 6.0 (configured as server in Eclipse).

Thanks,
David


PS: We inherited this project from others, so don't blame us ;-)

--
My email address has a spamers-confusing addition...
Re: Variable that point to webapps directory? [message #484195 is a reply to message #484170] Fri, 04 September 2009 10:52 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1297
Registered: July 2009
Senior Member
Finding a better alternative is very much dependent on the exact purpose
of this setting and what is using it. For example, is it being used in
an Ant script?

Cheers,
Larry

David Balažic wrote:
> Hi!
>
> In a (web app) project we have this line in the project.properties file:
>
> something=F:/work/eclipseWS/ws1/.metadata/.plugins/org.eclip se.wst.server.core/tmp0/webapps/
>
>
> That is obviously not a good thing. Is there some variable we could use?
> A variable that point to the tomcat webapp directory?
>
> We use Eclipse 3.5.0 and Tomcat 6.0 (configured as server in Eclipse).
>
> Thanks,
> David
>
>
> PS: We inherited this project from others, so don't blame us ;-)
>
Re: Variable that point to webapps directory? [message #484299 is a reply to message #484195] Sat, 05 September 2009 15:57 Go to previous messageGo to next message
Eclipse User
Originally posted by: david.balazic.hermes-softlab.com.foo

(I'm not at th PC with the right now, so...)
... I think it is used in a maven "script", that is a maven XML file.
(I will give more accurate info on monday)

Regards,
David

Larry Isaacs wrote:

> Finding a better alternative is very much dependent on the exact purpose
> of this setting and what is using it. For example, is it being used in
> an Ant script?

> Cheers,
> Larry

> David BalaÅŸic wrote:
>> Hi!
>>
>> In a (web app) project we have this line in the project.properties file:
>>
>>
something=F:/work/eclipseWS/ws1/.metadata/.plugins/org.eclip se.wst.server.core/tmp0/webapps/
>>
>>
>> That is obviously not a good thing. Is there some variable we could use?
>> A variable that point to the tomcat webapp directory?
>>
>> We use Eclipse 3.5.0 and Tomcat 6.0 (configured as server in Eclipse).
>>
>> Thanks,
>> David
>>
>>
>> PS: We inherited this project from others, so don't blame us ;-)
Re: Variable that point to webapps directory? [message #484367 is a reply to message #484195] Mon, 07 September 2009 05:22 Go to previous messageGo to next message
Eclipse User
Originally posted by: david.balazic.hermes.si.foo

It is used in maven, for example

<copy file="some.file" todir="${something}" />


Regards,
David

Larry Isaacs wrote:
> Finding a better alternative is very much dependent on the exact purpose
> of this setting and what is using it. For example, is it being used in
> an Ant script?
>
> Cheers,
> Larry
>
> David Balažic wrote:
>> Hi!
>>
>> In a (web app) project we have this line in the project.properties file:
>>
>> something=F:/work/eclipseWS/ws1/.metadata/.plugins/org.eclip se.wst.server.core/tmp0/webapps/
>>
>>
>> That is obviously not a good thing. Is there some variable we could use?
>> A variable that point to the tomcat webapp directory?
>>
>> We use Eclipse 3.5.0 and Tomcat 6.0 (configured as server in Eclipse).
>>
>> Thanks,
>> David
>>
>>
>> PS: We inherited this project from others, so don't blame us ;-)
>>


--
My email address has a spamers-confusing addition...
Re: Variable that point to webapps directory? [message #484614 is a reply to message #484367] Tue, 08 September 2009 10:05 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1297
Registered: July 2009
Senior Member
I'm not aware of the WTP Tomcat support making something like this
available within the Eclipse environment. You may have to look in the
maven support to see if they provide a way of defining substitution
variables. Not knowing much about the maven support, I don't know if
substitution variables defined within Eclipse would be visible when
maven runs.

Also, copying files to the "webapps" folder suggests that maven's
support for Tomcat is independent of WTP's built-in support for Tomcat,
which publishes to a "wtpwebapps" folder. I can't predict how well they
will work together.

You do have the option of setting the "catalina.base" directory to
something less "internal" than
".metadata/.plugins/org.eclipse.wst.server.core/tmp0". Remove any
projects from the server and publish the server. Then double-click the
Tomcat server in the Servers view to open the server editor. Select
"Use custom location" in the Server Locations section, and specify
something suitable for "Server path".

Cheers,
Larry

David Balažic wrote:
> It is used in maven, for example
>
> <copy file="some.file" todir="${something}" />
>
>
> Regards,
> David
>
> Larry Isaacs wrote:
>> Finding a better alternative is very much dependent on the exact
>> purpose of this setting and what is using it. For example, is it
>> being used in an Ant script?
>>
>> Cheers,
>> Larry
>>
>> David Balažic wrote:
>>> Hi!
>>>
>>> In a (web app) project we have this line in the project.properties file:
>>>
>>> something=F:/work/eclipseWS/ws1/.metadata/.plugins/org.eclip se.wst.server.core/tmp0/webapps/
>>>
>>>
>>> That is obviously not a good thing. Is there some variable we could use?
>>> A variable that point to the tomcat webapp directory?
>>>
>>> We use Eclipse 3.5.0 and Tomcat 6.0 (configured as server in Eclipse).
>>>
>>> Thanks,
>>> David
>>>
>>>
>>> PS: We inherited this project from others, so don't blame us ;-)
>>>
>
>
Re: Variable that point to webapps directory? [message #484638 is a reply to message #484614] Tue, 08 September 2009 10:15 Go to previous message
Eclipse User
Originally posted by: david.balazic.hermes.si.foo

Thanks.

But closer inspection reveals that this might be no necessary at all.
It is used to copy the webapp war file to the tomcat webapps dir, but
eclipse takes care if deployment automatically.
But I am new on the project, maybe this is needed anyway ...

Regards,
David

Larry Isaacs wrote:
> I'm not aware of the WTP Tomcat support making something like this
> available within the Eclipse environment. You may have to look in the
> maven support to see if they provide a way of defining substitution
> variables. Not knowing much about the maven support, I don't know if
> substitution variables defined within Eclipse would be visible when
> maven runs.
>
> Also, copying files to the "webapps" folder suggests that maven's
> support for Tomcat is independent of WTP's built-in support for Tomcat,
> which publishes to a "wtpwebapps" folder. I can't predict how well they
> will work together.
>
> You do have the option of setting the "catalina.base" directory to
> something less "internal" than
> ".metadata/.plugins/org.eclipse.wst.server.core/tmp0". Remove any
> projects from the server and publish the server. Then double-click the
> Tomcat server in the Servers view to open the server editor. Select
> "Use custom location" in the Server Locations section, and specify
> something suitable for "Server path".
>
> Cheers,
> Larry
>
> David Balažic wrote:
>> It is used in maven, for example
>>
>> <copy file="some.file" todir="${something}" />
>>
>>
>> Regards,
>> David
>>
>> Larry Isaacs wrote:
>>> Finding a better alternative is very much dependent on the exact
>>> purpose of this setting and what is using it. For example, is it
>>> being used in an Ant script?
>>>
>>> Cheers,
>>> Larry
>>>
>>> David Balažic wrote:
>>>> Hi!
>>>>
>>>> In a (web app) project we have this line in the project.properties
>>>> file:
>>>>
>>>> something=F:/work/eclipseWS/ws1/.metadata/.plugins/org.eclip se.wst.server.core/tmp0/webapps/
>>>>
>>>>
>>>> That is obviously not a good thing. Is there some variable we could
>>>> use?
>>>> A variable that point to the tomcat webapp directory?
>>>>
>>>> We use Eclipse 3.5.0 and Tomcat 6.0 (configured as server in Eclipse).
>>>>
>>>> Thanks,
>>>> David
>>>>
>>>>
>>>> PS: We inherited this project from others, so don't blame us ;-)
>>>>
>>
>>
Previous Topic:Re: Project Dependancies
Next Topic:Overriding Validator settings via the API
Goto Forum:
  


Current Time: Thu Jul 24 14:01:26 EDT 2014

Powered by FUDForum. Page generated in 0.01706 seconds