Well here is the problem, our www folder has about 100 folders in it. I may
make some changes to folder x and I just want to push folder x to test &
production or just test. Should I not use ant for this? Just write bat for
this?


Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org


On Thu, Nov 20, 2008 at 1:49 PM, Barney Boisvert <[EMAIL PROTECTED]>wrote:

> Ant accepts properties on the command line that can be used to
> parameterize your script.  Though if all you're doing is replicating
> files, something like rsync and a simple shell script/BAT file might
> be easier.
>
> cheers,
> barneyb
>
> On Thu, Nov 20, 2008 at 8:45 AM, Dan Vega <[EMAIL PROTECTED]> wrote:
> > 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:315718
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