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

Make snapshotExpand and snapshotEnv simpler/more flexible #165

Open
sewe opened this issue Jul 4, 2014 · 0 comments
Open

Make snapshotExpand and snapshotEnv simpler/more flexible #165

sewe opened this issue Jul 4, 2014 · 0 comments
Milestone

Comments

@sewe
Copy link

sewe commented Jul 4, 2014

Not sure whether this should go into the 1.x line or be slated for 2.0, but I think snapshotExpand and snapshotEnv are not very flexible while being a bit on the verbose side.

Why not have a single String(!) snapshotExpand which defaults to "SNAPSHOT", i.e., a no-op. You could then mimic the current snapshotEnv environment-variable behavior using

<snapshotExpand>${env.MY_VARIABLE}</snapshotExpand>

And if you want a time-stamp, you could use a property as well, generated, for example, by build-helper:timestamp-property. I'd rather use that as have n slightly different timestamps (in slightly different formats) used for the same artifact (if., for example, you let the maven-resources-plugin interpolate your ${myTimestamp} property into a resource file.

Thoughts?

@tcurdt tcurdt added this to the 2.0 milestone Jul 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants