Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

EditorConfig Core Java Binding

License

NotificationsYou must be signed in to change notification settings

editorconfig/editorconfig-core-java-binding

Repository files navigation

This directory is forEditorConfig Core Java Binding. This binding is aJava binding forEditorConfig Python Core, made possible byJython.

NOTE: This java binding has been obsoleted. Please useEditorConfig Java Core instead.

EditorConfig Project

EditorConfig makes it easy to maintain the correct coding style when switchingbetween different text editors and between different projects. TheEditorConfig project maintains a file format and plugins for various texteditors which allow this file format to be read and used by those editors. Forinformation on the file format and supported text editors, see theEditorConfig website.

Build the Library and Generate the Doc

First be sure that the submodule is initialized:

cd /path/to/editorconfig-core-java-bindinggit submodule initgit submodule update

WithAnt:

ant && ant doc

The built jar file is in thebuild directory and the documentation is in thedoc directory.

Use as a Library

A basic example:

EditorConfigec =newEditorConfig();List<EditorConfig.OutPair>l =null;try {l =ec.getProperties("/home/user/src/editorconfig-core-py/a.py");}catch(EditorConfigExceptione) {System.out.println(e);System.exit(1);}for(inti =0;i <l.size(); ++i) {System.out.println(l.get(i).getKey() +"=" +l.get(i).getVal());}

A more complex example is in theexample directory. There is anonline documentation for API details, or you could runant doc togenerate html documentation. The generated documentation will locate indocdirectory.

License

All source files of the Java binding are distributed under the PSF license. SeeLICENSE.txt for details.

Copyright (C) 2012-2013, EditorConfig Team

About

EditorConfig Core Java Binding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp