Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-154

Option: file_spec extended with date:-variable

    XMLWordPrintable

Details

    Description

      What is the simplest way to have the date of the day in the ini file of jade for the filespec field ?

      Something like

      filespec=^insurance_file_[date:yyyyMMDD].*\.aes$

      Junit-Test-Code:

      @Test
      public void testRegExpWithPlaceHolders() throws Exception

      { String strDateformat = "yyyy-MM-dd"; String strDate = JSDataElementDate.getCurrentTimeAsString(strDateformat); System.out.println(strDate); objRE = new SOSOptionRegExp(null, "test", "TestOption",String.format( "^.*_[date:%1$s]_\\.txt$", strDateformat), "", false); String strV = objRE.Value(); System.out.println("value after replace is: " + strV); Assert.assertEquals("place holders 1", String.format("^.*_%1$s_\\.txt$", strDate), strV); }

      Attachments

        Activity

          People

            kb Klaus-Dieter Buettner (Inactive)
            kb Klaus-Dieter Buettner (Inactive)
            Oliver Haufe Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified