tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luther Baker" <lutherba...@gmail.com>
Subject Re: Advantages of various .tml storage locations?
Date Fri, 05 Dec 2008 18:35:01 GMT
@Jonathan

That works for me. Maven clean and then install.

I'm using Eclipse with M2 and Jetty plugins ... and have components and
properties files that load correctly from the resources dirs --- so my src
dirs were setup correctly. For whatever reason, after a Maven clean and
install ... my pages are now visible from the resources dir.

I even dropped Home.tml back into my webapp dir and left the other pages in
the resources dirs and the app works just fine. I explicitly checked the
target WAR file and work directories and sure enough, only Home.tml exists
in the root directory ... so I think its working as expected.

Thanks,

-Luther



On Fri, Dec 5, 2008 at 11:53 AM, Christian Edward Gruber <
christianedwardgruber@gmail.com> wrote:

> I believe you are correct.
>
> Christian.
>
>
> On 5-Dec-08, at 12:38 , Jonathan Barker wrote:
>
>
>> Correct me if I'm wrong: specifying the resources directory in this way
>> means that the original (default) src/main/resources will not be used, so
>> if
>> you want to mix-and-match resource locations then you need to also specify
>> src/main/resources.
>>
>> I wouldn't want someone tripping on that issue.
>>
>> Jonathan
>>
>>
>>  -----Original Message-----
>>> From: Andreas Andreou [mailto:andreoua@gmail.com]
>>> Sent: Friday, December 05, 2008 11:06
>>> To: Tapestry users
>>> Subject: Re: Advantages of various .tml storage locations?
>>>
>>> http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-
>>> start/resolvers.html
>>> implements that for T4.1
>>> but the maven instructions mentioned there are what you're after... it
>>> boils down to redefining the
>>> resources location like this:
>>>
>>>   <build>
>>>       ...
>>>       <resources>
>>>           <resource>
>>>               <directory>src/main/java</directory>
>>>               <excludes>
>>>                   <exclude>**/*.java</exclude>
>>>               </excludes>
>>>           </resource>
>>>           ...
>>>       </resources>
>>>       ...
>>>   </build>
>>>
>>>
>>> On Fri, Dec 5, 2008 at 1:05 PM, Maximilian Weißböck
>>> <Maximilian.Weissboeck@sphinx.at> wrote:
>>>
>>>> I would much prefer solution number 1. as it keeps things
>>>> on the same place that belong together.
>>>>
>>>> Sadly maven build does not work with this solution.
>>>> Is there any maven guru how knows how to "fix" this?
>>>>
>>>> Thanks, Max
>>>>
>>>>  -----Ursprüngliche Nachricht-----
>>>>> Von: yimmy149@gmail.com [mailto:yimmy149@gmail.com] Im Auftrag von
>>>>>
>>>> James
>>>
>>>> Hillyerd
>>>>> Gesendet: Donnerstag, 4. Dezember 2008 23:06
>>>>> An: Tapestry users
>>>>> Betreff: Advantages of various .tml storage locations?
>>>>>
>>>>> What are the pros/cons of keeping page .tml in:
>>>>>
>>>>> 1. src/main/java
>>>>>
>>>>>  vs
>>>>>
>>>>> 2. src/main/resources
>>>>>
>>>>>  vs
>>>>>
>>>>> 3. src/main/webapp
>>>>>
>>>>> ?
>>>>>
>>>>>
>>>>> I see JumpStart uses #1, and the tutorial uses #3.  Seems like it would
>>>>> easier to use #1 or #2 so at least the components and pages .tml are
in
>>>>> the
>>>>> same directory tree.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> -james
>>>>>
>>>>> --
>>>>> James A. Hillyerd <james@hillyerd.com>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
>>> Tapestry / Tacos developer
>>> Open Source / JEE Consulting
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message