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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
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