xref: /aosp_15_r20/external/apache-commons-io/README.md (revision 0c4d7b72e49a04598d65c566f44504b95342d75a)
1*0c4d7b72SSadaf Ebrahimi<!---
2*0c4d7b72SSadaf Ebrahimi Licensed to the Apache Software Foundation (ASF) under one or more
3*0c4d7b72SSadaf Ebrahimi contributor license agreements.  See the NOTICE file distributed with
4*0c4d7b72SSadaf Ebrahimi this work for additional information regarding copyright ownership.
5*0c4d7b72SSadaf Ebrahimi The ASF licenses this file to You under the Apache License, Version 2.0
6*0c4d7b72SSadaf Ebrahimi (the "License"); you may not use this file except in compliance with
7*0c4d7b72SSadaf Ebrahimi the License.  You may obtain a copy of the License at
8*0c4d7b72SSadaf Ebrahimi
9*0c4d7b72SSadaf Ebrahimi      http://www.apache.org/licenses/LICENSE-2.0
10*0c4d7b72SSadaf Ebrahimi
11*0c4d7b72SSadaf Ebrahimi Unless required by applicable law or agreed to in writing, software
12*0c4d7b72SSadaf Ebrahimi distributed under the License is distributed on an "AS IS" BASIS,
13*0c4d7b72SSadaf Ebrahimi WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*0c4d7b72SSadaf Ebrahimi See the License for the specific language governing permissions and
15*0c4d7b72SSadaf Ebrahimi limitations under the License.
16*0c4d7b72SSadaf Ebrahimi-->
17*0c4d7b72SSadaf Ebrahimi<!---
18*0c4d7b72SSadaf Ebrahimi +======================================================================+
19*0c4d7b72SSadaf Ebrahimi |****                                                              ****|
20*0c4d7b72SSadaf Ebrahimi |****      THIS FILE IS GENERATED BY THE COMMONS BUILD PLUGIN      ****|
21*0c4d7b72SSadaf Ebrahimi |****                    DO NOT EDIT DIRECTLY                      ****|
22*0c4d7b72SSadaf Ebrahimi |****                                                              ****|
23*0c4d7b72SSadaf Ebrahimi +======================================================================+
24*0c4d7b72SSadaf Ebrahimi | TEMPLATE FILE: readme-md-template.md                                 |
25*0c4d7b72SSadaf Ebrahimi | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
26*0c4d7b72SSadaf Ebrahimi +======================================================================+
27*0c4d7b72SSadaf Ebrahimi |                                                                      |
28*0c4d7b72SSadaf Ebrahimi | 1) Re-generate using: mvn commons-build:readme-md                    |
29*0c4d7b72SSadaf Ebrahimi |                                                                      |
30*0c4d7b72SSadaf Ebrahimi | 2) Set the following properties in the component's pom:              |
31*0c4d7b72SSadaf Ebrahimi |    - commons.componentid (required, alphabetic, lower case)          |
32*0c4d7b72SSadaf Ebrahimi |    - commons.release.version (required)                              |
33*0c4d7b72SSadaf Ebrahimi |                                                                      |
34*0c4d7b72SSadaf Ebrahimi | 3) Example Properties                                                |
35*0c4d7b72SSadaf Ebrahimi |                                                                      |
36*0c4d7b72SSadaf Ebrahimi |  <properties>                                                        |
37*0c4d7b72SSadaf Ebrahimi |    <commons.componentid>math</commons.componentid>                   |
38*0c4d7b72SSadaf Ebrahimi |    <commons.release.version>1.2</commons.release.version>            |
39*0c4d7b72SSadaf Ebrahimi |  </properties>                                                       |
40*0c4d7b72SSadaf Ebrahimi |                                                                      |
41*0c4d7b72SSadaf Ebrahimi +======================================================================+
42*0c4d7b72SSadaf Ebrahimi--->
43*0c4d7b72SSadaf EbrahimiApache Commons IO
44*0c4d7b72SSadaf Ebrahimi===================
45*0c4d7b72SSadaf Ebrahimi
46*0c4d7b72SSadaf Ebrahimi[![GitHub Actions Status](https://github.com/apache/commons-io/workflows/Java%20CI/badge.svg)](https://github.com/apache/commons-io/actions)
47*0c4d7b72SSadaf Ebrahimi[![Coverage Status](https://codecov.io/gh/apache/commons-io/branch/master/graph/badge.svg)](https://app.codecov.io/gh/apache/commons-io)
48*0c4d7b72SSadaf Ebrahimi[![Maven Central](https://maven-badges.herokuapp.com/maven-central/commons-io/commons-io/badge.svg?gav=true)](https://maven-badges.herokuapp.com/maven-central/commons-io/commons-io/?gav=true)
49*0c4d7b72SSadaf Ebrahimi[![Javadocs](https://javadoc.io/badge/commons-io/commons-io/2.15.0.svg)](https://javadoc.io/doc/commons-io/commons-io/2.15.0)
50*0c4d7b72SSadaf Ebrahimi[![CodeQL](https://github.com/apache/commons-io/workflows/CodeQL/badge.svg)](https://github.com/apache/commons-io/actions/workflows/codeql-analysis.yml?query=workflow%3ACodeQL)
51*0c4d7b72SSadaf Ebrahimi[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/apache/commons-io/badge)](https://api.securityscorecards.dev/projects/github.com/apache/commons-io)
52*0c4d7b72SSadaf Ebrahimi
53*0c4d7b72SSadaf EbrahimiThe Apache Commons IO library contains utility classes, stream implementations, file filters,
54*0c4d7b72SSadaf Ebrahimifile comparators, endian transformation classes, and much more.
55*0c4d7b72SSadaf Ebrahimi
56*0c4d7b72SSadaf EbrahimiDocumentation
57*0c4d7b72SSadaf Ebrahimi-------------
58*0c4d7b72SSadaf Ebrahimi
59*0c4d7b72SSadaf EbrahimiMore information can be found on the [Apache Commons IO homepage](https://commons.apache.org/proper/commons-io).
60*0c4d7b72SSadaf EbrahimiThe [Javadoc](https://commons.apache.org/proper/commons-io/apidocs) can be browsed.
61*0c4d7b72SSadaf EbrahimiQuestions related to the usage of Apache Commons IO should be posted to the [user mailing list][ml].
62*0c4d7b72SSadaf Ebrahimi
63*0c4d7b72SSadaf EbrahimiGetting the latest release
64*0c4d7b72SSadaf Ebrahimi--------------------------
65*0c4d7b72SSadaf EbrahimiYou can download source and binaries from our [download page](https://commons.apache.org/proper/commons-io/download_io.cgi).
66*0c4d7b72SSadaf Ebrahimi
67*0c4d7b72SSadaf EbrahimiAlternatively, you can pull it from  the central Maven repositories:
68*0c4d7b72SSadaf Ebrahimi
69*0c4d7b72SSadaf Ebrahimi```xml
70*0c4d7b72SSadaf Ebrahimi<dependency>
71*0c4d7b72SSadaf Ebrahimi  <groupId>commons-io</groupId>
72*0c4d7b72SSadaf Ebrahimi  <artifactId>commons-io</artifactId>
73*0c4d7b72SSadaf Ebrahimi  <version>2.15.0</version>
74*0c4d7b72SSadaf Ebrahimi</dependency>
75*0c4d7b72SSadaf Ebrahimi```
76*0c4d7b72SSadaf Ebrahimi
77*0c4d7b72SSadaf EbrahimiBuilding
78*0c4d7b72SSadaf Ebrahimi--------
79*0c4d7b72SSadaf Ebrahimi
80*0c4d7b72SSadaf EbrahimiBuilding requires a Java JDK and [Apache Maven](https://maven.apache.org/).
81*0c4d7b72SSadaf EbrahimiThe required Java version is found in the `pom.xml` as the `maven.compiler.source` property.
82*0c4d7b72SSadaf Ebrahimi
83*0c4d7b72SSadaf EbrahimiFrom a command shell, run `mvn` without arguments to invoke the default Maven goal to run all tests and checks.
84*0c4d7b72SSadaf Ebrahimi
85*0c4d7b72SSadaf EbrahimiContributing
86*0c4d7b72SSadaf Ebrahimi------------
87*0c4d7b72SSadaf Ebrahimi
88*0c4d7b72SSadaf EbrahimiWe accept Pull Requests via GitHub. The [developer mailing list](https://commons.apache.org/mail-lists.html) is the main channel of communication for contributors.
89*0c4d7b72SSadaf EbrahimiThere are some guidelines which will make applying PRs easier for us:
90*0c4d7b72SSadaf Ebrahimi+ No tabs! Please use spaces for indentation.
91*0c4d7b72SSadaf Ebrahimi+ Respect the existing code style for each file.
92*0c4d7b72SSadaf Ebrahimi+ Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
93*0c4d7b72SSadaf Ebrahimi+ Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running ```mvn```.
94*0c4d7b72SSadaf Ebrahimi
95*0c4d7b72SSadaf EbrahimiIf you plan to contribute on a regular basis, please consider filing a [contributor license agreement](https://www.apache.org/licenses/#clas).
96*0c4d7b72SSadaf EbrahimiYou can learn more about contributing via GitHub in our [contribution guidelines](CONTRIBUTING.md).
97*0c4d7b72SSadaf Ebrahimi
98*0c4d7b72SSadaf EbrahimiLicense
99*0c4d7b72SSadaf Ebrahimi-------
100*0c4d7b72SSadaf EbrahimiThis code is licensed under the [Apache License v2](https://www.apache.org/licenses/LICENSE-2.0).
101*0c4d7b72SSadaf Ebrahimi
102*0c4d7b72SSadaf EbrahimiSee the `NOTICE.txt` file for required notices and attributions.
103*0c4d7b72SSadaf Ebrahimi
104*0c4d7b72SSadaf EbrahimiDonating
105*0c4d7b72SSadaf Ebrahimi--------
106*0c4d7b72SSadaf EbrahimiYou like Apache Commons IO? Then [donate back to the ASF](https://www.apache.org/foundation/contributing.html) to support development.
107*0c4d7b72SSadaf Ebrahimi
108*0c4d7b72SSadaf EbrahimiAdditional Resources
109*0c4d7b72SSadaf Ebrahimi--------------------
110*0c4d7b72SSadaf Ebrahimi
111*0c4d7b72SSadaf Ebrahimi+ [Apache Commons Homepage](https://commons.apache.org/)
112*0c4d7b72SSadaf Ebrahimi+ [Apache Issue Tracker (JIRA)](https://issues.apache.org/jira/browse/IO)
113*0c4d7b72SSadaf Ebrahimi+ [Apache Commons Slack Channel](https://the-asf.slack.com/archives/C60NVB8AD)
114*0c4d7b72SSadaf Ebrahimi+ [Apache Commons Twitter Account](https://twitter.com/ApacheCommons)
115*0c4d7b72SSadaf Ebrahimi+ `#apache-commons` IRC channel on `irc.freenode.org`
116*0c4d7b72SSadaf Ebrahimi
117*0c4d7b72SSadaf EbrahimiApache Commons Components
118*0c4d7b72SSadaf Ebrahimi-------------------------
119*0c4d7b72SSadaf Ebrahimi
120*0c4d7b72SSadaf EbrahimiPlease see the [list of components](https://commons.apache.org/components.html)
121