Changeset 30384
- Timestamp:
- 02/21/08 01:07:42 (9 months ago)
- Files:
-
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/pom.xml (modified) (7 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/java/org/nuxeo/ecm/platform/transform/plugin/jr (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/java/org/nuxeo/ecm/platform/transform/plugin/jr/AbstractJRBasedTextExtractorPlugin.java (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/java/org/nuxeo/ecm/platform/transform/plugin/jr/ExcelToTextPlugin.java (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/java/org/nuxeo/ecm/platform/transform/plugin/jr/HtmlToTextPlugin.java (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/java/org/nuxeo/ecm/platform/transform/plugin/jr/OOoSimpleTextExtractor.java (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/java/org/nuxeo/ecm/platform/transform/plugin/jr/XMLToTextPlugin.java (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/resources/OSGI-INF/nxtransform-plugins-contrib.xml (modified) (8 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/java/org/nuxeo/ecm/platform/transform/jr (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/java/org/nuxeo/ecm/platform/transform/jr/TestJRTextPlugin.java (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/resources/nxtransform-plugins-bundle.xml (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/resources/test-data/hello.xml (added)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/resources/test-data/hello2.html (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/pom.xml
r29737 r30384 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 1 <project xmlns="http://maven.apache.org/POM/4.0.0" 2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 2 4 <modelVersion>4.0.0</modelVersion> 3 5 … … 13 15 </name> 14 16 <description> 15 Nuxeo Enterprise Platform: some default transformers for the Content 16 Transformation Service. This package provides: any-to-pdf using 17 OpenOffice.org as rendering engine, pdf-to-jpeg, pdf-to-text, 18 pdf-to-png, WordML metadata injection (inject document metadata into 19 a WordML file), any-to-odt / any-to-ods / any-to-odp (transform any 20 file format supported by OpenOffice.org into ODF). 17 Nuxeo Enterprise Platform: some default transformers for the 18 Content Transformation Service. This package provides: 19 any-to-pdf using OpenOffice.org as rendering engine, 20 pdf-to-jpeg, pdf-to-text, pdf-to-png, WordML metadata injection 21 (inject document metadata into a WordML file), any-to-odt / 22 any-to-ods / any-to-odp (transform any file format supported by 23 OpenOffice.org into ODF). 21 24 </description> 22 25 … … 67 70 </dependency> 68 71 <dependency> 69 <groupId> poi</groupId>72 <groupId>org.apache.poi</groupId> 70 73 <artifactId>poi</artifactId> 71 <version>3.0-alpha3</version> 72 </dependency> 73 74 <version>3.0.2-FINAL</version> 75 </dependency> 76 <dependency> 77 <groupId>org.apache.poi</groupId> 78 <artifactId>poi-scratchpad</artifactId> 79 <version>3.0.2-FINAL</version> 80 </dependency> 81 <dependency> 82 <groupId>org.apache.jackrabbit</groupId> 83 <artifactId>jackrabbit-text-extractors</artifactId> 84 <version>1.3.3</version> 85 </dependency> 74 86 <dependency> 75 87 <groupId>org.nuxeo.runtime</groupId> … … 102 114 <exclude>**/TestAny*.class</exclude> 103 115 <exclude>**/TestJOO*.class</exclude> 104 <exclude>**/MultipleResultsEchoPlugin*.class</exclude> 116 <exclude> 117 **/MultipleResultsEchoPlugin*.class 118 </exclude> 105 119 <exclude>**/AbstractXSLT*.class</exclude> 106 120 </excludes> … … 122 136 <artifactItem> 123 137 <groupId>commons-logging</groupId> 124 <artifactId>commons-logging-api</artifactId> 138 <artifactId> 139 commons-logging-api 140 </artifactId> 125 141 </artifactItem> 126 142 <artifactItem> … … 130 146 <artifactItem> 131 147 <groupId>com.artofsolving</groupId> 132 <artifactId>jodconverter</artifactId> 148 <artifactId> 149 jodconverter 150 </artifactId> 133 151 </artifactItem> 134 152 <artifactItem> … … 158 176 </artifactItem> 159 177 <artifactItem> 160 <groupId>com.thoughtworks.xstream</groupId> 178 <groupId> 179 com.thoughtworks.xstream 180 </groupId> 161 181 <artifactId>xstream</artifactId> 162 182 </artifactItem> 163 183 <artifactItem> 164 <groupId> poi</groupId>184 <groupId>org.apache.poi</groupId> 165 185 <artifactId>poi</artifactId> 166 186 </artifactItem> 187 <artifactItem> 188 <groupId> 189 org.apache.jackrabbit 190 </groupId> 191 <artifactId> 192 jackrabbit-text-extractors 193 </artifactId> 194 </artifactItem> 195 167 196 </artifactItems> 168 197 <outputDirectory> org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/main/resources/OSGI-INF/nxtransform-plugins-contrib.xml
r29938 r30384 5 5 Default transformation plugins and transform chains. 6 6 7 @version 1.0 8 @author<a href="mailto:ja@nuxeo.com">Julien Anguenot</a>7 @version 1.0 @author 8 <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 9 9 </documentation> 10 10 … … 30 30 <!-- Microsoft office documents --> 31 31 <sourceMimeType>application/msword</sourceMimeType> 32 <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType> 32 <sourceMimeType> 33 application/vnd.ms-powerpoint 34 </sourceMimeType> 33 35 <sourceMimeType>application/vnd.ms-excel</sourceMimeType> 34 36 35 37 <!-- OpenOffice.org 1.x documents --> 36 <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType> 38 <sourceMimeType> 39 application/vnd.sun.xml.writer 40 </sourceMimeType> 37 41 <sourceMimeType> 38 42 application/vnd.sun.xml.writer.template 39 43 </sourceMimeType> 40 <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType> 44 <sourceMimeType> 45 application/vnd.sun.xml.impress 46 </sourceMimeType> 41 47 <sourceMimeType> 42 48 application/vnd.sun.xml.impress.template 43 49 </sourceMimeType> 44 <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType> 50 <sourceMimeType> 51 application/vnd.sun.xml.calc 52 </sourceMimeType> 45 53 <sourceMimeType> 46 54 application/vnd.sun.xml.calc.template 47 55 </sourceMimeType> 48 <sourceMimeType>application/vnd.sun.xml.draw</sourceMimeType> 56 <sourceMimeType> 57 application/vnd.sun.xml.draw 58 </sourceMimeType> 49 59 <sourceMimeType> 50 60 application/vnd.sun.xml.draw.template … … 135 145 136 146 <!-- OpenOffice.org 1.x documents --> 137 <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType> 147 <sourceMimeType> 148 application/vnd.sun.xml.writer 149 </sourceMimeType> 138 150 <sourceMimeType> 139 151 application/vnd.sun.xml.writer.template … … 165 177 <sourceMimeType>application/vnd.ms-excel</sourceMimeType> 166 178 <!-- OpenOffice.org 1.x documents --> 167 <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType> 179 <sourceMimeType> 180 application/vnd.sun.xml.calc 181 </sourceMimeType> 168 182 <sourceMimeType> 169 183 application/vnd.sun.xml.calc.template … … 192 206 193 207 <!-- Microsoft office documents --> 194 <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType> 208 <sourceMimeType> 209 application/vnd.ms-powerpoint 210 </sourceMimeType> 195 211 <!-- OpenOffice.org 1.x documents --> 196 <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType> 212 <sourceMimeType> 213 application/vnd.sun.xml.impress 214 </sourceMimeType> 197 215 <sourceMimeType> 198 216 application/vnd.sun.xml.impress.template … … 217 235 <plugin name="word2text_poi" 218 236 class="org.nuxeo.ecm.platform.transform.plugin.poi.WordToTextPlugin" 219 destinationMimeType=" plain/text">237 destinationMimeType="text/plain"> 220 238 <sourceMimeType>application/msword</sourceMimeType> 221 239 </plugin> … … 223 241 <plugin name="ppt2text_poi" 224 242 class="org.nuxeo.ecm.platform.transform.plugin.poi.PowerpointToTextPlugin" 225 destinationMimeType="plain/text"> 226 <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType> 227 </plugin> 243 destinationMimeType="text/plain"> 244 <sourceMimeType> 245 application/vnd.ms-powerpoint 246 </sourceMimeType> 247 </plugin> 248 249 <plugin name="xl2text_jr" 250 class="org.nuxeo.ecm.platform.transform.plugin.jr.ExcelToTextPlugin" 251 destinationMimeType="text/plain"> 252 <sourceMimeType> 253 application/vnd.ms-excel 254 </sourceMimeType> 255 </plugin> 256 257 <plugin name="xml2text_jr" 258 class="org.nuxeo.ecm.platform.transform.plugin.jr.XMLToTextPlugin" 259 destinationMimeType="text/plain"> 260 <sourceMimeType> 261 text/xml 262 </sourceMimeType> 263 </plugin> 264 265 <plugin name="html2text_jr" 266 class="org.nuxeo.ecm.platform.transform.plugin.jr.HtmlToTextPlugin" 267 destinationMimeType="text/plain"> 268 <sourceMimeType> 269 text/html 270 </sourceMimeType> 271 </plugin> 272 273 <plugin name="oo2text_jr" 274 class="org.nuxeo.ecm.platform.transform.plugin.jr.OOoSimpleTextExtractor" 275 destinationMimeType="text/plain"> 276 <sourceMimeType> 277 application/vnd.sun.xml.impress 278 </sourceMimeType> 279 <sourceMimeType> 280 application/vnd.sun.xml.impress.template 281 </sourceMimeType> 282 <sourceMimeType> 283 application/vnd.oasis.opendocument.presentation 284 </sourceMimeType> 285 <sourceMimeType> 286 application/vnd.oasis.opendocument.presentation-template 287 </sourceMimeType> 288 <sourceMimeType> 289 application/vnd.sun.xml.calc 290 </sourceMimeType> 291 <sourceMimeType> 292 application/vnd.sun.xml.calc.template 293 </sourceMimeType> 294 <sourceMimeType> 295 application/vnd.oasis.opendocument.spreadsheet 296 </sourceMimeType> 297 <sourceMimeType> 298 application/vnd.oasis.opendocument.spreadsheet-template 299 </sourceMimeType> 300 <sourceMimeType> 301 application/vnd.sun.xml.writer 302 </sourceMimeType> 303 <sourceMimeType> 304 application/vnd.sun.xml.writer.template 305 </sourceMimeType> 306 <sourceMimeType> 307 application/vnd.oasis.opendocument.text 308 </sourceMimeType> 309 <sourceMimeType> 310 application/vnd.oasis.opendocument.text-template 311 </sourceMimeType> 312 </plugin> 313 228 314 229 315 <!-- This plugin transforms XML documents using a XSL stylesheet --> … … 247 333 point="transformers"> 248 334 249 <documentation>Set of default transformation chains.</documentation> 335 <documentation> 336 Set of default transformation chains. 337 </documentation> 250 338 251 339 <!-- This transformer uses a the OOo plugin to transform documents to pdf--> org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/resources/nxtransform-plugins-bundle.xml
r29938 r30384 162 162 <plugin name="word2text_poi" 163 163 class="org.nuxeo.ecm.platform.transform.plugin.poi.WordToTextPlugin" 164 destinationMimeType=" plain/text">164 destinationMimeType="text/plain"> 165 165 <sourceMimeType>application/msword</sourceMimeType> 166 166 </plugin> … … 168 168 <plugin name="ppt2text_poi" 169 169 class="org.nuxeo.ecm.platform.transform.plugin.poi.PowerpointToTextPlugin" 170 destinationMimeType=" plain/text">170 destinationMimeType="text/plain"> 171 171 <sourceMimeType> 172 172 application/vnd.ms-powerpoint 173 </sourceMimeType> 174 </plugin> 175 176 <plugin name="xl2text_jr" 177 class="org.nuxeo.ecm.platform.transform.plugin.jr.ExcelToTextPlugin" 178 destinationMimeType="text/plain"> 179 <sourceMimeType> 180 application/vnd.ms-excel 181 </sourceMimeType> 182 </plugin> 183 184 <plugin name="xml2text_jr" 185 class="org.nuxeo.ecm.platform.transform.plugin.jr.XMLToTextPlugin" 186 destinationMimeType="text/plain"> 187 <sourceMimeType> 188 text/xml 189 </sourceMimeType> 190 </plugin> 191 192 <plugin name="html2text_jr" 193 class="org.nuxeo.ecm.platform.transform.plugin.jr.HtmlToTextPlugin" 194 destinationMimeType="text/plain"> 195 <sourceMimeType> 196 text/html 197 </sourceMimeType> 198 </plugin> 199 200 <plugin name="oo2text_jr" 201 class="org.nuxeo.ecm.platform.transform.plugin.jr.OOoSimpleTextExtractor" 202 destinationMimeType="text/plain"> 203 <sourceMimeType> 204 application/vnd.sun.xml.impress 205 </sourceMimeType> 206 <sourceMimeType> 207 application/vnd.sun.xml.impress.template 208 </sourceMimeType> 209 <sourceMimeType> 210 application/vnd.oasis.opendocument.presentation 211 </sourceMimeType> 212 <sourceMimeType> 213 application/vnd.oasis.opendocument.presentation-template 214 </sourceMimeType> 215 <sourceMimeType> 216 application/vnd.sun.xml.calc 217 </sourceMimeType> 218 <sourceMimeType> 219 application/vnd.sun.xml.calc.template 220 </sourceMimeType> 221 <sourceMimeType> 222 application/vnd.oasis.opendocument.spreadsheet 223 </sourceMimeType> 224 <sourceMimeType> 225 application/vnd.oasis.opendocument.spreadsheet-template 226 </sourceMimeType> 227 <sourceMimeType> 228 application/vnd.sun.xml.writer 229 </sourceMimeType> 230 <sourceMimeType> 231 application/vnd.sun.xml.writer.template 232 </sourceMimeType> 233 <sourceMimeType> 234 application/vnd.oasis.opendocument.text 235 </sourceMimeType> 236 <sourceMimeType> 237 application/vnd.oasis.opendocument.text-template 173 238 </sourceMimeType> 174 239 </plugin>
