make autoreloading transpartent (so that we don't forget to set it and later think it's not working... like I just did ;-)
git-svn-id: http://google-refine.googlecode.com/svn/trunk@379 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
d312a75b2f
commit
7cf4f2e5e4
16
build.xml
16
build.xml
@ -45,11 +45,6 @@
|
|||||||
</fileset>
|
</fileset>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<path id="webapp.class.path">
|
|
||||||
<pathelement path="${server_classes.dir}"/>
|
|
||||||
<path refid="class.path"/>
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<path id="tests.class.path">
|
<path id="tests.class.path">
|
||||||
<path refid="class.path"/>
|
<path refid="class.path"/>
|
||||||
<fileset dir="${tests.dir}/lib">
|
<fileset dir="${tests.dir}/lib">
|
||||||
@ -57,6 +52,7 @@
|
|||||||
</fileset>
|
</fileset>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
|
<!-- NOTE(SM): this is needed to support autoreloading, don't remove! -->
|
||||||
<target name="build_server">
|
<target name="build_server">
|
||||||
<mkdir dir="${server_classes.dir}" />
|
<mkdir dir="${server_classes.dir}" />
|
||||||
<javac srcdir="${server.src.dir}" destdir="${server_classes.dir}" debug="true" includeAntRuntime="no">
|
<javac srcdir="${server.src.dir}" destdir="${server_classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
@ -66,8 +62,10 @@
|
|||||||
|
|
||||||
<target name="build" depends="build_server">
|
<target name="build" depends="build_server">
|
||||||
<mkdir dir="${webapp_classes.dir}" />
|
<mkdir dir="${webapp_classes.dir}" />
|
||||||
<javac srcdir="${src.dir}" destdir="${webapp_classes.dir}" debug="true" includeAntRuntime="no">
|
<javac destdir="${webapp_classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
<classpath refid="webapp.class.path" />
|
<src path="${server.src.dir}"/>
|
||||||
|
<src path="${src.dir}"/>
|
||||||
|
<classpath refid="class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
@ -80,7 +78,6 @@
|
|||||||
|
|
||||||
<target name="jar" depends="build">
|
<target name="jar" depends="build">
|
||||||
<jar destfile="${build.dir}/gridworks.jar" basedir="${webapp_classes.dir}"/>
|
<jar destfile="${build.dir}/gridworks.jar" basedir="${webapp_classes.dir}"/>
|
||||||
<jar destfile="${build.dir}/gridworks-server.jar" basedir="${server_classes.dir}"/>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="prepare_webapp">
|
<target name="prepare_webapp">
|
||||||
@ -130,7 +127,6 @@
|
|||||||
<include name="**/*.jar" />
|
<include name="**/*.jar" />
|
||||||
</jarfileset>
|
</jarfileset>
|
||||||
<jarfilelist dir="${build.dir}" files="gridworks.jar" />
|
<jarfilelist dir="${build.dir}" files="gridworks.jar" />
|
||||||
<jarfilelist dir="${build.dir}" files="gridworks-server.jar" />
|
|
||||||
<resourcefileset dir="${webapp.dir}/..">
|
<resourcefileset dir="${webapp.dir}/..">
|
||||||
<include name="${webapp.name}/**" />
|
<include name="${webapp.name}/**" />
|
||||||
</resourcefileset>
|
</resourcefileset>
|
||||||
@ -182,7 +178,6 @@
|
|||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
<copy file="${build.dir}/gridworks.jar" tofile="${windows.dir}/lib/gridworks-${version}-${revision}.jar"/>
|
<copy file="${build.dir}/gridworks.jar" tofile="${windows.dir}/lib/gridworks-${version}-${revision}.jar"/>
|
||||||
<copy file="${build.dir}/gridworks-server.jar" tofile="${windows.dir}/lib/gridworks-server-${version}-${revision}.jar"/>
|
|
||||||
<copy todir="${windows.dir}/webapp">
|
<copy todir="${windows.dir}/webapp">
|
||||||
<fileset dir="${webapp.dir}">
|
<fileset dir="${webapp.dir}">
|
||||||
<include name="**"/>
|
<include name="**"/>
|
||||||
@ -213,7 +208,6 @@
|
|||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<copy file="${build.dir}/gridworks.jar" tofile="${linux.dir}/lib/gridworks-${version}-${revision}.jar"/>
|
<copy file="${build.dir}/gridworks.jar" tofile="${linux.dir}/lib/gridworks-${version}-${revision}.jar"/>
|
||||||
<copy file="${build.dir}/gridworks-server.jar" tofile="${linux.dir}/lib/gridworks-server-${version}-${revision}.jar"/>
|
|
||||||
|
|
||||||
<copy todir="${linux.dir}/src/main/webapp">
|
<copy todir="${linux.dir}/src/main/webapp">
|
||||||
<fileset dir="${webapp.dir}">
|
<fileset dir="${webapp.dir}">
|
||||||
|
14
gridworks
14
gridworks
@ -41,9 +41,6 @@ where [options] include:
|
|||||||
-m <memory> max memory heap size to use
|
-m <memory> max memory heap size to use
|
||||||
default: 1024M
|
default: 1024M
|
||||||
|
|
||||||
-a autoreload if class files change
|
|
||||||
default: false
|
|
||||||
|
|
||||||
--debug enable JVM debugging (on port 8000)
|
--debug enable JVM debugging (on port 8000)
|
||||||
|
|
||||||
--jmx enable JMX monitoring (for jconsole and jvisualvm)
|
--jmx enable JMX monitoring (for jconsole and jvisualvm)
|
||||||
@ -268,17 +265,21 @@ run() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d $GRIDWORKS_BUILD_DIR/classes ] ; then
|
||||||
|
add_option "-Dgridworks.autoreloading=true"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$SYSTEM" == 'Darwin' ] ; then
|
if [ "$SYSTEM" == 'Darwin' ] ; then
|
||||||
OPTS="-Xdock:name=Gridworks -Xdock:icon=src/graphics/icon/gridworks.icns $OPTS"
|
add_option "-Xdock:name=Gridworks -Xdock:icon=src/graphics/icon/gridworks.icns"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$GRIDWORKS_DATA_DIR" != "" ] ; then
|
if [ "$GRIDWORKS_DATA_DIR" != "" ] ; then
|
||||||
OPTS="-Dgridworks.data_dir=$GRIDWORKS_DATA_DIR $OPTS"
|
add_option "-Dgridworks.data_dir=$GRIDWORKS_DATA_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
get_revision
|
get_revision
|
||||||
|
|
||||||
OPTS="-Dgridworks.version=$REVISION $OPTS"
|
add_option "-Dgridworks.version=$REVISION"
|
||||||
|
|
||||||
CLASSPATH="$GRIDWORKS_BUILD_DIR/classes:$GRIDWORKS_LIB_DIR/*"
|
CLASSPATH="$GRIDWORKS_BUILD_DIR/classes:$GRIDWORKS_LIB_DIR/*"
|
||||||
|
|
||||||
@ -358,7 +359,6 @@ while [ $# -ne 0 ] ; do
|
|||||||
-w) shift; GRIDWORKS_WEBAPP="$1"; shift; continue;;
|
-w) shift; GRIDWORKS_WEBAPP="$1"; shift; continue;;
|
||||||
-d) shift; GRIDWORKS_DATA_DIR="$1"; shift; continue;;
|
-d) shift; GRIDWORKS_DATA_DIR="$1"; shift; continue;;
|
||||||
-m) shift; GRIDWORKS_MEMORY="$1"; shift; continue;;
|
-m) shift; GRIDWORKS_MEMORY="$1"; shift; continue;;
|
||||||
-a) shift; add_option '-Dgridworks.autoreloading=true'; continue;;
|
|
||||||
--debug) shift; add_option '-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'; continue;;
|
--debug) shift; add_option '-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'; continue;;
|
||||||
--jmx) shift; add_option '-Dcom.sun.management.jmxremote'; continue;;
|
--jmx) shift; add_option '-Dcom.sun.management.jmxremote'; continue;;
|
||||||
-*) fail "Invalid option: $1";;
|
-*) fail "Invalid option: $1";;
|
||||||
|
Loading…
Reference in New Issue
Block a user