Finished IGNITE-1067

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Finished IGNITE-1067

Anton Vinogradov
Hi,

I've finished work on LICENSE file generation.
(https://issues.apache.org/jira/browse/IGNITE-1067)
As a result we have 3 different LICENSE files: for sources package, for
fabric and for hadoop.

I've created module *ignite-apache-license-gen* based on
*apache-resource-bundles*, and using apache velocity template made
automatic generation of non-apache licenses list for each module
distribution.

template content:

// ------------------------------------------------------------------
// List of #if ($projectName)$projectName#else${project.name}#end module's
dependencies provided as a part of this distribution
// which licenses differ from Apache Software License.
// ------------------------------------------------------------------

#foreach ( $organizationName in $projectsSortedByOrganization.keySet() )
#foreach ( $project in $projectsSortedByOrganization.get( $organizationName
) )
#if((!($project.licenses.size() == 1 &&
$project.licenses.get(0).url.contains("www.apache.org/licenses/LICENSE-2.0")
&& !$project.licenses.get(0).url.contains("and"))) &&
$project.licenses.size() > 0)
==============================================================================
For $project.name #if ($project.url)($project.url)#end $project.artifact
==============================================================================
This product bundles $project.name which is available under a:
#foreach ( $license in $project.licenses )
$license.name.replaceAll("[ ]{2,}"," ").replaceAll("\n",""). #if
($license.url)For details, see $license.url.replaceAll("[ ]{2,}","
").replaceAll("\n","").#end

#end

#end
#end
#end


List of this licenses can be found at *licenses *folders inside libs/* at
Ignite convenience binaries.

Using these files (libs/*/licenses/*) I've manually fixed LICENSE file
contet for each type of distribution.

If someone have ideas how to generate LICENSE files more automatically
please let me know.
Reply | Threaded
Open this post in threaded view
|

Re: Finished IGNITE-1067

Artem Shutak
Anton,

What about to add this description to the jira too (as a comment). I think
it can be helpful if someone will look at code, which refer to the jira.

Thanks,
Artem.

On Thu, Jul 16, 2015 at 6:13 PM, Anton Vinogradov <[hidden email]>
wrote:

> Hi,
>
> I've finished work on LICENSE file generation.
> (https://issues.apache.org/jira/browse/IGNITE-1067)
> As a result we have 3 different LICENSE files: for sources package, for
> fabric and for hadoop.
>
> I've created module *ignite-apache-license-gen* based on
> *apache-resource-bundles*, and using apache velocity template made
> automatic generation of non-apache licenses list for each module
> distribution.
>
> template content:
>
> // ------------------------------------------------------------------
> // List of #if ($projectName)$projectName#else${project.name}#end module's
> dependencies provided as a part of this distribution
> // which licenses differ from Apache Software License.
> // ------------------------------------------------------------------
>
> #foreach ( $organizationName in $projectsSortedByOrganization.keySet() )
> #foreach ( $project in $projectsSortedByOrganization.get( $organizationName
> ) )
> #if((!($project.licenses.size() == 1 &&
> $project.licenses.get(0).url.contains("www.apache.org/licenses/LICENSE-2.0
> ")
> && !$project.licenses.get(0).url.contains("and"))) &&
> $project.licenses.size() > 0)
>
> ==============================================================================
> For $project.name #if ($project.url)($project.url)#end $project.artifact
>
> ==============================================================================
> This product bundles $project.name which is available under a:
> #foreach ( $license in $project.licenses )
> $license.name.replaceAll("[ ]{2,}"," ").replaceAll("\n",""). #if
> ($license.url)For details, see $license.url.replaceAll("[ ]{2,}","
> ").replaceAll("\n","").#end
>
> #end
>
> #end
> #end
> #end
>
>
> List of this licenses can be found at *licenses *folders inside libs/* at
> Ignite convenience binaries.
>
> Using these files (libs/*/licenses/*) I've manually fixed LICENSE file
> contet for each type of distribution.
>
> If someone have ideas how to generate LICENSE files more automatically
> please let me know.
>