Copied: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceUtils.cs (from r1200267, incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/FolderWatcher.cs) URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceUtils.cs?p2=incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceUtils.cs&p1=incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/FolderWatcher.cs&r1=1200267&r2=1200751&rev=1200751&view=diff ============================================================================== --- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/FolderWatcher.cs (original) +++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceUtils.cs Fri Nov 11 07:01:15 2011 @@ -91,270 +91,4 @@ namespace NPanday.VisualStudio.Addin return url; } } - - public class WebsiteAssemblyReferenceWatcher - { - //public event RenamedEventHandler Renamed; - public event FileSystemEventHandler Created; - public event FileSystemEventHandler Deleted; - - FileSystemWatcher watcher; - string folderPath; - - public WebsiteAssemblyReferenceWatcher(string folderPath) - { - this.folderPath = folderPath; - this.init(); - } - - public void Start() - { - watcher.EnableRaisingEvents = true; - } - - public void Stop() - { - watcher.EnableRaisingEvents = false; - watcher.Dispose(); - } - - void init() - { - watcher = new FileSystemWatcher(folderPath); - watcher.NotifyFilter = NotifyFilters.FileName; - watcher.Deleted += new FileSystemEventHandler(watcher_Deleted); - watcher.Created += new FileSystemEventHandler(watcher_Created); - watcher.IncludeSubdirectories = false; - - } - - - - void watcher_Created(object sender, FileSystemEventArgs e) - { - if (Created != null) - { - Created(this, e); - } - } - - void watcher_Deleted(object sender, FileSystemEventArgs e) - { - if (Deleted != null) - Deleted(this, e); - } - - } - - public class WebServicesReferenceWatcher - { - public event EventHandler<WebReferenceEventArgs> Renamed; - public event EventHandler<WebReferenceEventArgs> Created; - public event EventHandler<WebReferenceEventArgs> Deleted; - - FileSystemWatcher watcher; - string folderPath; - - public WebServicesReferenceWatcher(string folderPath) - { - this.folderPath = folderPath; - this.init(); - } - - public void Start() - { - watcher.EnableRaisingEvents = true; - } - - public void Stop() - { - watcher.EnableRaisingEvents = false; - watcher.Dispose(); - } - - void init() - { - - watcher = new FileSystemWatcher(folderPath); - watcher.NotifyFilter = NotifyFilters.DirectoryName; - watcher.Renamed += new RenamedEventHandler(watcher_Renamed); - watcher.Deleted += new FileSystemEventHandler(watcher_Deleted); - watcher.Created += new FileSystemEventHandler(watcher_Created); - watcher.Error += new ErrorEventHandler(watcher_Error); - watcher.Changed += new FileSystemEventHandler(watcher_Changed); - watcher.IncludeSubdirectories = false; - - } - - void watcher_Changed(object sender, FileSystemEventArgs e) - { - Console.WriteLine(e.FullPath); - } - - void watcher_Error(object sender, ErrorEventArgs e) - { - this.Stop(); - } - - void watcher_Created(object sender, FileSystemEventArgs e) - { - WebReferenceEventArgs a = new WebReferenceEventArgs(e.ChangeType, e.FullPath, e.Name); - - onCreated(a); - } - - void watcher_Deleted(object sender, FileSystemEventArgs e) - { - WebReferenceEventArgs a = new WebReferenceEventArgs(e.ChangeType, e.FullPath, e.Name); - onDeleted(a); - } - - void watcher_Renamed(object sender, RenamedEventArgs e) - { - WebReferenceEventArgs a = new WebReferenceEventArgs(e.ChangeType, e.FullPath, e.Name); - a.OldNamespace = e.OldName; - - onRenamed(a); - } - - void onRenamed(WebReferenceEventArgs e) - { - if (Renamed != null) - { - Renamed(this, e); - } - } - - void onDeleted(WebReferenceEventArgs e) - { - if (Deleted != null) - { - Deleted(this, e); - } - } - - void onCreated(WebReferenceEventArgs e) - { - if (Created != null) - { - Created(this, e); - } - } - - - - } - - public class WebReferenceEventArgs : FileSystemEventArgs - { - - public WebReferenceEventArgs(WatcherChangeTypes changeType, string directory, string name ) - :base(changeType, directory,name) - { - this.referenceDirectory = directory; - } - - private string referenceDirectory; - - public string ReferenceDirectory - { - get { return referenceDirectory; } - set { referenceDirectory = value; } - } - - - private string oldNamespace; - - public string OldNamespace - { - get { return oldNamespace; } - set { oldNamespace = value; } - } - - - private string _namespace; - - public string Namespace - { - get { return _namespace; } - set { _namespace = value; } - } - - private string wsdlUrl; - - public string WsdlUrl - { - get { return wsdlUrl; } - set { wsdlUrl = value; } - } - - private string wsdlFile; - - public string WsdlFile - { - get { return wsdlFile; } - set { wsdlFile = value; } - } - - - public void Init(string wsPath) - { - if (!string.IsNullOrEmpty(wsPath)) - { - if (!this.referenceDirectory.Equals(Path.Combine(wsPath, this.Name), StringComparison.InvariantCultureIgnoreCase)) - { - this.referenceDirectory = Path.Combine(wsPath, this.Name); - } - this.Namespace = this.Name; - if (this.ChangeType != WatcherChangeTypes.Deleted) - { - string projectPath = Path.GetDirectoryName(Path.GetDirectoryName(this.referenceDirectory)); - - this.wsdlUrl = WebServicesReferenceUtils.GetWsdlUrl(WebServicesReferenceUtils.GetReferenceFile(this.referenceDirectory)); - this.wsdlFile = WebServicesReferenceUtils.GetWsdlFile(this.referenceDirectory); - this.wsdlFile = this.wsdlFile.Substring(projectPath.Length+1); - - } - } - } - - - } - - public class WebReferencesClasses - { - private bool running; - private string webRefPath; - - public WebReferencesClasses(string webRefPath) - { - this.webRefPath = webRefPath; - this.running = true; - } - - public void WaitForClasses(string nSpace) - { - while (running) - { - //check if classes are generated - string[] files = Directory.GetFiles(this.webRefPath); - foreach (string file in files) - { - if (file.Contains(".cs") || file.Contains(".vb")) - { - if (!string.IsNullOrEmpty(nSpace) && file.Contains(nSpace)) - { - running = false; - break; - } - else - { - running = false; - break; - } - } - } - } - } - } }
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceWatcher.cs URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceWatcher.cs?rev=1200751&view=auto ============================================================================== --- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceWatcher.cs (added) +++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebServicesReferenceWatcher.cs Fri Nov 11 07:01:15 2011 @@ -0,0 +1,104 @@ +using System; +using System.IO; + +namespace NPanday.VisualStudio.Addin +{ + public class WebServicesReferenceWatcher + { + public event EventHandler<WebReferenceEventArgs> Renamed; + public event EventHandler<WebReferenceEventArgs> Created; + public event EventHandler<WebReferenceEventArgs> Deleted; + + FileSystemWatcher watcher; + string folderPath; + + public WebServicesReferenceWatcher(string folderPath) + { + this.folderPath = folderPath; + this.init(); + } + + public void Start() + { + watcher.EnableRaisingEvents = true; + } + + public void Stop() + { + watcher.EnableRaisingEvents = false; + watcher.Dispose(); + } + + void init() + { + + watcher = new FileSystemWatcher(folderPath); + watcher.NotifyFilter = NotifyFilters.DirectoryName; + watcher.Renamed += new RenamedEventHandler(watcher_Renamed); + watcher.Deleted += new FileSystemEventHandler(watcher_Deleted); + watcher.Created += new FileSystemEventHandler(watcher_Created); + watcher.Error += new ErrorEventHandler(watcher_Error); + watcher.Changed += new FileSystemEventHandler(watcher_Changed); + watcher.IncludeSubdirectories = false; + + } + + void watcher_Changed(object sender, FileSystemEventArgs e) + { + Console.WriteLine(e.FullPath); + } + + void watcher_Error(object sender, ErrorEventArgs e) + { + this.Stop(); + } + + void watcher_Created(object sender, FileSystemEventArgs e) + { + WebReferenceEventArgs a = new WebReferenceEventArgs(e.ChangeType, e.FullPath, e.Name); + + onCreated(a); + } + + void watcher_Deleted(object sender, FileSystemEventArgs e) + { + WebReferenceEventArgs a = new WebReferenceEventArgs(e.ChangeType, e.FullPath, e.Name); + onDeleted(a); + } + + void watcher_Renamed(object sender, RenamedEventArgs e) + { + WebReferenceEventArgs a = new WebReferenceEventArgs(e.ChangeType, e.FullPath, e.Name); + a.OldNamespace = e.OldName; + + onRenamed(a); + } + + void onRenamed(WebReferenceEventArgs e) + { + if (Renamed != null) + { + Renamed(this, e); + } + } + + void onDeleted(WebReferenceEventArgs e) + { + if (Deleted != null) + { + Deleted(this, e); + } + } + + void onCreated(WebReferenceEventArgs e) + { + if (Created != null) + { + Created(this, e); + } + } + + + + } +} \ No newline at end of file Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebsiteAssemblyReferenceWatcher.cs URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebsiteAssemblyReferenceWatcher.cs?rev=1200751&view=auto ============================================================================== --- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebsiteAssemblyReferenceWatcher.cs (added) +++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/WebsiteAssemblyReferenceWatcher.cs Fri Nov 11 07:01:15 2011 @@ -0,0 +1,58 @@ +using System.IO; + +namespace NPanday.VisualStudio.Addin +{ + public class WebsiteAssemblyReferenceWatcher + { + //public event RenamedEventHandler Renamed; + public event FileSystemEventHandler Created; + public event FileSystemEventHandler Deleted; + + FileSystemWatcher watcher; + string folderPath; + + public WebsiteAssemblyReferenceWatcher(string folderPath) + { + this.folderPath = folderPath; + this.init(); + } + + public void Start() + { + watcher.EnableRaisingEvents = true; + } + + public void Stop() + { + watcher.EnableRaisingEvents = false; + watcher.Dispose(); + } + + void init() + { + watcher = new FileSystemWatcher(folderPath); + watcher.NotifyFilter = NotifyFilters.FileName; + watcher.Deleted += new FileSystemEventHandler(watcher_Deleted); + watcher.Created += new FileSystemEventHandler(watcher_Created); + watcher.IncludeSubdirectories = false; + + } + + + + void watcher_Created(object sender, FileSystemEventArgs e) + { + if (Created != null) + { + Created(this, e); + } + } + + void watcher_Deleted(object sender, FileSystemEventArgs e) + { + if (Deleted != null) + Deleted(this, e); + } + + } +} \ No newline at end of file Modified: incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Resx/src/main/csharp/NPanday.Plugin.Resx.csproj URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Resx/src/main/csharp/NPanday.Plugin.Resx.csproj?rev=1200751&r1=1200750&r2=1200751&view=diff ============================================================================== --- incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Resx/src/main/csharp/NPanday.Plugin.Resx.csproj (original) +++ incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Resx/src/main/csharp/NPanday.Plugin.Resx.csproj Fri Nov 11 07:01:15 2011 @@ -43,7 +43,7 @@ under the License. </ItemGroup> <ItemGroup> <Compile Include="NPanday\Plugin\Resx\MimeType.cs" /> - <Compile Include="NPanday\Plugin\Resx\ResX.cs" /> + <Compile Include="NPanday\Plugin\Resx\ResourceGenerator.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\..\..\..\..\dotnet\assemblies\NPanday.Artifact\src\main\csharp\NPanday.Artifact.csproj"> Modified: incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday.Plugin.Settings.csproj URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday.Plugin.Settings.csproj?rev=1200751&r1=1200750&r2=1200751&view=diff ============================================================================== --- incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday.Plugin.Settings.csproj (original) +++ incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday.Plugin.Settings.csproj Fri Nov 11 07:01:15 2011 @@ -43,7 +43,11 @@ under the License. <ItemGroup> <Compile Include="NPanday\Plugin\Settings\DotnetSdkLocator.cs" /> <Compile Include="NPanday\Plugin\Settings\ExecutionException.cs" /> + <Compile Include="NPanday\Plugin\Settings\NewDataSet.cs" /> <Compile Include="NPanday\Plugin\Settings\npandaySettings.cs" /> + <Compile Include="NPanday\Plugin\Settings\npandaySettingsDefaultSetup.cs" /> + <Compile Include="NPanday\Plugin\Settings\npandaySettingsVendorsVendor.cs" /> + <Compile Include="NPanday\Plugin\Settings\npandaySettingsVendorsVendorFrameworksFramework.cs" /> <Compile Include="NPanday\Plugin\Settings\PathUtil.cs" /> <Compile Include="NPanday\Plugin\Settings\SettingsGeneratorMojo.cs" /> </ItemGroup> Added: incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/NewDataSet.cs URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/NewDataSet.cs?rev=1200751&view=auto ============================================================================== --- incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/NewDataSet.cs (added) +++ incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/NewDataSet.cs Fri Nov 11 07:01:15 2011 @@ -0,0 +1,11 @@ +namespace NPanday.Plugin.Settings +{ + /// <remarks/> + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public class NewDataSet { + + /// <remarks/> + [System.Xml.Serialization.XmlElementAttribute()] + public npandaySettings[] npandaySettings; + } +} \ No newline at end of file Modified: incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettings.cs URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettings.cs?rev=1200751&r1=1200750&r2=1200751&view=diff ============================================================================== --- incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettings.cs (original) +++ incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettings.cs Fri Nov 11 07:01:15 2011 @@ -46,60 +46,4 @@ namespace NPanday.Plugin.Settings { [System.Xml.Serialization.XmlArrayItem(ElementName="vendor", IsNullable=false)] public npandaySettingsVendorsVendor[] vendors; } - - /// <remarks/> - public class npandaySettingsDefaultSetup { - - /// <remarks/> - public string vendorName; - - /// <remarks/> - public string vendorVersion; - - /// <remarks/> - public string frameworkVersion; - } - - /// <remarks/> - public class npandaySettingsVendorsVendor { - - /// <remarks/> - public string vendorName; - - /// <remarks/> - public string vendorVersion; - - /// <remarks/> - public string isDefault; - - /// <remarks/> - [System.Xml.Serialization.XmlArrayItem(ElementName="framework", IsNullable=false)] - public npandaySettingsVendorsVendorFrameworksFramework[] frameworks; - } - - /// <remarks/> - public class npandaySettingsVendorsVendorFrameworksFramework { - - /// <remarks/> - public string frameworkVersion; - - /// <remarks/> - public string installRoot; - - /// <remarks/> - public string sdkInstallRoot; - - /// <remarks/> - [System.Xml.Serialization.XmlArrayItem(ElementName="executablePath", IsNullable=false)] - public string[] executablePaths; - } - - /// <remarks/> - [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] - public class NewDataSet { - - /// <remarks/> - [System.Xml.Serialization.XmlElementAttribute()] - public npandaySettings[] npandaySettings; - } } Added: incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsDefaultSetup.cs URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsDefaultSetup.cs?rev=1200751&view=auto ============================================================================== --- incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsDefaultSetup.cs (added) +++ incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsDefaultSetup.cs Fri Nov 11 07:01:15 2011 @@ -0,0 +1,15 @@ +namespace NPanday.Plugin.Settings +{ + /// <remarks/> + public class npandaySettingsDefaultSetup { + + /// <remarks/> + public string vendorName; + + /// <remarks/> + public string vendorVersion; + + /// <remarks/> + public string frameworkVersion; + } +} \ No newline at end of file Added: incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendor.cs URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendor.cs?rev=1200751&view=auto ============================================================================== --- incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendor.cs (added) +++ incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendor.cs Fri Nov 11 07:01:15 2011 @@ -0,0 +1,19 @@ +namespace NPanday.Plugin.Settings +{ + /// <remarks/> + public class npandaySettingsVendorsVendor { + + /// <remarks/> + public string vendorName; + + /// <remarks/> + public string vendorVersion; + + /// <remarks/> + public string isDefault; + + /// <remarks/> + [System.Xml.Serialization.XmlArrayItem(ElementName="framework", IsNullable=false)] + public npandaySettingsVendorsVendorFrameworksFramework[] frameworks; + } +} \ No newline at end of file Added: incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendorFrameworksFramework.cs URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendorFrameworksFramework.cs?rev=1200751&view=auto ============================================================================== --- incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendorFrameworksFramework.cs (added) +++ incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/npandaySettingsVendorsVendorFrameworksFramework.cs Fri Nov 11 07:01:15 2011 @@ -0,0 +1,19 @@ +namespace NPanday.Plugin.Settings +{ + /// <remarks/> + public class npandaySettingsVendorsVendorFrameworksFramework { + + /// <remarks/> + public string frameworkVersion; + + /// <remarks/> + public string installRoot; + + /// <remarks/> + public string sdkInstallRoot; + + /// <remarks/> + [System.Xml.Serialization.XmlArrayItem(ElementName="executablePath", IsNullable=false)] + public string[] executablePaths; + } +} \ No newline at end of file