Skip to content

Commit

Permalink
[ignore] isolated cocoon code; cocoon can be removed more easy now
Browse files Browse the repository at this point in the history
svn path=/trunk/eXist/; revision=10734
  • Loading branch information
dizzzz committed Dec 13, 2009
1 parent 32800fa commit 1c2f5b4
Show file tree
Hide file tree
Showing 49 changed files with 107 additions and 13 deletions.
1 change: 0 additions & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ tools.ant = ./tools/ant
lib.core = ./lib/core
lib.optional = ./lib/optional
lib.endorsed = ./lib/endorsed
lib.cocoon = ./lib/cocoon
lib.user = ./lib/user
lib.extensions = ./lib/extensions

Expand Down
4 changes: 1 addition & 3 deletions build/scripts/antlr3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
<fileset dir="${lib.endorsed}">
<include name="*.jar"/>
</fileset>
<fileset dir="${lib.cocoon}">
<include name="*.jar"/>
</fileset>

<fileset dir="${lib.user}">
<include name="*.jar"/>
</fileset>
Expand Down
11 changes: 7 additions & 4 deletions build/scripts/build-impl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@
<fileset dir="${lib.endorsed}">
<include name="*.jar"/>
</fileset>
<fileset dir="${lib.cocoon}">
<include name="*.jar"/>
</fileset>

<fileset dir="${lib.user}">
<include name="*.jar"/>
</fileset>
Expand Down Expand Up @@ -378,7 +376,7 @@
<!-- Build all -->
<!-- ================================================================== -->
<target name="all"
depends="jar,wrapper,extension-modules,extension-indexes,extension-versioning,extension-xqdoc,extension-fluent,extension-xprocxq,extension-debuggee,test-compile"
depends="jar,wrapper,extension-modules,extension-indexes,extension-versioning,extension-xqdoc,extension-cocoon,extension-fluent,extension-xprocxq,extension-debuggee,test-compile"
description="Build all">
<antcall target="sign"/>
</target>
Expand Down Expand Up @@ -513,6 +511,7 @@
<ant antfile="build.xml" dir="extensions/fluent" target="clean" inheritall="false"/>
<ant antfile="build.xml" dir="extensions/versioning" target="clean" inheritall="false"/>
<ant antfile="build.xml" dir="extensions/xqdoc" target="clean" inheritall="false"/>
<ant antfile="build.xml" dir="extensions/cocoon" target="clean" inheritall="false"/>
<ant antfile="xprocxq.xml" dir="extensions" target="clean" inheritall="false"/>
<ant antfile="build.xml" dir="extensions/debuggee" target="clean" inheritall="false"/>
<antcall target="extensions-xslt"/>
Expand Down Expand Up @@ -579,6 +578,10 @@
<ant antfile="build.xml" dir="extensions/xqdoc" inheritall="false"/>
</target>

<target name="extension-cocoon" depends="prepare-extensions,jar">
<ant antfile="build.xml" dir="extensions/cocoon" inheritall="false"/>
</target>

<target name="extension-fluent" depends="jar">
<ant antfile="build.xml" dir="extensions/fluent" inheritall="false"/>
</target>
Expand Down
11 changes: 6 additions & 5 deletions build/scripts/dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
<lib dir="${lib.optional}">
<include name="*.jar"/>
</lib>
<lib dir="${lib.cocoon}">
<include name="*.jar"/>
</lib>
<lib dir="${lib.user}">
<include name="*.jar"/>
</lib>
Expand All @@ -73,6 +70,10 @@
<lib dir="extensions/indexes/spatial/lib">
<include name="*.jar"/>
</lib>
<!-- Include cocoon jars -->
<lib dir="extensions/cocoon/lib">
<include name="*.jar"/>
</lib>

<!-- Add configuration files to WEB-INF -->
<webinf dir=".">
Expand Down Expand Up @@ -218,9 +219,9 @@
<copy todir="${dist.dir}/lib/optional">
<fileset dir="${lib.optional}"/>
</copy>
<copy todir="${dist.dir}/lib/cocoon">
<!--copy todir="${dist.dir}/lib/cocoon">
<fileset dir="${lib.cocoon}"/>
</copy>
</copy-->
<copy todir="${dist.dir}/lib/endorsed">
<fileset dir="${lib.endorsed}"/>
</copy>
Expand Down
3 changes: 3 additions & 0 deletions extensions/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ include.feature.debugger = false
#XQDoc extension
include.feature.xqdoc = true

#Cocoon extension
include.feature.cocoon = true

# XSL FO transformations (Uses Apache FOP)
include.module.xslfo = false

Expand Down
89 changes: 89 additions & 0 deletions extensions/cocoon/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<project basedir="." default="jar" name="cocoon">

<property name="src" value="./src"/>
<property name="cocoon.classes" value="./classes"/>
<property name="lib" value="./lib"/>


<property name="top.dir" value="../.."/>

<property name="build.compiler" value="modern"/>

<property file="${top.dir}/build.properties"/>

<property file="../local.build.properties"/>
<property file="../build.properties"/>

<condition property="include.feature.cocoon.config">
<istrue value="${include.feature.cocoon}"/>
</condition>

<path id="classpath.core">
<fileset dir="${top.dir}/${lib.core}">
<include name="*.jar"/>
</fileset>
<fileset dir="${top.dir}/${lib.optional}">
<include name="*.jar"/>
</fileset>
<fileset dir="${top.dir}/${lib.endorsed}">
<include name="*.jar"/>
</fileset>
<fileset dir="${top.dir}/${lib.user}">
<include name="*.jar"/>
</fileset>
<fileset dir="${top.dir}/tools/ant/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${top.dir}/${lib.extensions}">
<include name="*.jar"/>
</fileset>
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
<pathelement path="${top.dir}/exist.jar"/>
<pathelement path="${top.dir}/exist-optional.jar"/>
<pathelement path="${top.dir}/start.jar"/>
<pathelement path="${java.class.path}"/>
</path>


<target name="prepare">
<mkdir dir="${cocoon.classes}"/>
</target>

<target name="compile" depends="prepare" if="include.feature.cocoon.config">
<echo message="----------------------------------"/>
<echo message="Compiling cocoon extensions"/>
<echo message="----------------------------------"/>

<echo
message="Compiling with Java ${ant.java.version} from ${build.compiler.source} source to ${build.compiler.target} target, debug ${build.debug}, optimize ${build.optimize}, deprecation ${build.deprecation}"/>

<javac debug="${build.debug}" deprecation="${build.deprecation}" destdir="${cocoon.classes}" encoding="UTF-8"
optimize="${build.optimize}" srcdir="${src}" source="${build.compiler.source}"
target="${build.compiler.target}">
<classpath>
<path refid="classpath.core"/>
</classpath>
</javac>
</target>

<target name="jar" depends="compile" if="include.feature.cocoon.config">
<echo message="Creating exist-cocoon.jar ..."/>
<jar basedir="${cocoon.classes}" jarfile="${top.dir}/${lib.extensions}/exist-cocoon.jar">
<manifest>
<attribute name="Project-Name" value="${project.name}"/>
<attribute name="Project-Version" value="${project.version}"/>
<attribute name="Project-Build" value="${DSTAMP}"/>
<attribute name="SVN-Revision" value="${svn.revision}"/>
</manifest>
</jar>
</target>

<target name="clean" if="include.feature.cocoon.config">
<delete dir="${cocoon.classes}"/>
<delete file="${top.dir}/${lib.extensions}/exist-cocoon.jar" failonerror="false"/>
</target>
</project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/org/exist/start/start.config
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ extensions/indexes/spatial/lib/* always
extensions/indexes/lucene/lib/* always
extensions/xprocxq/main/lib/* always
extensions/xqdoc/lib/* always
extensions/cocoon/lib/* always
lib/cocoon/* mode == other
lib/cocoon/* mode == jetty
lib/cocoon/* mode == cluster
Expand Down

0 comments on commit 1c2f5b4

Please sign in to comment.