Skip to content
Commits on Source (7)
jansi-native (1.7-2) UNRELEASED; urgency=medium
jansi-native (1.8-1) unstable; urgency=medium
* Team upload.
[ Miguel Landaeta ]
* Remove myself from uploaders list. (Closes: #871866)
* Update copyright info.
* Simplify d/rules.
-- Miguel Landaeta <nomadium@debian.org> Mon, 07 Aug 2017 17:15:05 +0100
[ Emmanuel Bourg ]
* New upstream release
* Removed the unused build dependency on libmaven-plugin-tools-java
* Standards-Version updated to 4.2.1
* Switch to debhelper level 11
* Use salsa.debian.org Vcs-* URLs
-- Emmanuel Bourg <ebourg@apache.org> Mon, 26 Nov 2018 13:51:12 +0100
jansi-native (1.7-1) unstable; urgency=medium
......
......@@ -3,16 +3,15 @@ Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Build-Depends:
debhelper (>= 10),
debhelper (>= 11),
default-jdk,
libhawtjni-runtime-java,
maven-debian-helper,
libmaven-bundle-plugin-java,
libmaven-plugin-tools-java
Standards-Version: 4.0.0
libmaven-bundle-plugin-java
Standards-Version: 4.2.1
Vcs-Git: https://salsa.debian.org/java-team/jansi-native.git
Vcs-Browser: https://salsa.debian.org/java-team/jansi-native
Homepage: http://jansi.fusesource.org/
Vcs-Git: https://anonscm.debian.org/git/pkg-java/jansi-native.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/jansi-native.git
Package: libjansi-native-java
Architecture: all
......
#!/usr/bin/make -f
%:
dh $@
get-orig-source:
uscan --download-current-version --force-download
---
# Copyright (C) 2009-2017 the original author(s).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
title: Generating the Docs
---
Overview
=============================
We are using [webgen](http://webgen.rubyforge.org/) for generating nice HTML based documentation.
Installing
-----------------------------
You first need ruby and rubygems installed on your system.
You should have gems version of 1.3.4 or greater. You can check this via
gem --version
To update gems do
gem update --system
Then you can install webgen with the following command.
`sudo gem install webgen coderay feedtools haml RedCloth`
Building
-----------------------------
It's as simple as running `webgen` in the current directory. Output is stored in
the `out` directory.
# Copyright (C) 2009-2017 the original author(s).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The available configuration options can be listed using the `webgen config`
# command, for example: `webgen config sourcehandler` will list all options starting
# with sourcehandler.
# lets turn off line numbers
tag.coderay.line_numbers: false
---
# Copyright (C) 2009-2017 the original author(s).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
title: Downloads
in_menu: true
sort_info: 1
--- name:overview
# {project_name:}
Download it Today!
--- name:content pipeline:haml,tags
.left
%h1 Just need a jar?
.right
Try out the nightly build:
%ul
%li
%a{:href => "http://{project_id:}.fusesource.org/repo/release/org/fusesource/{project_id:}/{project_id:}/{project_version:}/{project_id:}-{project_version:}.jar"}
{project_id:}-{project_version:}.jar
.left
%h1 Are you a Maven User?
.right
%p
Just the following to your
%code pom.xml
:plain
{coderay:: xml}
<dependency>
<groupId>org.fusesource.{project_id:}</groupId>
<artifactId>{project_id:}</artifactId>
<version>{project_version:}</version>
</dependency>
{coderay}
%p
You you should ensure you have the {project_id:} maven repository defined in your
%code pom.xml
:plain
{coderay:: xml}
<repositories>
<repository>
<id>{project_id:}.release.m2</id>
<name>{project_id:} Release Repository</name>
<url>http://{project_id:}.fusesource.org/repo/release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
{coderay}
\ No newline at end of file
---
# Copyright (C) 2009-2017 the original author(s).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
title: Home
in_menu: true
sort_info: 1
--- name:overview pipeline:haml,tags
%h1 Home
{project_slogan:}
--- name:content pipeline:haml,tags
.left
%h1 What is Jansi?
.right
%p
Jansi is a small java library that allows you to use ANSI escape sequences
to format your console output which works even on windows.
%p
Using jansi is easy. Before you start sending ANSI escape sequences to
%code System.out
make sure you run:
:plain
{coderay::java}
AnsiConsole.systemInstall();
{coderay}
%p
If you would rather not mess with the System.out settings, you can use the
%code AnsiConsole.out
PrintStream instead. For example:
:plain
{coderay::java}
AnsiConsole.out.println("Hello World");
{coderay}
.left
%h1 Windows Examples
.right
%p
Most unix terminals support rendering ANSI escape sequences when Java
sends them via
%code System.out
but when this is done on Windows, they don't get interpreted and you get
garbage on the console similar to:
%img.example{:src=>"images/before-windows.png"}
%p
If the application uses the jansi libary, things start to look
much better:
%img.example{:src=>"images/after-jansi-windows.png"}
%p
But wait, it gets better. If you also add the JNA library to the
classpath, then jansi provides an even better ANSI handling implementation
which use a few windows Native methods to properly apply color attributes
and more precise cursor support.
%img.example{:src=>"images/after-jansi-jna-windows.png"}
\ No newline at end of file
--- name:paths
# Copyright (C) 2009-2017 the original author(s).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# You cand define metainfo for mutliple pages in this file.
#
**/*.page: # <-- That means the following attributes get applied to all pages
# in the site.
# -------------------------------------------------------------------
# You can easily switch the site from one look to another here:
# -------------------------------------------------------------------
template: /styles/default/main.template
# -------------------------------------------------------------------
# Define the project properties here, these can be accessed in the
# pages using the {var:} syntax.
# -------------------------------------------------------------------
project_name: "Jansi"
project_id: "jansi"
project_slogan: 'Eliminating boring console output.'
project_version: 1.2
---
# Copyright (C) 2009-2017 the original author(s).\n#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
template: main.template
---
<div class="post">
<h2>{title:}</h2>
<div class="details">Posted by {author:} on {created_at:} </div>
<webgen:block name='content'/>
<% if node.node_info[:page].blocks.has_key?('full_story') %>
<webgen:block name='full_story' />
<% end %>
</div>
/*
* Copyright (C) 2009-2017 the original author(s).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
body, html {
font-family:georgia;
color: #666666;
}
body, html, table, tr, td, tbody {
padding:0;
margin:0;
vertical-align: top;
}
h1, h2, h3, h4, h5, h6 {
overflow: visible;
color: black;
}
p { margin-bottom:0px; }
a { text-decoration: none; color:#00AA00; }
a:hover { color: #820000; text-decoration: underline;}
img {border: none;}
a.main { font-size: 12pt; }
.wrapper { min-width: 762px; width: 762px; margin: 0 auto; }
#navigation {
width: 100%; clear: both;
font-family: HelveticaNeue,"Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
background: #0F0F0F; text-align:center; padding: 8px;
border-bottom:2px solid #00FF00;
color: white; font-size: 10pt; font-weight: bold;
}
#navigation a { color: white; }
#navigation ul { display: block; margin:0; padding:0; }
#navigation li { list-style-type: none; display: inline; margin:0 5px 0 5px;}
#overview { width: 100%; clear: both; padding: 0px 0px 20px 0px;}
#overview div.logo {padding: 0px 20px 20px 0px; float: left;}
#overview div.message {
font-size: 14pt;
}
#overview div.message h1{ margin-bottom: 5px; }
#spot { width: 100%;
margin-top: 15px;
background:transparent url(../images/spot-banner.gif) repeat-x scroll 0 0;
height: 277px;
}
#spot div.title {
text-align:center; height:25px;
text-align:center; padding-top: 2px;
color: white; font-size: 10pt; font-weight: bold;
font-family: HelveticaNeue,"Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
}
#spot div.content table {
width: 100%; text-align:center;
color: black; font-size: 10pt;
}
#spot a:hover {text-decoration: none; }
#spot div.spot-balloon {
background:transparent url( ../../../images/spot-get-involved.gif ) no-repeat;
background-position:center;
height: 121px;
text-align:left;
padding-top: 25px;
padding-left: 35px;
}
#spot div.spot-balloon li {
list-style: none;
}
#content { width: 100%; clear: both; }
#content .wrapper { min-width: 700px; width: 700px; margin: 0 auto; }
#content div.left {
float:left;
width:200px;
text-align:right;
font-size: 18pt;
clear:both;
}
#content h1 {
font-size: 18pt;
}
#content div.right {
float:right;
width:450px;
text-align:left;
}
#blog { width: 100%; }
#blog .wrapper { min-width: 600px; width: 600px; margin: 0 auto; }
#blog h1 {
font-family: HelveticaNeue,"Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
font-size: 18pt; color: #00AA00;
}
#blog h2 {
border-bottom: thin dashed #DDD;
font-size: 16pt;
margin-bottom: 5px;
}
#blog div.post p {
padding-left: 10px;
}
#blog div.post .details {
padding-top: 5px;
color: #ccc;
font-size: 10pt;
font-family: HelveticaNeue,"Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
}
#content .post h2 {
margin-bottom:5px;
}
#content .post .details {
color: #ccc;
font-size: 10pt;
font-family: HelveticaNeue,"Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
margin-top:0px;
}
img.example {
padding: 10px;
}
\ No newline at end of file
---
# Copyright (C) 2009-2017 the original author(s).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
template: ~
---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="{lang:}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="{title:}" />
<meta name="keywords" content="jansi ANSI Java" />
<meta name="author" content="Hiram Chirino" />
<link href="{relocatable: css/site.css}" rel="stylesheet" type="text/css" />
<title>{title:}</title>
<% if context.node.node_info[:page].blocks.has_key?('head') %>
<webgen:block name='head' />
<% end %>
</script>
</head>
<body>
<div id="navigation">
<div class="wrapper">
{menu: {max_levels: 1, used_nodes: files}}
</div>
</div>
<% if context.node.node_info[:page].blocks.has_key?('overview') %>
<div id="overview">
<div class="wrapper">
<div class="logo">
<img src="{relocatable:/images/project-logo.png}"/>
</div>
<div class="message">
<webgen:block name='overview' />
</div>
</div>
</div>
<% end %>
<% if context.node.node_info[:page].blocks.has_key?('spot') %>
<div id='spot'>
<div class='wrapper'>
<webgen:block name='spot' />
</div>
</div>
<% end %>
<% if context.node.node_info[:page].blocks.has_key?('content') %>
<div id='content'>
<div class='wrapper'>
<webgen:block name="content" />
</div>
</div>
<% end %>
<% if context.node.node_info[:page].blocks.has_key?('blog') %>
<div id='blog'>
<div class='wrapper'>
<webgen:block name="blog" />
</div>
</div>
<% end %>
</body>
</html>
\ No newline at end of file