Ahh, ok. You're right. You don't check in the generated version. Sure.
Sorry. So no problem.
Per
Am 15.12.2011 10:26, schrieb Chantal Ackermann:
You shouldn't be checking in any automatically generated files!
What is checked in is the markup that contains the placeholder - and
that doesn't chan
You shouldn't be checking in any automatically generated files!
What is checked in is the markup that contains the placeholder - and
that doesn't change with new builds, of course. That's the point of it,
isn't it?
Chantal
On Thu, 2011-12-15 at 09:46 +0100, Per Newgro wrote:
> But this causes a
But this causes a build / version control system issue.
Guess you use version control like svn or cvs. Once you checked in the
html markup
and call a build the markup changed and you have to check in markup again.
So that becomes a "chicken - egg - problem".
Just my 2$
Per
Am 15.12.2011 09:27
Thank you Chantal,
Thats a very easy solution. Didn't think about that.
Kind regards,
Sjoerd Schunselaar
On Wed, Dec 14, 2011 at 1:02 PM, Chantal Ackermann <
chantal.ackerm...@btelligent.de> wrote:
> Hi Sjoerd,
>
> my way of doing this is directly from pom to html using filtering.
>
> Add ${
Hi Sjoerd,
my way of doing this is directly from pom to html using filtering.
Add ${project.version} into the markup (for me, I add it into a top bar
shared by all pages). Change the pom.xml resources configuration to
filter either all html files or only that specific one. (I've simply
changed th
It has nothing to do with Wicket but Maven.
Anyway, I use this config on maven-jar-plugin which inserts
"Implementation-Version" attribute into manifest:
maven-jar-plugin
2.3
true
true
and read version from manifest with this code:
public static String getApplicationVersion() {
Oops... This is what wicket does
public String getVersion()
{
String implVersion = null;
Package pkg = getClass().getPackage();
if (pkg != null)
{
implVersion = pkg.getImplementationVersion();
}
return Strings.isEmpty(implVersion) ? "n/a" : implVersion;
}
Maybe you can do the same for one of your
That is the Wicket version, I mean the version of my project which can be
set in the pom file.
4.0.0
nl.sjoerd.test
projectx
0.0.6
war
projectx
Kind regards,
Sjoerd Schunselaar
On Wed, Dec 14, 2011 at 11:37 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:
>
Application.getFrameworkSettings().getVersion()?
On Wed, Dec 14, 2011 at 11:33 AM, Sjoerd Schunselaar <
s.schunsel...@gmail.com> wrote:
> Hi all,
>
> Is there a easy way to display the artifact version which can be set in de
> maven pom.xml file?
> I would like to display that artifact version i