You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ramu Sethu <sr...@yahoo.co.in> on 2008/03/03 07:32:10 UTC

Re: problem with the fileset

Property task is not mandatory. To narrow down the problem, just write a
small build file which copies files from a local dir to another local dir
with date selector....

On Thu, Feb 28, 2008 at 4:23 PM, sekhar18k <se...@yahoo.co.in> wrote:

>
> hi Ramu,
>
> Thanks for the reply..
>
> Actually i am trying to download the files from a server which resides at
> a
> remote location.
> But I tried the same script, but it is getting all the files with the
> *.out
> extension.
> And one more doubt, what is the use of this property tag here. Is it
> necessary to use it compulsorily.
> What are all the Lib files needed to make this date selector work
> properly.
>
> please help me out...
>
> Thanks in advance...
>
> Sekhar..
>
>
>
>
> Ramu Sethu-2 wrote:
> >
> > Hi shekar
> >
> > I tried the following snippet. Its working fine for me. I think this
> > cannot
> > be a issue with date selector
> >
> > <fileset dir="." includes="*.xml" id="test">
> >         <date datetime="02/24/2008 12:00 AM" when="after"/>
> >     </fileset>
> >     <property refid="test" name="lib.prop">
> >     </property>
> >   <echo>${lib.prop}</echo>
> >
> > Did u try ur build with -verbose or -debug option?? These would give
> more
> > informations
> >
> >
> > On Wed, Feb 27, 2008 at 11:26 AM, sekhar18k <se...@yahoo.co.in>
> > wrote:
> >
> >>
> >> hi Ramu,
> >>
> >> the build file i have used is :
> >>
> >> *********************************************************
> >> target name="init">
> >>        <property environment="env"/>
> >>                <property file="${basedir}/ch21log_preprod.properties"/>
> >>        </target>
> >>
> >>        <target name="getDate"  depends="init">
> >>
> >>                <tstamp>
> >>                        <format property="build.date1"
> >> pattern="yyyyMMdd"/>
> >>                        <format property="build.date2"
> >> pattern="ddMMMyyyy"/>
> >>                        <format property="build.date3"
> pattern="yyyyMMdd"
> >>                        offset="-3" unit="day"/>
> >>            </tstamp>
> >>         </target>
> >>
> >>         <taskdef name="ssh" classname="com.sshtools.ant.Ssh"
> >> classpath="${build.ftp.jar}"/>
> >>         <target name="prod.vapgateway" depends="getDate">
> >>        <echo message="FTP... started.."/>
> >>        <ssh host="${ftp.server.host}"
> >>                 username="${ftp.server.userid}"
> >>                 password="${ftp.server.password}"
> >>                 port="${ftp.server.port}">
> >>
> >>                        <sftp action="get" remotedir="${prod.logs1.path
> }"
> >> verbose="true">
> >>                         <fileset dir="${build.date2}\${env.dir}\${
> >> logs1.dir}"
> >> includes="*.out" >
> >>                                <date datetime="02/24/2008 12:00 AM"
> >> when="after"/>
> >>
> >>                        </fileset>
> >>                        </sftp>
> >>
> >>                </ssh>
> >>      <echo message="FTP... End.."/>
> >>  </target>
> >> *********************************************************
> >>
> >> I want to get all the log files with the *.out fromat and the modified
> >> date
> >> as after Feb-24-2008 12:00AM
> >>
> >> but i am getting all the log files with the *.out format and the date
> >> selector is not working...
> >>
> >> I even tried the regex formula to select the file but that is also not
> >> working ...
> >>
> >> Could you please help me whether any other jar files to be included in
> >> the
> >> Lib folder or any problem with the build file...
> >>
> >> thanks in advance....
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Ramu Sethu-2 wrote:
> >> >
> >> > we couldn't see ur build file...... Its also difficult to guess your
> >> build
> >> > file.... :-)
> >> >
> >> > On Fri, Feb 22, 2008 at 8:05 PM, sekhar18k <se...@yahoo.co.in>
> >> wrote:
> >> >
> >> >>
> >> >> hi.,
> >> >>
> >> >> I am developing an ANT build script for downloading log file from
> the
> >> >> server.
> >> >> The build script used is :
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> but the result is not the one i expected.
> >> >>
> >> >> It is downloading all the logs that are having the extension ".out".
> >> >> It is not validating the regex formula.
> >> >>
> >> >> could you please help me on this...
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/problem-with-the-fileset-tp15633907p15633907.html
> >> >> Sent from the Ant - Users mailing list archive at Nabble.com.
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Thank you
> >> > Ramu S
> >> >
> >> >  If A is success in life, then A equals x plus y plus z. Work is x; y
> >> is
> >> > play; and z is keeping your mouth shut.
> >> > - Albert Einstein
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/problem-with-the-fileset-tp15633907p15706592.html
> >> Sent from the Ant - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >
> >
> > --
> > Thank you
> > Ramu S
> >
> >  If A is success in life, then A equals x plus y plus z. Work is x; y is
> > play; and z is keeping your mouth shut.
> > - Albert Einstein
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/problem-with-the-fileset-tp15633907p15734003.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Thank you
Ramu S

 If A is success in life, then A equals x plus y plus z. Work is x; y is
play; and z is keeping your mouth shut.
- Albert Einstein