Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to read build properties. #948

Closed
wants to merge 5 commits into from
Closed

Conversation

nianma
Copy link
Contributor

@nianma nianma commented Nov 12, 2015

This is only for sharing, not for merging.

@@ -317,6 +323,10 @@
private static Predicate<Property> hasFedoraNamespace =
p -> !p.isAnon() && p.getNameSpace().startsWith(REPOSITORY_NAMESPACE);

// DOAP release decribes fedora build information
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May as well move this property up closer to the DOAP namespace... instead of down here at the bottom of the file.

@awoods
Copy link

awoods commented Nov 29, 2015

@nianma, I would suggest adding two integration test methods:

  1. In fcrepo-kernel-modeshape::FedoraResourceImplIT that checks that the release triples are all set to unknown
  2. In fcrepo-webapp::SanityCheckIT that checks that the release triples are all NOT set to unknown.

@@ -0,0 +1,3 @@
build.name=${project.version}
build.date=${build.timestamp}
build.revision=${buildNumber}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't think we should use a properties file for this. The version information is already included in the MANIFEST.MF file and it can be retrieved like so:

this.getClass().getPackage().getImplementationVersion();

The build date and build revision are not typically part of the manifest file, and if they are not needed, I would omit them. IMO, we would also define and use the SpecificationVersion, which would correspond to the version of fcrepo-kernel-api (the ImplementationVersion would be the version of fcrepo-kernel-modeshape) -- that would involve updating ./fcrepo-parent/pom.xml to include this line in the bundle plugin:

<Specification-Version>${project.version}</Specification-Version>

Once the kernel-api is completely separated from the implementation, the version of fcrepo-kernel-api could be different than ${project.version}, but for now, they are the same.

@awoods awoods changed the base branch from master to main July 9, 2020 16:16
@Surfrdan
Copy link
Contributor

It seems this was never meant to be merged and is marked wont fix. Closing

@Surfrdan Surfrdan closed this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants