[Bug 239582] License Changer doesn't recognize project.displayName template variable

  • From:
  • To:
  • Subject: [Bug 239582] License Changer doesn't recognize project.displayName template variable
  • Date: Fri, 20 Dec 2013 08:18:14 +0000
  • Auto-submitted: auto-generated

https://netbeans.org/bugzilla/show_bug.cgi?id=239582

--- Comment #4 from 

 ---
(In reply to err from comment #2)
> (In reply to nhoffmann from comment #1)
> > However, ${name}, ${nameAndExt},${encoding}, ${time} and ${date} will not 
> > be
> > included since their use in license headers is questionable.
On second thoughts, I will include those in the next version. I agree that
users would expect the default variables to be available in License Changer as
well.

'name', 'nameAndExt', and 'encoding' will be set individually for each
processed file.

Date and Time will be set to the same initial date for all changed files and
will be date objects, so you will be able to format them with the 
'string(...)'
directive from freemarker:

http://freemarker.org/docs/ref_builtins_date.html

> 
> I understand all of these except ${date}. It looks like all of the license
> headers have
> 
>     Copyright (C) ${date?date?string("yyyy")}
> 
> and the lines usually contain ${licensePrefix} and some variant of ${user}.
> How would license changer handle this, if ${date} is not interpolated? (I
> can see how you wouldn't want to change the date, just because you change
> the license, but...)
> 
> Some license headers have
>     ${project.organization!user}
> as part of the Copyright line. I just checked FreeMarker site and found out
> what "!" does. I don't see project.organization in the template variable
> FAQ. Is it, or should it, be handled?

This property is set via the Copyright Holder dialog on the first panel of the
wizard. You can add simply add it to your user.properties in case your
project's copyright is not held by an individual.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


[Bug 239582] New: License Changer doesn't recognize project.displayName template variable

err 12/17/2013

[Bug 239582] License Changer doesn't recognize project.displayName template variable

err 12/17/2013

[Bug 239582] License Changer doesn't recognize project.displayName template variable

nhoffmann 12/18/2013

[Bug 239582] License Changer doesn't recognize project.displayName template variable

err 12/18/2013

[Bug 239582] License Changer doesn't recognize project.displayName template variable

err 12/18/2013

[Bug 239582] License Changer doesn't recognize project.displayName template variable

nhoffmann 12/20/2013

Project Features

About this Project

Contrib was started in November 2009, is owned by Jiří Kovalský, and has 254 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close