Moved examples and updated build to produce an examples jar file.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352120 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2002-02-27 11:07:27 +00:00
parent 04f68b8554
commit 5a25601b34
8 changed files with 46 additions and 0 deletions

View File

@ -21,6 +21,12 @@
<fileset dir="${scratchpad.src}"/>
</copy>
<mkdir dir="${build.examples.src}"/>
<mkdir dir="${build.examples.dest}"/>
<copy todir="${build.examples.src}" filtering="on">
<fileset dir="${examples.src}"/>
</copy>
<mkdir dir="${build.contrib.src}"/>
<mkdir dir="${build.contrib.dest}"/>
<copy todir="${build.contrib.src}" filtering="on">
@ -80,6 +86,27 @@
<classpath refid="scratchpad.classpath"/>
</javac>
<copy todir="${build.examples.dest}">
<fileset dir="${build.examples.src}">
<include name="**"/>
<!--
<include name="**/Manifest.mf"/>
<include name="**/*.xsl"/>
<include name="**/*.roles"/>
<include name="**/*.xconf"/>
<include name="META-INF/**"/>
-->
</fileset>
</copy>
<javac srcdir="${build.examples.src}"
destdir="${build.examples.dest}"
debug="${debug}"
optimize="${optimize}"
deprecation="${deprecation}"
target="${target.vm}">
<classpath refid="examples.classpath"/>
</javac>
<copy todir="${build.contrib.dest}">
<fileset dir="${build.contrib.src}">
@ -123,6 +150,12 @@
</fileset>
</jar>
<jar jarfile="${build.dir}/${examples.name}.jar">
<fileset dir="${build.examples.dest}">
<include name="**"/>
</fileset>
</jar>
<jar jarfile="${build.dir}/${contrib.name}.jar">
<fileset dir="${build.contrib.dest}">
<include name="**"/>

View File

@ -40,6 +40,11 @@
<property name="scratchpad.lib" value="${scratchpad.dir}/lib"/>
<property name="scratchpad.name" value="${name}-scratchpad"/>
<property name="examples.dir" value="${src.dir}/examples"/>
<property name="examples.src" value="${examples.dir}/src"/>
<property name="examples.lib" value="${examples.dir}/lib"/>
<property name="examples.name" value="${name}-examples"/>
<property name="contrib.dir" value="${src.dir}/contrib"/>
<property name="contrib.src" value="${contrib.dir}/src"/>
<property name="contrib.lib" value="${contrib.dir}/lib"/>
@ -58,6 +63,9 @@
<property name="build.scratchpad" value="${build.dir}/scratchpad"/>
<property name="build.scratchpad.src" value="${build.scratchpad}/src"/>
<property name="build.scratchpad.dest" value="${build.scratchpad}/classes"/>
<property name="build.examples" value="${build.dir}/examples"/>
<property name="build.examples.src" value="${build.examples}/src"/>
<property name="build.examples.dest" value="${build.examples}/classes"/>
<property name="build.contrib" value="${build.dir}/contrib"/>
<property name="build.contrib.src" value="${build.contrib}/src"/>
<property name="build.contrib.dest" value="${build.contrib}/classes"/>

View File

@ -50,6 +50,11 @@
<pathelement path="./build/${name}/classes"/>
</path>
<path id="examples.classpath">
<!-- FIXME : how to build a path that references a property set in 'init' target ? -->
<pathelement path="./build/${name}/classes"/>
</path>
<path id="contrib.classpath">
<fileset dir="./lib/core">
<include name="*.jar"/>