]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
build.properties and build-local.properties allow local override of build settings
authorBertrand Delacretaz <bdelacretaz@apache.org>
Thu, 31 Oct 2002 17:16:18 +0000 (17:16 +0000)
committerBertrand Delacretaz <bdelacretaz@apache.org>
Thu, 31 Oct 2002 17:16:18 +0000 (17:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195395 13f79535-47bb-0310-9956-ffa450edef68

.cvsignore
build.properties [new file with mode: 0644]
build.xml

index a669edaa230a83190fc52830e43bfd92bf88c342..842e6878fd8d5ab89c855a243357d8d39463431f 100644 (file)
@@ -1,2 +1,3 @@
 build
 jpfop-0.17.0
+build-local.properties
diff --git a/build.properties b/build.properties
new file mode 100644 (file)
index 0000000..c89572b
--- /dev/null
@@ -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
index 42fd3aeb53526db661e5179e20603b7feca8d3a1..34e31d06de036d63c0dedc1e4d84fbe76f8e9a1b 100644 (file)
--- 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"/>