~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/prj2make-sharp-lib/MsPrjHelper.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20080329233633-l550uuwvfh1e68at
Tags: upstream-1.0+dfsg
ImportĀ upstreamĀ versionĀ 1.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
741
741
                                                flOut.BuildAction = BuildAction.Compile;
742
742
                                                break;
743
743
                                        case MonoDevelop.Prj2Make.Schema.Csproj.FileBuildAction.Content:
744
 
                                                flOut.BuildAction = BuildAction.Exclude;
 
744
                                                flOut.BuildAction = BuildAction.Nothing;
745
745
                                                break;
746
746
                                        case MonoDevelop.Prj2Make.Schema.Csproj.FileBuildAction.EmbeddedResource:
747
747
                                                flOut.BuildAction = BuildAction.EmbedAsResource;
802
802
                        if (basePath != null)
803
803
                                path = Path.Combine (basePath, path);
804
804
 
805
 
                        if (System.IO.File.Exists (path))
806
 
                                return path;
 
805
                        if (System.IO.File.Exists (path)){
 
806
                                return Path.GetFullPath (path);
 
807
                        }
807
808
                                
808
809
                        if (Path.IsPathRooted (path)) {
809
810
                                        
815
816
                                
816
817
                                for (int n=0; n<names.Length; n++) {
817
818
                                        string[] entries;
818
 
                                        if (n < names.Length - 1)
819
 
                                                entries = Directory.GetDirectories (part);
820
 
                                        else
821
 
                                                entries = Directory.GetFiles (part);
 
819
 
 
820
                                        if (names [n] == ".."){
 
821
                                                part = Path.GetFullPath (part + "/..");
 
822
                                                continue;
 
823
                                        }
 
824
                                        
 
825
                                        entries = Directory.GetFileSystemEntries (part);
822
826
                                        
823
827
                                        string fpath = null;
824
828
                                        foreach (string e in entries) {
829
833
                                        }
830
834
                                        if (fpath == null) {
831
835
                                                // Part of the path does not exist. Can't do any more checking.
 
836
                                                part = Path.GetFullPath (part);
832
837
                                                for (; n < names.Length; n++)
833
838
                                                        part += "/" + names[n];
834
839
                                                return part;
835
840
                                        }
836
 
                                        
 
841
 
837
842
                                        part = fpath;
838
843
                                }
839
 
                                return part;
840
 
                        } else
841
 
                                return path;
 
844
                                return Path.GetFullPath (part);
 
845
                        } else {
 
846
                                return Path.GetFullPath (path);
 
847
                        }
842
848
                }
843
849
        }   
844
850
}