On Thu, Nov 20, 2008 at 11:41 AM, Dan Vega wrote:
> Well I like the ANT approach but I have 1 main issue. I know how to use the
> copy command in 3 different scenarios (single file,single file to a
> directory, copy a dir). Based on 1 input though is there a way to know if
> its a file or dir?

Conditional logic isn't Ant's strong suit. You could do something with
conditional targets like:
<target name="moveFile" depends="file">
  ... ${file}
</target>
<target name="moveDir" depends="dir">
  ...${dir}
</target>

Then you invoke the task using:
ant -Dfile=/x/y.cfm
or:
ant -Ddir=/z/

I don't think it is worth the trouble to do that. You are probably
better of using:
1. something that doesn't care whether the source is a file or a
directory (batchfile with xcopy?);
2. something tied into your source control solution.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315726
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to