Remove extensions/jython/jython/, which has already been replaced by extensions/jython/module/; same for extensions/sample-extension/sample-extension/. Added build.xml for extensions/ and made the root build.xml file call all the extension build.xml files. Updated extensions' module.properties files to require the core module.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1005 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
8e2a29b9ea
commit
df6a62a2cf
@ -150,8 +150,12 @@
|
||||
</javac>
|
||||
<copy file="${server.tests.src.dir}/tests.log4j.properties" tofile="${server.tests.classes.dir}/tests.log4j.properties"/>
|
||||
</target>
|
||||
|
||||
<target name="build_extensions">
|
||||
<ant dir="extensions/" target="build" />
|
||||
</target>
|
||||
|
||||
<target name="build" depends="build_server, build_webapp"/>
|
||||
<target name="build" depends="build_server, build_webapp, build_extensions"/>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
|
||||
|
15
extensions/build.xml
Normal file
15
extensions/build.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--+
|
||||
|
|
||||
| Gridworks Extensions Build File
|
||||
|
|
||||
+-->
|
||||
|
||||
<project name="gridworks-extensions" default="build" basedir=".">
|
||||
<target name="build">
|
||||
<echo message="Building extensions" />
|
||||
<ant dir="sample-extension/" target="build" />
|
||||
<ant dir="jython/" target="build" />
|
||||
</target>
|
||||
</project>
|
@ -1,3 +1,4 @@
|
||||
name = jython
|
||||
description = Gridworks Jython Extension
|
||||
templating = false
|
||||
requires = core
|
||||
|
@ -2,5 +2,5 @@
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="output" path="sample-extension/MOD-INF/classes"/>
|
||||
<classpathentry kind="output" path="module/MOD-INF/classes"/>
|
||||
</classpath>
|
||||
|
64
extensions/sample-extension/build.xml
Normal file
64
extensions/sample-extension/build.xml
Normal file
@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--+
|
||||
|
|
||||
| Gridworks Extension Sample Extension Build File
|
||||
|
|
||||
+-->
|
||||
|
||||
<project name="gridworks-sample-extension" default="build" basedir=".">
|
||||
|
||||
<property environment="env"/>
|
||||
|
||||
<condition property="version" value="trunk">
|
||||
<not><isset property="version"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="revision" value="rXXXX">
|
||||
<not><isset property="revision"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="full_version" value="0.0.0.0">
|
||||
<not><isset property="full_version"/></not>
|
||||
</condition>
|
||||
|
||||
<condition property="dist.dir" value="dist">
|
||||
<not><isset property="dist.dir"/></not>
|
||||
</condition>
|
||||
|
||||
<property name="fullname" value="${name}-${version}-${revision}" />
|
||||
|
||||
<property name="gridworks.dir" value="${basedir}/../../main" />
|
||||
<property name="gridworks.modinf.dir" value="${gridworks.dir}/webapp/modules/core/MOD-INF" />
|
||||
<property name="gridworks.classes.dir" value="${gridworks.modinf.dir}/classes" />
|
||||
<property name="gridworks.lib.dir" value="${gridworks.dir}/lib" />
|
||||
|
||||
<property name="src.dir" value="${basedir}/src" />
|
||||
<property name="module.dir" value="${basedir}/module" />
|
||||
<property name="modinf.dir" value="${module.dir}/MOD-INF" />
|
||||
<property name="lib.dir" value="${modinf.dir}/lib" />
|
||||
<property name="classes.dir" value="${modinf.dir}/classes" />
|
||||
|
||||
<path id="class.path">
|
||||
<fileset dir="${lib.dir}">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
<fileset dir="${gridworks.lib.dir}">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="build_java">
|
||||
<mkdir dir="${classes.dir}" />
|
||||
<javac destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
||||
<src path="${src.dir}"/>
|
||||
<classpath refid="class.path" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="build" depends="build_java"/>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="${classes.dir}" />
|
||||
</target>
|
||||
</project>
|
@ -1,3 +1,4 @@
|
||||
name = sample-extension
|
||||
description = Gridworks Sample Extension
|
||||
templating.macros = macros.vm
|
||||
requires = core
|
||||
|
@ -1,4 +1,4 @@
|
||||
description = Gridworks Core Module
|
||||
|
||||
implements = core
|
||||
templating.macros = macros.vm
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user