Comments (11)
Done in RicardoBochnia@e17d91c Not tested if ant build needs adjusting.
from metadata-extractor.
Thanks for picking this up. I'm not sure we should be creating the file explicitly in the repo. In both the Ant and Maven builds, the file is created as part of the JAR creation. It looks like this was happening in the pom.xml
, but you removed it.
Also, could you apply this and future fixes on top of the project's current master
and submit as new pull requests? There's no easy way to merge this from your fork at the moment as it's stacked on top of all your other changes, some of which cannot be merged.
from metadata-extractor.
The problem is you can't run junit tests on a non-existing file. Thus you would the manifest in the repository to test it. Otherwise you would have to do a full build each time just to run the manifest unit test. An existing manifest is used by maven and ant. They both will just apprehend entries to an existing manifest file. So instead of writing the same stuff in the pom.xml and the build.xml it easier to just write it into the manifest file.
from metadata-extractor.
The version number will still need to be in pom.xml
and build.xml
. Creating a new file means it'll be in a third place too.
from metadata-extractor.
Yeah to set the version number in four different files kinda sucks.
The original manifest is just a template for the maven and ant build process. It's the only way to implement a unit test which validates that the generated manifest.mf in the jar will contain the entries from the original manifest file.
from metadata-extractor.
You could create a multi-module project with something like a distribution-test
as the last module that verifies the artifacts built by the previous modules.
from metadata-extractor.
Hey Ray. That does sound like a sensible way to do it. What else might we include in that test? Is it really worth it?
from metadata-extractor.
Tools like Maven are pretty well tested already so when building with best practices there's probably no need to test the manifest info.
Things like the Maven release plugin help automate and regulate things even further.
Off hand I'm not sure what else you'd need in a distribution test. You'd usually only need that if you were putting things in your final artifacts in non-standard ways.
from metadata-extractor.
I believe this is now complete and will verify when completing #1. Closing for now.
from metadata-extractor.
Thank you Drew !
from metadata-extractor.
The version info for the jar plugin is missing. By default it uses 2.1 if I run the maven build, however the current version is 2.5.
from metadata-extractor.
Related Issues (20)
- GPS height information reading HOT 1
- Crash on java.lang.OutOfMemoryError
- Regression Tests producing different data HOT 7
- Out of memory (59098) found by OSS-Fuzz
- wrong date/time while timezone is null HOT 7
- Any Plan to update libwebp library ? HOT 2
- Question: Is it possible to read the EXIF data from a HEIC? HOT 3
- Get image properties without hydrating the file HOT 5
- Tags "make" and "Camera Model Name" are not exists in MP4Directory
- Rational numbers can show sign in denominator rather than numerator (e.g. "1/-2" vs "-1/2") HOT 4
- 2.19.0 is not listed as a release HOT 1
- A OOM problem was found in metadata-extractor
- No metadata for each page from another multipage TIFF HOT 1
- Support metadata from Multi-Picture Format images
- Replace number formatting code
- QuickTime video (MOV) from old Panasonic camera is not recognized HOT 2
- ImageMetadataReader does not handle FileType.Crx HOT 5
- Support for AVIF format code completed but new Maven package not released HOT 1
- PDF support for detectFileType
- Support AVIF metadata HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metadata-extractor.