[jboss-svn-commits] JBL Code SVN: r33379 - labs/jbossrules/trunk/install.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jun 7 13:07:55 EDT 2010
Author: KrisVerlaenen
Date: 2010-06-07 13:07:54 -0400 (Mon, 07 Jun 2010)
New Revision: 33379
Added:
labs/jbossrules/trunk/install/eclipse.preferences.ini
Modified:
labs/jbossrules/trunk/install/build.xml
labs/jbossrules/trunk/install/install.html
Log:
- updated installation script
Modified: labs/jbossrules/trunk/install/build.xml
===================================================================
--- labs/jbossrules/trunk/install/build.xml 2010-06-07 16:26:23 UTC (rev 33378)
+++ labs/jbossrules/trunk/install/build.xml 2010-06-07 17:07:54 UTC (rev 33379)
@@ -151,13 +151,13 @@
<available file="${install.home}/lib/drools-${drools.version}-guvnor.zip" />
</not>
</condition>
- </target>
+ </target>
<target name="download.drools.guvnor" depends="download.drools.guvnor.check" if="drools.guvnor.not.available">
<echo message="Getting Drools Guvnor ..." />
<mkdir dir="${install.home}/lib"/>
<get src="${drools.url}/drools-${drools.version}-guvnor.zip" dest="${install.home}/lib/drools-${drools.version}-guvnor.zip" />
</target>
-
+
<!-- Download Drools Eclipse plugins -->
<target name="download.drools.eclipse.check">
<echo message="Checking Drools Eclipse download ..." />
@@ -210,7 +210,7 @@
<!-- Install gwt-console -->
<target name="install.drools-gwt-console.into.jboss" depends="download.h2,download.birt,download.drools.gwt-console">
<!-- gwt-console -->
- <mkdir dir="${install.home}/target"/>
+ <mkdir dir="${install.home}/target"/>
<unzip src="${install.home}/lib/drools-${drools.version}-gwt-console.zip" dest="${install.home}/target" />
<mkdir dir="${install.home}/target/drools-gwt-server-war"/>
<unzip src="${install.home}/target/gwt-console-server-drools-${drools.version}.war"
@@ -327,13 +327,17 @@
<!-- Start JBoss AS -->
<target name="start.jboss">
<property name="jboss.full.path.win" location="${jboss.home}/bin/run.bat" />
+ <property environment="env" />
+ <echo message="${env.JAVA_HOME}" />
<exec executable="${jboss.full.path.win}" spawn="yes"
os="Windows 7,Windows Vista,Windows XP,Windows 2000">
+ <env key="JAVA_OPTS" value="-XX:MaxPermSize=256m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
</exec>
<property name="jboss.full.path.linux" location="${jboss.home}/bin/run.sh" />
<exec executable="${jboss.full.path.linux}" spawn="yes" os="Linux,Mac OS X">
+ <env key="JAVA_OPTS" value="-XX:MaxPermSize=256m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
</exec>
@@ -356,8 +360,8 @@
<arg value="jnp://${jboss.bind.address}:1099" />
<arg value="-S" />
</exec>
- </target>
-
+ </target>
+
<!-- Start Eclipse -->
<target name="start.eclipse">
<exec executable="${eclipse.home}/eclipse.exe"
@@ -365,35 +369,41 @@
os="Windows 7,Windows Vista,Windows XP,Windows 2000">
<arg value="-data" />
<arg value="${eclipse.workspace.dir}" />
+ <arg value="-plugincustomization" />
+ <arg value="./eclipse.preferences.ini" />
</exec>
<exec executable="${eclipse.home}/eclipse" spawn="yes" os="Linux">
<arg value="-data" />
<arg value="${eclipse.workspace.dir}" />
+ <arg value="-plugincustomization" />
+ <arg value="./eclipse.preferences.ini" />
</exec>
<exec executable="${eclipse.home}/Eclipse.app/Contents/MacOS/eclipse" spawn="yes" os="Mac OS X">
<arg value="-data" />
<arg value="${eclipse.workspace.dir}" />
+ <arg value="-plugincustomization" />
+ <arg value="./eclipse.preferences.ini" />
</exec>
</target>
- <!-- Start Human Task Service -->
- <path id="classpath.human.task">
- <fileset dir="${install.home}/runtime" includes="**/*.jar"/>
- </path>
- <target name="start.human.task">
+ <!-- Start Human Task Service -->
+ <path id="classpath.human.task">
+ <fileset dir="${install.home}/runtime" includes="**/*.jar"/>
+ </path>
+ <target name="start.human.task">
<mkdir dir="${install.home}/task-service/target"/>
- <javac srcdir="${install.home}/task-service/src" destdir="${install.home}/task-service/target" classpathref="classpath.human.task">
- <compilerarg value="-Xlint:unchecked"/>
- </javac>
+ <javac srcdir="${install.home}/task-service/src" destdir="${install.home}/task-service/target" classpathref="classpath.human.task">
+ <compilerarg value="-Xlint:unchecked"/>
+ </javac>
<copy todir="${install.home}/task-service/target">
<fileset dir="${install.home}/task-service/resources"/>
</copy>
- <java classname="org.drools.DemoTaskService" fork="true">
- <classpath>
- <pathelement path="${install.home}/task-service/target"/>
- <path refid="classpath.human.task" />
- </classpath>
- </java>
+ <java classname="org.drools.DemoTaskService" fork="true">
+ <classpath>
+ <pathelement path="${install.home}/task-service/target"/>
+ <path refid="classpath.human.task" />
+ </classpath>
+ </java>
</target>
<!-- Start Demo -->
Added: labs/jbossrules/trunk/install/eclipse.preferences.ini
===================================================================
--- labs/jbossrules/trunk/install/eclipse.preferences.ini (rev 0)
+++ labs/jbossrules/trunk/install/eclipse.preferences.ini 2010-06-07 17:07:54 UTC (rev 33379)
@@ -0,0 +1,2 @@
+org.eclipse.ui/defaultPerspectiveId=org.drools.eclipse.DroolsPerspective
+org.drools.eclipse/Drools.Runtimes=Drools runtime#F:/drools/install/runtime#true#
\ No newline at end of file
Modified: labs/jbossrules/trunk/install/install.html
===================================================================
--- labs/jbossrules/trunk/install/install.html 2010-06-07 16:26:23 UTC (rev 33378)
+++ labs/jbossrules/trunk/install/install.html 2010-06-07 17:07:54 UTC (rev 33379)
@@ -4,23 +4,11 @@
<H1>Installation</H1>
<H2>Prerequisites</H2>
-This script assumes you have Java 1.5+, Maven 2.0.8+ and Ant 1.7+ installed.<BR/>
+This script assumes you have Java 1.5+, and Ant 1.7+ installed.<BR/>
If you don't, use the following links to download and install them:<BR/>
Java: <A href="http://java.sun.com/javase/downloads/index.jsp">http://java.sun.com/javase/downloads/index.jsp</A><BR/>
-Maven: <A href="http://maven.apache.org/download.html">http://maven.apache.org/download.html</A><BR/>
Ant: <A href="http://ant.apache.org/bindownload.cgi">http://ant.apache.org/bindownload.cgi</A><BR/>
-<H2>Getting Drools</H2>
-Download the latest Drools source code from SVN using the following URL:<BR/>
-<A href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/</A>
-<P/>
-Now run the Drools build. In the Drools root folder, run the following command:<BR/>
-<EM>mvn -Dmaven.test.skip -Declipse install</EM><BR/>
-<BR/>
-Note: If it is the first time you do this, this could take a while as it will be downloading
-eclipse as part of the installation, you can remove the -Declipse part if you're not
-interested in the Eclipse plugin.
-
<H2>Demo setup</H2>
The easiest way to get started is to simply run the installation script to install the demo setup.
Simply go into the install folder and run:<BR/>
@@ -101,7 +89,8 @@
Startup JBoss AS:<BR/>
<EM>ant start.jboss</EM>
<P>
-startup task service (run org.drools.task.service.DemoTaskService as part of the drools-process\drools-process-task project)
+Startup task service:<BR/>
+<EM>ant start.human.task</EM>
<P>
Startup eclipse:<BR/>
<EM>ant start.eclipse</EM>
More information about the jboss-svn-commits
mailing list