aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Delacretaz <bdelacretaz@apache.org>2002-10-31 17:16:18 +0000
committerBertrand Delacretaz <bdelacretaz@apache.org>2002-10-31 17:16:18 +0000
commit2ba5ad6985ece5e49fde3332d383c5c6e2bf8248 (patch)
tree83f5bac25c62a290f5ee1169a6cfb0fc5da15078
parent1e2a567b1a53e251eabfd2d8957681fa7ee91625 (diff)
downloadxmlgraphics-fop-2ba5ad6985ece5e49fde3332d383c5c6e2bf8248.tar.gz
xmlgraphics-fop-2ba5ad6985ece5e49fde3332d383c5c6e2bf8248.zip
build.properties and build-local.properties allow local override of build settings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195395 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--.cvsignore1
-rw-r--r--build.properties5
-rw-r--r--build.xml8
3 files changed, 13 insertions, 1 deletions
diff --git a/.cvsignore b/.cvsignore
index a669edaa2..842e6878f 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,3 @@
build
jpfop-0.17.0
+build-local.properties
diff --git a/build.properties b/build.properties
new file mode 100644
index 000000000..c89572bc0
--- /dev/null
+++ b/build.properties
@@ -0,0 +1,5 @@
+# these settings can be overridden locally in build-local.properties,
+# which is not stored in CVS (due to .cvsignore)
+
+# output format for "ant examples"
+build.property.examples.mime.type = application/pdf \ No newline at end of file
diff --git a/build.xml b/build.xml
index 42fd3aeb5..34e31d06d 100644
--- a/build.xml
+++ b/build.xml
@@ -36,6 +36,11 @@ list of possible build targets.
============================================================================ -->
<project default="package" basedir=".">
+ <!-- used to set values for testing etc. -->
+ <!-- build-local.properties is not stored in CVS and overrides values from build.properties -->
+ <property file="build-local.properties"/>
+ <property file="build.properties"/>
+
<fileset dir="${basedir}" id="dist.bin">
<include name="conf/**"/>
<include name="docs/**"/>
@@ -130,6 +135,7 @@ list of possible build targets.
<property name="year" value="1999-2002"/>
<echo message="------------------- ${Name} ${version} [${year}] ----------------"/>
+ <echo message="See build.properties and build-local.properties for additional build settings"/>
<property name="build.compiler" value="classic"/>
<property name="debug" value="on"/>
@@ -668,7 +674,7 @@ list of possible build targets.
<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"
classpathref="libs-run-classpath"/>
<mkdir dir="${build.examples.dir}"/>
- <fop format="application/pdf" outdir="${build.examples.dir}"
+ <fop format="${build.property.examples.mime.type}" outdir="${build.examples.dir}"
messagelevel="debug" basedir="${fo.examples.dir}">
<fileset dir="${fo.examples.dir}">
<include name="**/*.fo"/>