Skip to main content

alphaWorks  >  Forums  >  Design Pattern Toolkit  >  developerWorks

directory iterate    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 2 - Pages: 1 - Last Post: Jan 5, 2007 9:58 AM Last Post By: Threads: [ Previous | Next ]

Posts: 2
Registered: Sep 27, 2005 04:06:34 PM
directory iterate
Posted: Dec 10, 2005 09:17:29 AM
Click to report abuse...   Click to reply to this thread Reply
why it cannot iterate a template folder ?
(you may say that's a silly question, but then you don't have 400 files to reference in you template ...)

Posts: 8
Registered: Jul 27, 2005 11:57:44 AM
Re: directory iterate
Posted: Dec 11, 2005 10:52:13 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
hmmm... So you have a bunch of templates in a single folder in your pattern and you want to iterate over them regardless of whether the pattern is in an Eclipse project or in a patzip?

Just want to confirm that I understand the question before answering...

  • Chris

Posts: 2
Registered: Sep 27, 2005 04:06:34 PM
Re: directory iterate
Posted: Jan 05, 2007 09:58:24 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
sorry for the long time to respond.

and yes,that's exactly the problem i have.

i have a full bunch of views (think properties files and such) on which i must iterate accordingly to the model's appdef.

typically i have the following structure in the configuration pattern :

controller/
+ maincontroller.pat
views/
+ amodule/
++ file.properties.pat
++ anotherfile.properties.pat
+ another_module/
++ file.properties.pat
++ anotherfile.properties.pat

and the model could contain one or more modules accordingly of the deployement strategy of the application.

so my problem actually is that i cannot iterate in the pattern folder, i have to hack my way in copying all the views into the project which contains the appdef and iterate on it, then subtitute the resulting path to actually get the right view.


Point your RSS reader here for a feed of the latest messages in all forums