ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/xmlTools/trunk/posUpdate/XmlPatch.cs
(Generate patch)

Comparing xmlTools/trunk/posUpdate/XmlPatch.cs (file contents):
Revision 867 by s10k, Thu May 9 10:37:17 2013 UTC vs.
Revision 868 by s10k, Fri May 10 14:42:11 2013 UTC

# Line 279 | Line 279 | namespace xmlTools
279  
280              try
281              {
282 <                if (forceFiles != null)
282 >                if (!String.IsNullOrEmpty(forceFiles))
283                  {
284                      string paramType = "";
285  
# Line 305 | Line 305 | namespace xmlTools
305                          if (endIdx == -1)
306                          {
307                              endIdx = command.IndexOf("\n", startIdx); // or with endline
308 +                            if(endIdx==-1){ // Filename parameters is the last one in the file (file ends with this parameter)
309 +                                endIdx=command.Length-1;
310 +                            }
311                          }
312                          string currFilename = command.Substring(startIdx, endIdx - startIdx);
313                          command = command.Replace(currFilename, this.forceFiles);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)