On Tue, Jun 2, 2009 at 11:55 PM, Jim Priest <[email protected]> wrote:

>
> On Jun 2, 9:23 am, Raymond Camden <[email protected]> wrote:
>
>
> > Also, if you already created a folder and try to run the script, it
> > will fail since the directory exists. I'm not sure if ANT supports it,
> > but doesn't it make sense to simply use the folder anyway?
>
> I did code this up to fail.  My thought was I didn't want the script
> to overwrite anything in an existing project...  I could probably hack
> in a 'are you sure' prompt and then proceed.
>
>
I'm not much for interactivity in Ant scripts as it tends to complicate task
automation.

Instead of intentionally failing the script when the directory exists, how
about intentionally failing the script when one of the files to be written
to exists? The fail message should mention the filename so the user can
manually delete that one file if he or she really wants the script to
destroy files. Index.cfm would make a good file to check for since just
about every CF application (Model-Glue or otherwise) has one of those, so if
the file is missing the project is likely to be empty.

Cheers,

Dennis

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to