fix spring beans resolution in plugin
authorEugene.Petrenko <eugene.petrenko@gmail.com>
Mon, 11 Jul 2011 15:15:36 +0000 (19:15 +0400)
committerEugene.Petrenko <eugene.petrenko@gmail.com>
Mon, 11 Jul 2011 15:15:36 +0000 (19:15 +0400)
nuget-server/fake-teamcity-server-plugin-context.xml [new file with mode: 0644]
nuget-server/nuget-server.iml

diff --git a/nuget-server/fake-teamcity-server-plugin-context.xml b/nuget-server/fake-teamcity-server-plugin-context.xml
new file mode 100644 (file)
index 0000000..9623ea3
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--suppress SpringBeanInstantiationInspection -->\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"\r
+       default-autowire="constructor">\r
+  <!-- this is a fake spring context xml to make IDEA know all implicit beans that are available for plugin -->\r
+  <bean class="jetbrains.buildServer.web.openapi.PluginDescriptor"/>\r
+</beans>
\ No newline at end of file
index a496da5feb3aad19b6a032303ccc5d5dcb1fa83e..a6d6bdd2f6bba80a89a5ed3f2c341106fb3a1f67 100644 (file)
@@ -7,6 +7,7 @@
           <file>file://$MODULE_DIR$/src/META-INF/build-server-plugin-nuget.xml</file>\r
           <file>jar://$TeamCityDistribution$/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml</file>\r
           <file>jar://$TeamCityDistribution$/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerPermissions.xml</file>\r
           <file>file://$MODULE_DIR$/src/META-INF/build-server-plugin-nuget.xml</file>\r
           <file>jar://$TeamCityDistribution$/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml</file>\r
           <file>jar://$TeamCityDistribution$/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerPermissions.xml</file>\r
+          <file>file://$MODULE_DIR$/fake-teamcity-server-plugin-context.xml</file>\r
         </fileset>\r
       </configuration>\r
     </facet>\r
         </fileset>\r
       </configuration>\r
     </facet>\r