~ubuntu-branches/ubuntu/wily/apgdiff/wily

« back to all changes in this revision

Viewing changes to src/main/java/cz/startnet/utils/pgdiff/Main.java

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2009-12-02 11:11:33 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091202111133-k5wrh3zb2pzmbv8c
Tags: 1.4-1
* New upstream version. (Without changelog, I am afraid.)
* Test suite still not enabled as it needs network access. (The junit
  version in Debian needs upgrading.)
* Optimize rules files a bit so debhelper doesn't clean twice, and quilt's
  patch target doesn't prevent build-stamp from working.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * $Id: Main.java 93 2008-08-03 12:31:08Z fordfrog $
3
 
 */
4
1
package cz.startnet.utils.pgdiff;
5
2
 
6
3
import java.io.OutputStreamWriter;
12
9
 * in the database schemas.
13
10
 *
14
11
 * @author fordfrog
15
 
 * @version $Id: Main.java 93 2008-08-03 12:31:08Z fordfrog $
16
12
 */
17
13
public class Main {
18
14
 
31
27
     * @throws UnsupportedEncodingException Thrown if unsupported output
32
28
     * encoding has been encountered.
33
29
     */
34
 
    public static void main(final String[] args) throws
35
 
        UnsupportedEncodingException {
 
30
    public static void main(final String[] args)
 
31
            throws UnsupportedEncodingException {
36
32
        final PrintWriter writer = new PrintWriter(System.out, true);
37
33
        final PgDiffArguments arguments = new PgDiffArguments();
38
34
 
39
35
        if (arguments.parse(writer, args)) {
40
 
            final PrintWriter encodedWriter =
41
 
                new PrintWriter(new OutputStreamWriter(System.out, arguments.
42
 
                getOutCharsetName()));
 
36
            final PrintWriter encodedWriter = new PrintWriter(
 
37
                    new OutputStreamWriter(
 
38
                    System.out, arguments.getOutCharsetName()));
43
39
            PgDiff.createDiff(encodedWriter, arguments);
44
40
            encodedWriter.close();
45
41
        }