mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
add editorconfig and checker
This commit is contained in:
17
.editorconfig
Normal file
17
.editorconfig
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Editor configuration, see http://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.java]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = off
|
||||||
|
trim_trailing_whitespace = false
|
@@ -18,3 +18,9 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: check-travis
|
- id: check-travis
|
||||||
- id: check-github-workflows
|
- id: check-github-workflows
|
||||||
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
|
rev: 2.4.0
|
||||||
|
hooks:
|
||||||
|
- id: editorconfig-checker
|
||||||
|
args: ['-disable-indent-size']
|
||||||
|
exclude: (\.(pgm|pnm|ppm|html|eml)|quick.txt)$
|
||||||
|
@@ -43,7 +43,7 @@ RUN ln /usr/bin/alfresco-transform-core-aio-boot-${env.project_version}.jar /usr
|
|||||||
rm -rf libreoffice-dist-*linux.gz LibreOffice_*_Linux_x86-64_rpm && \
|
rm -rf libreoffice-dist-*linux.gz LibreOffice_*_Linux_x86-64_rpm && \
|
||||||
curl -s -S $ALFRESCO_PDF_RENDERER_LIB_RPM_URL -o alfresco-pdf-renderer-linux.tgz && \
|
curl -s -S $ALFRESCO_PDF_RENDERER_LIB_RPM_URL -o alfresco-pdf-renderer-linux.tgz && \
|
||||||
tar xf alfresco-pdf-renderer-linux.tgz -C /usr/bin && \
|
tar xf alfresco-pdf-renderer-linux.tgz -C /usr/bin && \
|
||||||
rm -f alfresco-pdf-renderer-linux.tgz && \
|
rm -f alfresco-pdf-renderer-linux.tgz && \
|
||||||
curl -s -S $EXIFTOOL_URL -o ${EXIFTOOL_FOLDER}.tgz && \
|
curl -s -S $EXIFTOOL_URL -o ${EXIFTOOL_FOLDER}.tgz && \
|
||||||
tar xzf ${EXIFTOOL_FOLDER}.tgz && \
|
tar xzf ${EXIFTOOL_FOLDER}.tgz && \
|
||||||
yum -y install perl perl-ExtUtils-MakeMaker make && \
|
yum -y install perl perl-ExtUtils-MakeMaker make && \
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
The "Artistic License"
|
The "Artistic License"
|
||||||
|
|
||||||
Preamble
|
Preamble
|
||||||
|
|
||||||
The intent of this document is to state the conditions under which a
|
The intent of this document is to state the conditions under which a
|
||||||
Package may be copied, such that the Copyright Holder maintains some
|
Package may be copied, such that the Copyright Holder maintains some
|
||||||
@@ -11,30 +11,30 @@ reasonable modifications.
|
|||||||
|
|
||||||
Definitions:
|
Definitions:
|
||||||
|
|
||||||
"Package" refers to the collection of files distributed by the
|
"Package" refers to the collection of files distributed by the
|
||||||
Copyright Holder, and derivatives of that collection of files
|
Copyright Holder, and derivatives of that collection of files
|
||||||
created through textual modification.
|
created through textual modification.
|
||||||
|
|
||||||
"Standard Version" refers to such a Package if it has not been
|
"Standard Version" refers to such a Package if it has not been
|
||||||
modified, or has been modified in accordance with the wishes
|
modified, or has been modified in accordance with the wishes
|
||||||
of the Copyright Holder as specified below.
|
of the Copyright Holder as specified below.
|
||||||
|
|
||||||
"Copyright Holder" is whoever is named in the copyright or
|
"Copyright Holder" is whoever is named in the copyright or
|
||||||
copyrights for the package.
|
copyrights for the package.
|
||||||
|
|
||||||
"You" is you, if you're thinking about copying or distributing
|
"You" is you, if you're thinking about copying or distributing
|
||||||
this Package.
|
this Package.
|
||||||
|
|
||||||
"Reasonable copying fee" is whatever you can justify on the
|
"Reasonable copying fee" is whatever you can justify on the
|
||||||
basis of media cost, duplication charges, time of people involved,
|
basis of media cost, duplication charges, time of people involved,
|
||||||
and so on. (You will not be required to justify it to the
|
and so on. (You will not be required to justify it to the
|
||||||
Copyright Holder, but only to the computing community at large
|
Copyright Holder, but only to the computing community at large
|
||||||
as a market that must bear the fee.)
|
as a market that must bear the fee.)
|
||||||
|
|
||||||
"Freely Available" means that no fee is charged for the item
|
"Freely Available" means that no fee is charged for the item
|
||||||
itself, though there may be fees involved in handling the item.
|
itself, though there may be fees involved in handling the item.
|
||||||
It also means that recipients of the item may redistribute it
|
It also means that recipients of the item may redistribute it
|
||||||
under the same conditions they received it.
|
under the same conditions they received it.
|
||||||
|
|
||||||
1. You may make and give away verbatim copies of the source form of the
|
1. You may make and give away verbatim copies of the source form of the
|
||||||
Standard Version of this Package without restriction, provided that you
|
Standard Version of this Package without restriction, provided that you
|
||||||
@@ -124,4 +124,4 @@ products derived from this software without specific prior written permission.
|
|||||||
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||||
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
The End
|
The End
|
||||||
|
@@ -18,7 +18,7 @@ COPY target/${env.project_artifactId}-${env.project_version}.jar /usr/bin
|
|||||||
RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
||||||
curl -s -S $ALFRESCO_PDF_RENDERER_LIB_RPM_URL -o alfresco-pdf-renderer-linux.tgz && \
|
curl -s -S $ALFRESCO_PDF_RENDERER_LIB_RPM_URL -o alfresco-pdf-renderer-linux.tgz && \
|
||||||
tar xf alfresco-pdf-renderer-linux.tgz -C /usr/bin && \
|
tar xf alfresco-pdf-renderer-linux.tgz -C /usr/bin && \
|
||||||
rm -f alfresco-pdf-renderer-linux.tgz && \
|
rm -f alfresco-pdf-renderer-linux.tgz && \
|
||||||
yum clean all
|
yum clean all
|
||||||
|
|
||||||
ADD target/generated-resources/licenses /licenses
|
ADD target/generated-resources/licenses /licenses
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
The "Artistic License"
|
The "Artistic License"
|
||||||
|
|
||||||
Preamble
|
Preamble
|
||||||
|
|
||||||
The intent of this document is to state the conditions under which a
|
The intent of this document is to state the conditions under which a
|
||||||
Package may be copied, such that the Copyright Holder maintains some
|
Package may be copied, such that the Copyright Holder maintains some
|
||||||
@@ -11,30 +11,30 @@ reasonable modifications.
|
|||||||
|
|
||||||
Definitions:
|
Definitions:
|
||||||
|
|
||||||
"Package" refers to the collection of files distributed by the
|
"Package" refers to the collection of files distributed by the
|
||||||
Copyright Holder, and derivatives of that collection of files
|
Copyright Holder, and derivatives of that collection of files
|
||||||
created through textual modification.
|
created through textual modification.
|
||||||
|
|
||||||
"Standard Version" refers to such a Package if it has not been
|
"Standard Version" refers to such a Package if it has not been
|
||||||
modified, or has been modified in accordance with the wishes
|
modified, or has been modified in accordance with the wishes
|
||||||
of the Copyright Holder as specified below.
|
of the Copyright Holder as specified below.
|
||||||
|
|
||||||
"Copyright Holder" is whoever is named in the copyright or
|
"Copyright Holder" is whoever is named in the copyright or
|
||||||
copyrights for the package.
|
copyrights for the package.
|
||||||
|
|
||||||
"You" is you, if you're thinking about copying or distributing
|
"You" is you, if you're thinking about copying or distributing
|
||||||
this Package.
|
this Package.
|
||||||
|
|
||||||
"Reasonable copying fee" is whatever you can justify on the
|
"Reasonable copying fee" is whatever you can justify on the
|
||||||
basis of media cost, duplication charges, time of people involved,
|
basis of media cost, duplication charges, time of people involved,
|
||||||
and so on. (You will not be required to justify it to the
|
and so on. (You will not be required to justify it to the
|
||||||
Copyright Holder, but only to the computing community at large
|
Copyright Holder, but only to the computing community at large
|
||||||
as a market that must bear the fee.)
|
as a market that must bear the fee.)
|
||||||
|
|
||||||
"Freely Available" means that no fee is charged for the item
|
"Freely Available" means that no fee is charged for the item
|
||||||
itself, though there may be fees involved in handling the item.
|
itself, though there may be fees involved in handling the item.
|
||||||
It also means that recipients of the item may redistribute it
|
It also means that recipients of the item may redistribute it
|
||||||
under the same conditions they received it.
|
under the same conditions they received it.
|
||||||
|
|
||||||
1. You may make and give away verbatim copies of the source form of the
|
1. You may make and give away verbatim copies of the source form of the
|
||||||
Standard Version of this Package without restriction, provided that you
|
Standard Version of this Package without restriction, provided that you
|
||||||
@@ -124,4 +124,4 @@ products derived from this software without specific prior written permission.
|
|||||||
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||||
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
The End
|
The End
|
||||||
|
@@ -38,8 +38,8 @@ src/main/java/org/alfresco/transformer/Application.java
|
|||||||
<tr><td><div style="text-align:right">abc:height</div></td><td><input type="text" name="height" value="" /></td></tr>
|
<tr><td><div style="text-align:right">abc:height</div></td><td><input type="text" name="height" value="" /></td></tr>
|
||||||
<tr><td><div style="text-align:right">timeout</div></td><td><input type="text" name="timeout" value="" /></td></tr>
|
<tr><td><div style="text-align:right">timeout</div></td><td><input type="text" name="timeout" value="" /></td></tr>
|
||||||
<tr><td></td><td><input type="submit" value="Transform" /></td></tr>
|
<tr><td></td><td><input type="submit" value="Transform" /></td></tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="/log">Log entries</a>
|
<a href="/log">Log entries</a>
|
||||||
@@ -158,22 +158,22 @@ Transform requests are handled by the *AbstractTransformerController*, but are e
|
|||||||
**Example JSON request body**
|
**Example JSON request body**
|
||||||
```javascript
|
```javascript
|
||||||
var transformRequest = {
|
var transformRequest = {
|
||||||
"requestId": "1",
|
"requestId": "1",
|
||||||
"sourceReference": "2f9ed237-c734-4366-8c8b-6001819169a4",
|
"sourceReference": "2f9ed237-c734-4366-8c8b-6001819169a4",
|
||||||
"sourceMediaType": "application/pdf",
|
"sourceMediaType": "application/pdf",
|
||||||
"sourceSize": 123456,
|
"sourceSize": 123456,
|
||||||
"sourceExtension": "pdf",
|
"sourceExtension": "pdf",
|
||||||
"targetMediaType": "text/plain",
|
"targetMediaType": "text/plain",
|
||||||
"targetExtension": "txt",
|
"targetExtension": "txt",
|
||||||
"clientType": "ACS",
|
"clientType": "ACS",
|
||||||
"clientData": "Yo No Soy Marinero, Soy Capitan, Soy Capitan!",
|
"clientData": "Yo No Soy Marinero, Soy Capitan, Soy Capitan!",
|
||||||
"schema": 1,
|
"schema": 1,
|
||||||
"transformRequestOptions": {
|
"transformRequestOptions": {
|
||||||
"targetMimetype": "text/plain",
|
"targetMimetype": "text/plain",
|
||||||
"targetEncoding": "UTF-8",
|
"targetEncoding": "UTF-8",
|
||||||
"abc:width": "120",
|
"abc:width": "120",
|
||||||
"abc:height": "200"
|
"abc:height": "200"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
<title>IPTC</title>
|
<title>IPTC</title>
|
||||||
<properties>
|
<properties>
|
||||||
|
|
||||||
<!-- Start of IPTC Core -->
|
<!-- Start of IPTC Core -->
|
||||||
<property name="photoshop:City">
|
<property name="photoshop:City">
|
||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
<index enabled="true">
|
<index enabled="true">
|
||||||
@@ -225,7 +225,7 @@
|
|||||||
<!-- End of IPTC Core -->
|
<!-- End of IPTC Core -->
|
||||||
|
|
||||||
<!-- Start of IPTC Ext -->
|
<!-- Start of IPTC Ext -->
|
||||||
<property name="Iptc4xmpExt:AddlModelInfo">
|
<property name="Iptc4xmpExt:AddlModelInfo">
|
||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
</property>
|
</property>
|
||||||
<property name="Iptc4xmpExt:OrganisationInImageCode">
|
<property name="Iptc4xmpExt:OrganisationInImageCode">
|
||||||
|
Reference in New Issue
Block a user