Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
java-version: "17"

- name: Build and Run Tests
run: mvn --settings .ci/github-actions-settings.xml verify
run: mvn --settings .ci/github-actions-settings.xml -Dspotless.check.skip verify
env:
JAVA_TOOL_OPTIONS: "-Duser.timezone=Europe/Paris"
SERVICE_NEXUS_URL: ${{ secrets.SERVICE_NEXUS_URL }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint
run-name: Linting branch ${{ github.ref }}
on: [push, pull_request]
jobs:
lint-java:
name: Lint Java
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
- name: Restore maven cache
uses: actions/cache@v4
with:
path: |
~/.m2/repository
**/target/spotless-prettier-node-modules-*
key: maven-lint-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- name: License and Format Check
run: mvn --settings .ci/github-actions-settings.xml -Pvitam -T1C license:check spotless:check
env:
SERVICE_NEXUS_URL: ${{ secrets.SERVICE_NEXUS_URL }}
CI_USR: ${{ secrets.CI_USR }}
CI_PSW: ${{ secrets.CI_PSW }}
35 changes: 35 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Copyright French Prime minister Office/SGMAP/DINSIC/Vitam Program (2019-2022)
and the signatories of the "VITAM - Accord du Contributeur" agreement.

contact@programmevitam.fr

This software is a computer program whose purpose is to provide
tools for construction and manipulation of SIP (Submission
Information Package) conform to the SEDA (Standard d’Échange
de données pour l’Archivage) standard.

This software is governed by the CeCILL-C license under French law and
abiding by the rules of distribution of free software. You can use,
modify and/ or redistribute the software under the terms of the CeCILL-C
license as circulated by CEA, CNRS and INRIA at the following URL
"http://www.cecill.info".

As a counterpart to the access to the source code and rights to copy,
modify and redistribute granted by the license, users are provided only
with a limited warranty and the software's author, the holder of the
economic rights, and the successive licensors have only limited
liability.

In this respect, the user's attention is drawn to the risks associated
with loading, using, modifying and/or developing or reproducing the
software by the user in light of its specific status of free software,
that may mean that it is complicated to manipulate, and that also
therefore means that it is reserved for developers and experienced
professionals having in-depth computer knowledge. Users are therefore
encouraged to load and test the software's suitability as regards their
requirements in conditions enabling the security of their systems and/or
data to be ensured and, more generally, to use and operate it in the
same conditions as regards security.

The fact that you are presently reading this means that you have had
knowledge of the CeCILL-C license and that you accept its terms.
51 changes: 48 additions & 3 deletions javalibpst/src/main/java/example/Test.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
/**
* Copyright French Prime minister Office/SGMAP/DINSIC/Vitam Program (2019-2022)
* and the signatories of the "VITAM - Accord du Contributeur" agreement.
*
* contact@programmevitam.fr
*
* This software is a computer program whose purpose is to provide
* tools for construction and manipulation of SIP (Submission
* Information Package) conform to the SEDA (Standard d’Échange
* de données pour l’Archivage) standard.
*
* This software is governed by the CeCILL-C license under French law and
* abiding by the rules of distribution of free software. You can use,
* modify and/ or redistribute the software under the terms of the CeCILL-C
* license as circulated by CEA, CNRS and INRIA at the following URL
* "http://www.cecill.info".
*
* As a counterpart to the access to the source code and rights to copy,
* modify and redistribute granted by the license, users are provided only
* with a limited warranty and the software's author, the holder of the
* economic rights, and the successive licensors have only limited
* liability.
*
* In this respect, the user's attention is drawn to the risks associated
* with loading, using, modifying and/or developing or reproducing the
* software by the user in light of its specific status of free software,
* that may mean that it is complicated to manipulate, and that also
* therefore means that it is reserved for developers and experienced
* professionals having in-depth computer knowledge. Users are therefore
* encouraged to load and test the software's suitability as regards their
* requirements in conditions enabling the security of their systems and/or
* data to be ensured and, more generally, to use and operate it in the
* same conditions as regards security.
*
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-C license and that you accept its terms.
*/
package example;

import java.util.Vector;

import fr.gouv.vitam.tools.javalibpst.PSTException;
import fr.gouv.vitam.tools.javalibpst.PSTFile;
import fr.gouv.vitam.tools.javalibpst.PSTFolder;
import fr.gouv.vitam.tools.javalibpst.PSTMessage;

import java.util.Vector;

public class Test {

public static void main(final String[] args) {
new Test(args[0]);
}
Expand Down Expand Up @@ -47,7 +85,14 @@ public void processFolder(final PSTFolder folder) throws PSTException, java.io.I
while (email != null) {
if (!email.getMessageClass().equals("IPM.Note")) {
this.printDepth();
System.out.println("Email: [" + email.getMessageClass() + "]" + email.getDescriptorNodeId() + " - " + email.getSubject());
System.out.println(
"Email: [" +
email.getMessageClass() +
"]" +
email.getDescriptorNodeId() +
" - " +
email.getSubject()
);
}
email = (PSTMessage) folder.getNextChild();
}
Expand Down
Loading