geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r515697 - /geronimo/server/trunk/pom.xml
Date Wed, 07 Mar 2007 18:58:53 GMT
Author: jgenender
Date: Wed Mar  7 10:58:52 2007
New Revision: 515697

URL: http://svn.apache.org/viewvc?view=rev&rev=515697
Log:
Add eclipse IDE profile

Modified:
    geronimo/server/trunk/pom.xml

Modified: geronimo/server/trunk/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/pom.xml?view=diff&rev=515697&r1=515696&r2=515697
==============================================================================
--- geronimo/server/trunk/pom.xml (original)
+++ geronimo/server/trunk/pom.xml Wed Mar  7 10:58:52 2007
@@ -1879,6 +1879,55 @@
                 <module>applications</module>
             </modules>
         </profile>
+
+        <profile>
+            <id>makeeclipse</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-eclipse-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>eclipse</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.geronimo.genesis.plugins</groupId>
+                        <artifactId>script-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>groovy</goal>
+                                </goals>
+                                <configuration>
+                                    <source>
+                                        <body>
+                                            def file = new File(project.basedir, '.classpath')
+                                            def dir = new File(project.basedir, 'target/generated-sources/xmlbeans')
+                                            def targetPath = 'target/clover/classes'
+                                            if (file.exists() &amp;&amp; dir.exists())
{
+                                                def classpath = new XmlParser().parse(file)
+                                                if (!classpath.classpathentry.findAll { it.'@path'
== targetPath }) {
+                                                    println "Updating Eclipse .classpath
for XMLBeans muck..."
+                                                    def node = new Node(classpath, "classpathentry",
[ kind: 'lib', path: targetPath ])
+                                                    new XmlNodePrinter(file.newPrintWriter()).print(classpath)
+                                                }
+                                            }
+                                        </body>
+                                    </source>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
 </project>



Mime
View raw message