]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Merged all the eventResourceGenerator tasks into one
authorVincent Hennebert <vhennebert@apache.org>
Fri, 9 Apr 2010 17:13:24 +0000 (17:13 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Fri, 9 Apr 2010 17:13:24 +0000 (17:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@932515 13f79535-47bb-0310-9956-ffa450edef68

build.xml
src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java

index 026a68b8232c21002e0c9f4c078baed141907c9a..bddc61d4dc2bcf897fdd18659f1206f66ae8ce1e 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -360,117 +360,11 @@ list of possible build targets.
         <pathelement location="${build.codegen-classes.dir}"/>
       </classpath>
     </taskdef>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/area/AreaEventProducer.xml">
+    <eventResourceGenerator destdir="${build.gensrc.dir}">
       <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/area/AreaEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/ResourceEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/ResourceEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator 
-      destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/fo/flow/table/TableEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/fo/flow/table/TableEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/fo/FOValidationEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/fo/FOValidationEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/layoutmgr/BlockLevelEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/layoutmgr/BlockLevelEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator 
-      destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/layoutmgr/inline/InlineLevelEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/layoutmgr/inline/InlineLevelEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/render/RendererEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/render/RendererEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/svg/SVGEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/svg/SVGEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/fonts/FontEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/fonts/FontEventProducer.java"/>
-      </fileset>
-    </eventResourceGenerator>
-
-    <eventResourceGenerator 
-      destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/accessibility/AccessibilityEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/accessibility/**/*.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <fixcrlf file="${src.java.dir}/org/apache/fop/afp/AFPEventProducer.xml" tab="remove" tablength="2"/>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/afp/AFPEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/afp/**/*.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <fixcrlf file="${src.java.dir}/org/apache/fop/afp/AFPEventProducer.xml" tab="remove" tablength="2"/>
-    <eventResourceGenerator 
-      destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/render/bitmap/BitmapRendererEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/render/bitmap/**/*.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <fixcrlf file="${src.java.dir}/org/apache/fop/render/bitmap/BitmapRendererEventProducer.xml" tab="remove" tablength="2"/>
-    <eventResourceGenerator 
-      destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/render/pcl/PCLEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/render/pcl/**/*.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <fixcrlf file="${src.java.dir}/org/apache/fop/render/pcl/PCLEventProducer.xml" tab="remove" tablength="2"/>
-    <eventResourceGenerator 
-      destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/render/pdf/PDFEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/render/pdf/**/*.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <fixcrlf file="${src.java.dir}/org/apache/fop/render/pdf/PDFEventProducer.xml" tab="remove" tablength="2"/>
-    <eventResourceGenerator destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/render/ps/PSEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/render/ps/**/*.java"/>
-      </fileset>
-    </eventResourceGenerator>
-    <fixcrlf file="${src.java.dir}/org/apache/fop/render/ps/PSEventProducer.xml" tab="remove" tablength="2"/>
-    <eventResourceGenerator 
-      destdir="${build.gensrc.dir}" 
-      translationfile="${src.java.dir}/org/apache/fop/render/rtf/RTFEventProducer.xml">
-      <fileset dir="${src.java.dir}">
-        <include name="org/apache/fop/render/rtf/**/*.java"/>
+        <include name="**/*.java"/>
       </fileset>
     </eventResourceGenerator>
-    <fixcrlf file="${src.java.dir}/org/apache/fop/render/rtf/RTFEventProducer.xml" tab="remove" tablength="2"/>
   </target>
   <target name="compile-copy-resources" depends="resourcegen">
     <copy todir="${build.classes.dir}">
index a79dfc975a94da45a42544f6f8a8aa2fa899b410..c2262b7b70d6bc2d35382187db12d3ae94f3718e 100644 (file)
@@ -80,6 +80,7 @@ public class EventProducerCollectorTask extends Task {
                     log("Event model written to " + modelFile);
                 }
                 if (getTranslationFile() != null) {
+                    // TODO Remove translation file creation facility?
                     if (!getTranslationFile().exists()
                             || lastModified > getTranslationFile().lastModified()) {
                         updateTranslationFile(modelFile);