How to get latest files based on modified date from vss using ant script?

As you can see from this source code of org.apache.tools.ant.taskdefs.optional.vss. MSVSSGET class.

As you can see from this source code of org.apache.tools.ant.taskdefs.optional.vss. MSVSSGET class: /** * Builds a command line to execute ss. * @return The constructed commandline.

*/ Commandline buildCmdLine() { Commandline commandLine = new Commandline(); // build the command line from what we got the format is // ss Get VSS items -G -H -I- -N -O -R -V -W -Y -? // as specified in the SS. EXE help commandLine.

SetExecutable(getSSCommand()); commandLine.createArgument(). SetValue(COMMAND_GET); if (getVsspath() == null) { throw new BuildException("vsspath attribute must be set! ", getLocation()); } commandLine.createArgument().

SetValue(getVsspath()); // -GL commandLine.createArgument(). SetValue(getLocalpath()); // -I- or -I-Y or -I-N commandLine.createArgument(). SetValue(getAutoresponse()); // -O- commandLine.createArgument().

SetValue(getQuiet()); // -R commandLine.createArgument(). SetValue(getRecursive()); // -V commandLine.createArgument(). SetValue(getVersionDateLabel()); // -W commandLine.createArgument().

SetValue(getWritable()); // -Y commandLine.createArgument(). SetValue(getLogin()); // -G commandLine.createArgument(). SetValue(getFileTimeStamp()); // -GWS or -GWR commandLine.createArgument().

SetValue(getWritableFiles()); return commandLine; } and org.apache.tools.ant.taskdefs.optional.vss. MSVSS class: /** * Gets the version string. Returns the first specified of version "-V1.0", * date "-Vd01.01.01", label "-Vlbuild1".

* @return An empty string if a version, date and label are not set. */ protected String getVersionDateLabel() { String versionDateLabel = ""; if (version! = null) { versionDateLabel = FLAG_VERSION + version; } else if (date!

= null) { versionDateLabel = FLAG_VERSION_DATE + date; } else { // Use getShortLabel() so labels longer then 30 char are truncated // and the user is warned String shortLabel = getShortLabel(); if (shortLabel! = null &&!shortLabel. Equals("")) { versionDateLabel = FLAG_VERSION_LABEL + shortLabel; } } return versionDateLabel; } you should set date attribute of vssget task.

Try to set date attribute's value in different formats (MM/dd/yy;hh:mma, mm/dd/yyyy;h:mma or dd.mm. Yyyy). This article and this post can help you to find the correct format.

The correct date time format, IMHO, depends on regional settings of VSS database. This issue post is about solving a similar problem.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions