diff --git a/build.sbt b/build.sbt index 0289ed81..1313de8d 100644 --- a/build.sbt +++ b/build.sbt @@ -145,12 +145,12 @@ val common = project.in(file("modules/common")). // Some example files for testing // https://file-examples.com/index.php/sample-documents-download/sample-doc-download/ -val exampleFiles = project.in(file("modules/example-files")). +val exampleFiles = project.in(file("modules/files")). disablePlugins(RevolverPlugin). settings(sharedSettings). settings(testSettings). settings( - name := "docspell-examplefiles", + name := "docspell-files", libraryDependencies ++= Dependencies.tika, Test / sourceGenerators += Def.task { @@ -160,7 +160,7 @@ val exampleFiles = project.in(file("modules/example-files")). val ident = s.replaceAll("[^a-zA-Z0-9_]+", "_") ident -> s"""val $ident = createUrl("${s}")""" }) - val content = s"""package docspell.examplefiles + val content = s"""package docspell.files object ExampleFiles extends ExampleFilesSupport { diff --git a/modules/example-files/src/test/resources/camera/letter-en.jpg b/modules/files/src/test/resources/camera/letter-en.jpg similarity index 100% rename from modules/example-files/src/test/resources/camera/letter-en.jpg rename to modules/files/src/test/resources/camera/letter-en.jpg diff --git a/modules/example-files/src/test/resources/camera/letter-en.png b/modules/files/src/test/resources/camera/letter-en.png similarity index 100% rename from modules/example-files/src/test/resources/camera/letter-en.png rename to modules/files/src/test/resources/camera/letter-en.png diff --git a/modules/example-files/src/test/resources/camera/letter-en.tiff b/modules/files/src/test/resources/camera/letter-en.tiff similarity index 100% rename from modules/example-files/src/test/resources/camera/letter-en.tiff rename to modules/files/src/test/resources/camera/letter-en.tiff diff --git a/modules/example-files/src/test/resources/examples/sample.doc b/modules/files/src/test/resources/examples/sample.doc similarity index 100% rename from modules/example-files/src/test/resources/examples/sample.doc rename to modules/files/src/test/resources/examples/sample.doc diff --git a/modules/example-files/src/test/resources/examples/sample.docx b/modules/files/src/test/resources/examples/sample.docx similarity index 100% rename from modules/example-files/src/test/resources/examples/sample.docx rename to modules/files/src/test/resources/examples/sample.docx diff --git a/modules/example-files/src/test/resources/examples/sample.ods b/modules/files/src/test/resources/examples/sample.ods similarity index 100% rename from modules/example-files/src/test/resources/examples/sample.ods rename to modules/files/src/test/resources/examples/sample.ods diff --git a/modules/example-files/src/test/resources/examples/sample.odt b/modules/files/src/test/resources/examples/sample.odt similarity index 100% rename from modules/example-files/src/test/resources/examples/sample.odt rename to modules/files/src/test/resources/examples/sample.odt diff --git a/modules/example-files/src/test/resources/examples/sample.rtf b/modules/files/src/test/resources/examples/sample.rtf similarity index 100% rename from modules/example-files/src/test/resources/examples/sample.rtf rename to modules/files/src/test/resources/examples/sample.rtf diff --git a/modules/example-files/src/test/resources/examples/sample.xls b/modules/files/src/test/resources/examples/sample.xls similarity index 100% rename from modules/example-files/src/test/resources/examples/sample.xls rename to modules/files/src/test/resources/examples/sample.xls diff --git a/modules/example-files/src/test/resources/examples/sample.xlsx b/modules/files/src/test/resources/examples/sample.xlsx similarity index 100% rename from modules/example-files/src/test/resources/examples/sample.xlsx rename to modules/files/src/test/resources/examples/sample.xlsx diff --git a/modules/example-files/src/test/resources/letter-de-source.pdf b/modules/files/src/test/resources/letter-de-source.pdf similarity index 100% rename from modules/example-files/src/test/resources/letter-de-source.pdf rename to modules/files/src/test/resources/letter-de-source.pdf diff --git a/modules/example-files/src/test/resources/letter-de-source.txt b/modules/files/src/test/resources/letter-de-source.txt similarity index 100% rename from modules/example-files/src/test/resources/letter-de-source.txt rename to modules/files/src/test/resources/letter-de-source.txt diff --git a/modules/example-files/src/test/resources/letter-en-source.pdf b/modules/files/src/test/resources/letter-en-source.pdf similarity index 100% rename from modules/example-files/src/test/resources/letter-en-source.pdf rename to modules/files/src/test/resources/letter-en-source.pdf diff --git a/modules/example-files/src/test/resources/letter-en-source.txt b/modules/files/src/test/resources/letter-en-source.txt similarity index 100% rename from modules/example-files/src/test/resources/letter-en-source.txt rename to modules/files/src/test/resources/letter-en-source.txt diff --git a/modules/example-files/src/test/resources/scanner/jfif.jpg b/modules/files/src/test/resources/scanner/jfif.jpg similarity index 100% rename from modules/example-files/src/test/resources/scanner/jfif.jpg rename to modules/files/src/test/resources/scanner/jfif.jpg diff --git a/modules/example-files/src/test/resources/scanner/pdf13.pdf b/modules/files/src/test/resources/scanner/pdf13.pdf similarity index 100% rename from modules/example-files/src/test/resources/scanner/pdf13.pdf rename to modules/files/src/test/resources/scanner/pdf13.pdf diff --git a/modules/example-files/src/test/resources/scanner/pdfa14.pdf b/modules/files/src/test/resources/scanner/pdfa14.pdf similarity index 100% rename from modules/example-files/src/test/resources/scanner/pdfa14.pdf rename to modules/files/src/test/resources/scanner/pdfa14.pdf diff --git a/modules/example-files/src/test/scala/docspell/examplefiles/ExampleFilesSupport.scala b/modules/files/src/test/scala/docspell/files/ExampleFilesSupport.scala similarity index 90% rename from modules/example-files/src/test/scala/docspell/examplefiles/ExampleFilesSupport.scala rename to modules/files/src/test/scala/docspell/files/ExampleFilesSupport.scala index 8333e3b7..e08962a9 100644 --- a/modules/example-files/src/test/scala/docspell/examplefiles/ExampleFilesSupport.scala +++ b/modules/files/src/test/scala/docspell/files/ExampleFilesSupport.scala @@ -1,4 +1,4 @@ -package docspell.examplefiles +package docspell.files import docspell.common._