[jboss-svn-commits] JBL Code SVN: r10745 - in labs/jbossrules/trunk: drools-eclipse and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Apr 3 22:41:59 EDT 2007
Author: tirelli
Date: 2007-04-03 22:41:59 -0400 (Tue, 03 Apr 2007)
New Revision: 10745
Modified:
labs/jbossrules/trunk/drools-eclipse/pom.xml
labs/jbossrules/trunk/pom.xml
Log:
JBRULES-761: Integrating plugin build into the main build
Modified: labs/jbossrules/trunk/drools-eclipse/pom.xml
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/pom.xml 2007-04-04 02:21:15 UTC (rev 10744)
+++ labs/jbossrules/trunk/drools-eclipse/pom.xml 2007-04-04 02:41:59 UTC (rev 10745)
@@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>drools-eclipse</artifactId>
- <packaging>jar</packaging>
+ <packaging>pom</packaging>
<name>Drools :: Eclipse-Plugin</name>
<build>
@@ -33,6 +33,35 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>build-plugin</id>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <fail message="To build the plugin you are required to set the 'eclipse.home' property."
+ if="${eclipse.home}" />
+ <dirname property="eclipse.home.parent" file="${eclipse.home}"/>
+ <echo message="eclipse.home = ${eclipse.home}"/>
+ <echo message="eclipse.home.parent = ${eclipse.home.parent}"/>
+ <java jar="${eclipse.home}/startup.jar"
+ fork="true"
+ failonerror="true"
+ maxmemory="128m"
+ >
+ <arg line="-application org.eclipse.ant.core.antRunner -Dbase=${eclipse.home.parent}"/>
+ </java>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
Modified: labs/jbossrules/trunk/pom.xml
===================================================================
--- labs/jbossrules/trunk/pom.xml 2007-04-04 02:21:15 UTC (rev 10744)
+++ labs/jbossrules/trunk/pom.xml 2007-04-04 02:41:59 UTC (rev 10745)
@@ -244,6 +244,15 @@
<module>documentation</module>
</modules>
</profile>
+ <profile>
+ <id>build-eclipse</id>
+ <activation>
+ <property><name>eclipse.home</name></property>
+ </activation>
+ <modules>
+ <module>drools-eclipse</module>
+ </modules>
+ </profile>
</profiles>
@@ -491,7 +500,6 @@
<module>drools-compiler</module>
<module>drools-jsr94</module>
<module>drools-decisiontables</module>
- <module>drools-eclipse</module>
<!-- TODO enable these or create a profile in which they are enabled (to avoid making the build slow) -->
<!--module>drools-server</module-->
<module>drools-repository</module>
More information about the jboss-svn-commits
mailing list