In the current environment I am working on we have a dev/test/prod setup.
Everything needs to be done in dev but not everything in dev gets moved.
Only files that need to be reviewed get moved to test so the Test env is not
always current. I am trying to come up with a solution that allows me to
enter a file or dir and then select test/live/all to move file(s) or
directories.

For example I am using the input paramater. If I use the following build
script It works great for moving files. I also know how to work with
directories, my main question is how can I make it dynamic so if I enter a
file or folder it knows to only push that?

<?xml version="1.0" encoding="UTF-8"?>
<project default="test">

    <description>.com build file</description>

    <input message="Target file or directory to copy: "
addproperty="target"/>
    <input message="Environment we are copying to: "  addproperty="ENV"
defaultvalue="test" validargs="test,live,all"/>

    <property name="dev" value="\\mydevcom" />
    <property name="test" value="\\mytestcom" />
    <property name="live" value="\\mylivecom" />

     <target name="test">
         <copy file="${target}" todir="${test}" verbose="true"/>
     </target>

     <target name="live">
         <copy file="${target}" todir="${live}" verbose="true"/>
     </target>

    <target name="all" depends="test,live"/>

</project>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:315701
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to