Revision: 5845
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=5845&view=rev
Author: manningr
Date: 2010-08-22 20:53:07 +0000 (Sun, 22 Aug 2010)
Log Message:
-----------
Added a profile for plugins that will allow any plugin that inherits this pom (all currently) to launch SQuirreL with the plugin loaded. All that is necessary is that there is a property defined called "pluginClassName" that has for its value the IPlugin class implementation. To run from the command-line, do "mvn test -Plaunch" and SQuirreL will be launched with the plugin loaded.
Modified Paths:
--------------
trunk/sql12/plugins/squirrelsql-plugins-parent-pom/pom.xml
Modified: trunk/sql12/plugins/squirrelsql-plugins-parent-pom/pom.xml
===================================================================
--- trunk/sql12/plugins/squirrelsql-plugins-parent-pom/pom.xml 2010-08-22 19:46:25 UTC (rev 5844)
+++ trunk/sql12/plugins/squirrelsql-plugins-parent-pom/pom.xml 2010-08-22 20:53:07 UTC (rev 5845)
@@ -292,4 +292,38 @@
</plugin>
</plugins>
</reporting>
+ <profiles>
+ <profile>
+ <id>launch</id>
+ <activation>
+ <property>
+ <name>launch</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <phase>test</phase>
+ <configuration>
+ <mainClass>net.sourceforge.squirrel_sql.client.Main</mainClass>
+ <arguments>
+ <argument>-pluginlist</argument>
+ <argument>${pluginClassName}</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|