201 Commits

Author SHA1 Message Date
Travis CI User
a8b9a42ce7 [maven-release-plugin][skip ci] prepare for next development iteration 2020-04-24 13:06:08 +00:00
Travis CI User
2b764c787d [maven-release-plugin][skip ci] prepare release 2.2.0 2020-04-24 13:06:01 +00:00
David Edwards
f503b863db ATS-708 Update pom versions to 2.2.0-SNAPSHOT 2020-04-24 12:30:28 +01:00
Travis CI User
81d691dfce [maven-release-plugin][skip ci] prepare for next development iteration 2020-04-23 17:16:58 +00:00
Travis CI User
1ddc63dc55 [maven-release-plugin][skip ci] prepare release 2.2.0-A5 2020-04-23 17:16:51 +00:00
David Edwards
410997689f
ATS-702: Add AIO tests from LibreOffice (#231)
Created test-jar for libreoffice-boot
Updated LibreOfficeControllerTest.java so it can provide inheritance
Updated LibreOfficeControllerTest#testPojoTransform to uses a viable targetMimetype
Fixed inconsitent naming for @Value annotation
Moved surefire config to super pom
Implement LibreOfficeIT on AIO Controller
2020-04-22 19:17:01 +01:00
David Edwards
e2ba7676a6
ATS-702 Add AIOControllerTest for Imagemagick transforms (#208)
Runs the tests inherited from the imagemagick-boot-test-jar through the All in One Transformer

Co-authored-by: Erik Knizat <erik.knizat@alfresco.com>
Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
Co-authored-by: eknizat <26163420+eknizat@users.noreply.github.com>
2020-04-21 11:45:23 +01:00
Jan Vonka
110ac1414c ATS-665: Tweak standard lic message (space / newline) 2020-04-21 11:23:48 +01:00
David Edwards
352388832d
ATS-724 Parallel Travis builds (#223)
* Split Build and test into separate jobs.
2020-04-20 16:10:32 +01:00
Travis CI User
a233a47a87 [maven-release-plugin][skip ci] prepare for next development iteration 2020-04-20 13:36:14 +00:00
Travis CI User
03f050bfd2 [maven-release-plugin][skip ci] prepare release 2.2.0-A4 2020-04-20 13:36:07 +00:00
Travis CI User
205d1c76ec [maven-release-plugin][skip ci] prepare for next development iteration 2020-04-18 16:43:00 +00:00
Travis CI User
5c828be979 [maven-release-plugin][skip ci] prepare release 2.2.0-A3 2020-04-18 16:42:53 +00:00
Travis CI User
e62e919656 [maven-release-plugin][skip ci] prepare for next development iteration 2020-04-17 08:56:11 +00:00
Travis CI User
8d37fb4153 [maven-release-plugin][skip ci] prepare release 2.2.0-A2 2020-04-17 08:56:04 +00:00
Kristian Dimitrov
a1b6283a4c
ATS-669: Parameterize T-Engines transformer execution locations (#203)
* ATS-669: Implement cmd line arguments for ImageMagick, PdfRenderer and LibreOffice

* ATS-669: Remove unnecessary test ImageMagick line

* ATS-669: Implement Spring boot properties via application.yaml

* ATS-669: Implement Spring config binds and utilize new functionality in pdfRender

* ATS-669: Wire externalProps for ImageMagick

* ATS-669: Wire externalProps for LibreOffice

* ATS-669: Fix failing tests

* ATS-669: Implement parameterized execution for All-In-One transform module

* ATS-669: Use string values instead of GlobalProperties class

* ATS-669: Change pdfrenderer property format

* ATS-669: Add validation to executor constructors

* ATS-669: Fix failing LibreOffice tests

* ATS-669: Add missing license

* ATS-669: Update LibreOffice version

* ATS-669: Remove unnecessary annotation

* ATS-669: Standardise properties

* ATS-669: Change field variable names

* ATS-669: Change field variable values

* ATS-669: Add unit tests for passing system properties

* ATS-669: Standardise yaml properties

* ATS-669: Remove unnecessary super() calls

* ATS-669: Change CRLF to LF

* ATS-669: Change LF to CRLF

* ATS-669: Fix yaml indentation

* ATS-669: Update tika and misc yaml file with new sub-property

* ATS-669: Remove unused import

* ATS-669: Update TransformRegistryImpl property location
2020-04-16 16:32:01 +01:00
Jan Vonka
a0ebe96217 ATS-716: Bump pom's to 2.2.0-A2-SNAPSHOT (prep for 2.2.0-A2)
- mvn versions:set -DnewVersion=2.2.0-A2-SNAPSHOT
2020-04-16 13:46:10 +01:00
montgolfiere
0bd6624d00
ATS-665: Update standard license log message on startup for all T-Engines (#221)
- also minor fix for Misc to be consistent with other T-Engines
- see also ATS-711
2020-04-15 19:27:02 +01:00
eknizat
612e378082
ATS-711: Update JavaDoc and format code (#217)
* Update JavaDoc and format code
* Add more tests
2020-04-14 14:08:21 +01:00
Travis CI User
afaa31a1db [maven-release-plugin][skip ci] prepare for next development iteration 2020-04-09 14:40:49 +00:00
Travis CI User
684d85cf53 [maven-release-plugin][skip ci] prepare release 2.2.0-TEST1 2020-04-09 14:40:41 +00:00
montgolfiere
24362d0590
ATS-676 - test release of T-Core (T-Engines) 2.2.0-TEST1 [trigger release] (#214)
* ATS-676 - test release of T-Core (T-Engines) 2.2.0-TEST1 [trigger release]

- bump pom.xml to 2.2.0-TEST1-SNAPSHOT
- as suggested increase time_wait from 30 to 55 mins (since 2.2.0-A1 may have timed-out)
2020-04-09 14:56:20 +01:00
Travis CI User
ebb4c2dcbb [maven-release-plugin][skip ci] prepare for next development iteration 2020-04-09 12:38:35 +00:00
Travis CI User
ee12dfe853 [maven-release-plugin][skip ci] prepare release 2.2.0-A1 2020-04-09 12:38:28 +00:00
montgolfiere
7ffafb4ece
ATS-676 - release alpha1 version of T-Core (T-Engines) 2.2.0-A1 [trigger release] (#213)
* ATS-676 - release alpha1 version of T-Core (T-Engines) 2.2.0-A1 [trigger release]

* ATS-676 Update License for net.jcip--jcip-annotations--1.0

* ATS-676 empty commit to [trigger release]

Co-authored-by: David Edwards <david.edwards@alfresco.com>
2020-04-09 12:01:58 +01:00
eknizat
af77d429e7
ATS-675:Add All-In-One transformer (#200)
* ATS-695/ATS-675 Add aio boot project

- Added the bare bones of a spring boot project to be used by aio. Currently based loosely on transform-misc.

* ATS-674/ATS-695 Add forms for each transformer.

* ATS-675/ATS-695 add empty test to pass build during dev

* ATS-695 remove maven profile to fix build

* ATS-675 Define interface and the aio transformer

* Fix formatting and rename the module as per review comments

* ATS-675/ATS-695 Add ProbeTestTransformation

Currenly uses MiscController implementation.

* ATS-675/ATS-695 Add logger method,

This will be code repeated in the local transform method and the processTransform method

* ATS-675/ATS-695 Implement local transform method

Minimum implementation for transform method.

* ATS-675/ATS-695  Implement processTransform

* ATS-675/ATS-695 Rename project to alfresco-transform-core-aio-boot

Add alfresco-transform-core-aio dependencies

* ATS-675/ATS-695 Fix build

Update project location
Update imports and variable declarations in TODOs
Add error handling.
Formatting.

* ATS-693: Update transform-misc Dockerfile with newly reserved uid

* Revert "ATS-691: Combine the win/linux pathToFile logic"

This reverts commit 61fe4820

* ATS-693: Update transform-misc Dockerfile with newly reserved uid

* "ATS-693: Add Dockerfile to aio-boot module"

* ATS-675/ATS-695 Add resource required for ProbeTestTrasform

* ATS-675/ATS-695 Remove test resources, to be added in test implementation

* ATS-693: Fix path to jar resources

* ATS-675/ATS-703 Moved Options builder to non boot jar.

* ATS-675/ATS-703 Rename OptionsBuilder to PdfRendererOptionsBuilder

This is to avoid confilct with OptionsBuilders in other T-engines.

* ATS-675/ATS-695 Added PdfRendererApadpter.java

Added dependency to pom.xml
Required transformation of String to Long, method added to Util.java

* ATS-675/ ATS-704

Implemented LibreOfficeAdapter

* ATS-675 Parity with base aio naming convention

* ATS-675/ATS-705 Implemented ImageMagickAdapter

Moved and renamed OptionsBuilder. Moved to alfresco-transform-imagemagick, renamed ImageMagickOptionsBuilder.
Added dependencies to pom.xml

* ATS-693: Implement maven docker build

* Initial tests
* Add initial tests for config aggregation
* Update AbstractTransformerControllerTest to use the new engine config names

* Fix up controller

* Fix travis tests  (#205)

* Fix engine specific properties for engine config location
* Temporarily add engine configs to test resources for the boot modules.  Will need to fix this properly

* Resolve some review comments

* ATS-675 - Move static strings to util class

* Refactor classes for simpler design (#210)

* ATS-702 Fix error handling

(cherry picked from commit e30cb5fda6ba2ae09c91ef61e69cba4689bcc8d9)

* ATS-675 Rename test class (fixes typo)

* ATS-675: Add aio transformer to static scan
2020-04-08 17:40:34 +01:00
Kristian Dimitrov
5c6782a3aa
ATS-691: Make path to test files OS agnostic (#197)
* ATS-691: Make path to test files OS agnostic

* ATS-691: Decode URL object in the method's return
2020-04-01 16:13:56 +01:00
eknizat
3bed6930bf
ATS-671: Split engines into fat & skinny modules (ATS-674) (#192)
Each transform engine project has been separated into 2 modules so that an executable and non-executable jar can be created. 
Modules have been renamed such that *docker* has been removed from the artifactIds and project names.

Co-authored-by: Erik Knizat <erik.knizat@alfresco.com>
Co-authored-by: David Edwards <david.edwards@alfresco.com>
2020-03-27 13:45:15 +00:00
Travis CI User
a494e724bf [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-25 13:28:58 +00:00
Travis CI User
228a802513 [maven-release-plugin][skip ci] prepare release 2.1.1 2020-02-25 13:28:52 +00:00
dependabot-preview[bot]
a491270375 Bump spring-boot-starter-parent from 2.1.8.RELEASE to 2.2.1.RELEASE (#155)
- fix tests
2019-12-06 17:34:32 +02:00
dependabot-preview[bot]
c957349a45 Bump maven-jar-plugin from 3.1.2 to 3.2.0 (#154)
Bumps [maven-jar-plugin](https://github.com/apache/maven-jar-plugin) from 3.1.2 to 3.2.0.
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.1.2...maven-jar-plugin-3.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-06 22:00:54 +02:00
Travis CI User
88733eaca4 [maven-release-plugin][skip ci] prepare for next development iteration 2019-10-28 10:33:41 +00:00
Travis CI User
f69e4f6179 [maven-release-plugin][skip ci] prepare release 2.1.0 2019-10-28 10:33:35 +00:00
Lucian Tuca
fbe87a6460
ATS-440 (#149)
ATS-440: ATS: T-Engines - release 2.1.0
   - preparing next release
2019-10-28 11:20:52 +02:00
Travis CI User
e318894cd0 [maven-release-plugin][skip ci] prepare for next development iteration 2019-10-25 16:05:42 +00:00
Travis CI User
12620cd0bf [maven-release-plugin][skip ci] prepare release 2.1.0-RC4 2019-10-25 16:05:36 +00:00
Travis CI User
1f48525b56 [maven-release-plugin][skip ci] prepare for next development iteration 2019-10-08 09:03:34 +00:00
Travis CI User
bd878d1439 [maven-release-plugin][skip ci] prepare release 2.1.0-RC3 2019-10-08 09:03:28 +00:00
Travis CI User
694cd5dddd [maven-release-plugin][skip ci] prepare for next development iteration 2019-09-20 09:50:33 +00:00
Travis CI User
f9a2ec59ec [maven-release-plugin][skip ci] prepare release 2.1.0-RC2 2019-09-20 09:50:27 +00:00
CezarLeahu
c650bf292c
ATS-545: Code formatting and small improvements (#113) 2019-09-12 16:46:48 +03:00
alandavis
d6777b58eb REPO-4639 Content conversion failed using Tika (#108)
* REPO-4639: Split tika engine_config.json into separate transformers.

* WIP: REPO-4639 Content conversion failed using Tika

The Tika T-Engine "transform" option does not exist when called via the Transform Service or Local transforms, which resulted in no transforms taking place. However this value is really not be needed as the T-Engine should be able to read its own engine_config.xml to work out which sub transform to use. Transforms only worked via Legacy transforms, which used a T-Engine.

This code is based on tried and tested ACS repository code. It has been further simplified.

TODO:
- replace the ConfigFileFinder class just added with something that uses Spring to read the JSON. i.e. simplify it.
- replace the CombinedConfig class just added with something that does not need the InLineTransformer. i.e. simplify it.
- create tests based on the repo tests
- remove the source and target mimetype checks in Tika as a check against engine_config.xml is cleaner.
- repeat the process for the Misc T-Engine as it has similar code checking source and target mimetypes.
- remove the transform option passed by the legacy transforms.

* Removed CombindConfig and ConfigFileFnder classes.

* Extracted AbstractTransformRegistry so that it may be used in the ACS repository too.

TODO AbstractTransformRegistry and AbstractTransformRegistry need to be moved to the alfresco-transform-model pakage

* tidy up only

* REPO-4639: Add priority to duplicate transforms.

* REPO-4639: Refactor TikaTransformationIT to use the new Tika /transform specifications
Changes AbstractTransformerControllerTest as the engine_config is now loaded in TransformRegistryImpl instead of AbstractTransformerController

* Rename to TransformServiceRegistry, so we don't have to change the repo code.

* Added the baseUrl parameter to the register method and fixed the missed rename in the last commit.

* Javadoc change only

* Moved common classes (with repo) AbbstractTransformRegistry and TransformServiceRegistry to alfresco-transform-model

* Replace (simplify) all the isTransformable calls with a check against the JSON.
- Tests now only pass targetEncoding to the 'string' transformer.

* Fix failing tests.

* Revert port change

* REPO-4639 : Add priorities to misc engine_config

* REPO-4639 : Add priorities to pdf-renderer and  imagemagick engine_config

* Remove test that is @Ignored

* Pick up alfresco-transformer-model 1.0.2.7-REPO-4639-1

* REPO-4639 : Add priorities to libreoffice engine_config

* REPO-4639 : Add priorities to tika engine_config

* REPO-4639 : Remove all priorities with value equal to 50 (default) from engine_config

* Switch over to using TransformServiceRegistry in org.alfresco.transform.client.registry
Reintroduce the noExtensionSourceFilenameTest having removed @Ignore.

* New whitesource issue on commons-compress 1.18. Upgrading to 1.19.

* Removed the text/javascript -> text/plain test as this is not supported

* Modifications as a result of changes to method names in alfresco-transform-model

* Pick up alfresco-transform-model 1.0.2.7-ATS545-2

* Remove unused imports
2019-09-12 15:34:42 +03:00
Cezar.Leahu
614bdbe52f Merge branch 'release' 2019-09-03 15:53:04 +03:00
Alexandru-Eusebiu Epure
bcd6fefe4d
REPO-4617 Add missing source types for T-engines (#95)
Update missing sourceMediaType -> targetMediaType for alfresco-pdf-renderer
   Update missing sourceMediaType -> targetMediaType for imagemagick
   Update missing sourceMediaType -> targetMediaType for tika libreoffice
   Update missing sourceMediaType -> targetMediaType for tika
   Update missing sourceMediaType -> targetMediaType for misc transformer
   Add T-engine Integration Tests
   Fix JavaDoc warnings
   Add sample files for tested mimetypes
2019-09-03 13:34:07 +03:00
Travis CI User
cf428fd7c0 [maven-release-plugin][skip ci] prepare for next development iteration 2019-08-27 12:25:42 +00:00
Travis CI User
ae0d133bfa [maven-release-plugin][skip ci] prepare release 2.1.0-RC1 2019-08-27 12:25:36 +00:00
Lucian Tuca
c2f475cd57
ATS-490 : ATS: T-Engines - release 2.1.0-RC1 (#101)
* ATS-490 : ATS: T-Engines - release 2.1.0-RC1
   - releasing

* ATS-490 : ATS: T-Engines - release 2.1.0-RC1
   - releasing
2019-08-27 14:17:38 +03:00
CezarLeahu
d9747f015d
ATS-466/ATS-538/ATS-539: Incorporate Misc T-Engine in ATS (#98)
- fix multiple Misc Transformer bugs related to file mimeTypes
- remove usage of 'source/targetMimetype' as transform options/parameters
- add 'source/targetMimetype' arguments to the 'processTransform' method
- remove unnecessary code (e.g. useless overridden methods)
- add quick* test resource files
- add integration test for 'Local Transformations' on the Misc engine
- set up Integration Tests POM configuration for all T-Engine modules
2019-08-26 13:59:38 +03:00
CezarLeahu
bb187dc00f
ATS-488 : Remove alfresco-core dependency (#90)
- remove *alfresco-core* dependency
- remove *alfresco-data-model* dependency
- replace _TempFileProvider_ with local implementation
- duplicate _RuntimeExec_ and _ExecParameterTokenizer_ from alfresco-core
- partially duplicate _MimetypeMap_ from alfresco-data-model
2019-08-20 10:05:39 +03:00