From 10cacbe5e3eb8616da10fc7db6a592e8fa522efa Mon Sep 17 00:00:00 2001 From: Christophe Jolif Date: Sun, 27 Jan 2019 15:06:13 +0100 Subject: [PATCH] how to use --- .gitignore | 3 +++ README.md | 16 ++++++++++++++++ build.gradle | 8 ++++++++ 3 files changed, 27 insertions(+) diff --git a/.gitignore b/.gitignore index a1fc39c..7d48799 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .gradle +/out/ /build/ # Ignore Gradle GUI config @@ -12,3 +13,5 @@ gradle-app.setting # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 # gradle/wrapper/gradle-wrapper.properties + +.idea \ No newline at end of file diff --git a/README.md b/README.md index f0313a5..f767b85 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,19 @@ Starting 2019, some Crédit Agricole subsidiaries Websites were updated to a new * Crédit Agricole Ile de France * BforBank (from what I can read, not tested) + +## How to Build + +```bash +./gradlew build +``` + +## How to use + +Instead of directly using `CAYYYYMMDD_NUM.ofx` file downloaded from the CA Website, save it locally and fix it. + +```bash +java -jar build/libs/credit-agricole-ofx-fix-1.0-SNAPSHOT.jar -f ~/Downloads/CAYYYMMDD_NUM.ofx -o fixed.ofx +``` + +Then use the fixed version (`fixed.ofx`). diff --git a/build.gradle b/build.gradle index c660a80..5cbc65c 100644 --- a/build.gradle +++ b/build.gradle @@ -15,3 +15,11 @@ dependencies { compile 'com.webcohesion.ofx4j:ofx4j:1.13' compile group: 'commons-cli', name: 'commons-cli', version: '1.3.1' } + +jar { + manifest.attributes("Main-Class": "FixCA") + + from { + configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + } +}