Add file extensions

Jan 10, 2011 at 12:54 PM

Hi

first , thanks for this helpful project !

i just install it and it works fine with all the default file extinsions BUT when i tried to add a new  extension ( .sql ) although i can see it in the "Configuration editor" , its not work !

what can cause the problem?

Thanks ,

Sharon Cohen

Coordinator
Jan 11, 2011 at 5:44 AM

Can you post the contents of the "LogSubstPolSetting.xml" file from "$/{Project}/TeamProjectConfig/CheckinPolicies" !?

Jan 11, 2011 at 5:53 AM

yes , no problem ..

<?xml version="1.0" encoding="utf-8"?>
<LogSubstPolSetting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CheckForNewConfig>false</CheckForNewConfig>
  <InsertBeforeLogLine>true</InsertBeforeLogLine>
  <Extensions>
    <string>.cs</string>
    <string>.c</string>
    <string>.cpp</string>
    <string>.cxx</string>
    <string>.h</string>
    <string>.hpp</string>
    <string>.hxx</string>
    <string>.inc</string>
    <string>.dcl</string>
    <string>.asp</string>
    <string>.aspx</string>
    <string>.xml</string>
    <string>.htm</string>
    <string>.html</string>
    <string>.xaml</string>
    <string>.sql</string>
  </Extensions>
  <FirstLines>
    <string>| {7,8} | {0:yyyy}/{0:MM}/{0:dd} | {5,8:M8} | $COMMENT,-60:M60$ |</string>
    <string>|          |   {0:HH:mm:ss} |          | $COMMENT,-60:M60$ |</string>
  </FirstLines>
  <RepeatLines>
    <string>|          |            |          | $COMMENT,-60:M60$ |</string>
  </RepeatLines>
  <EndLines>
    <string>+----------+------------+----------+--------------------------------------------------------------+</string>
  </EndLines>
  <UserNameMappings />
</LogSubstPolSetting>

Coordinator
Jan 11, 2011 at 6:10 AM

Normally this should work... you must be sure that the extension in the config-file is in lower-case... hmm....

If I have a little bit time, I will try to debug it... maybe there is a problem with reading the configuration of the for the Extensions Property...

Apr 11, 2013 at 1:54 PM
I am also facing the same issue. If any one can provide advice or guidance will be highly appreciated...