Skip to content

Commit

Permalink
remove xml package for plexus-utils 4
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Apr 2, 2023
1 parent c99355e commit 38ac342
Show file tree
Hide file tree
Showing 137 changed files with 4 additions and 20,387 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -14,3 +14,4 @@ For publishing [the site](https://codehaus-plexus.github.io/plexus-utils/) do th
mvn -Preporting verify site site:stage scm-publish:publish-scm
```

Starting with version 4, XML classes (in `org.codehaus.plexus.util.xml` and `org.codehaus.plexus.util.xml.pull`) have been extracted from `plexus-utils` 3 to `plexus-xml` 4.
18 changes: 3 additions & 15 deletions pom.xml
Expand Up @@ -26,18 +26,18 @@ limitations under the License.
</parent>

<artifactId>plexus-utils</artifactId>
<version>3.5.2-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>

<name>Plexus Common Utilities</name>
<description>A collection of various utility classes to ease working with strings, files, command lines, XML and
<description>A collection of various utility classes to ease working with strings, files, command lines and
more.
</description>

<scm>
<connection>scm:git:git@github.com:codehaus-plexus/plexus-utils.git</connection>
<developerConnection>scm:git:git@github.com:codehaus-plexus/plexus-utils.git</developerConnection>
<url>http://github.com/codehaus-plexus/plexus-utils</url>
<tag>plexus-utils-3.5.0</tag>
<tag>master</tag>
</scm>
<issueManagement>
<system>github</system>
Expand All @@ -55,18 +55,6 @@ limitations under the License.
</properties>

<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.36</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.36</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
44 changes: 0 additions & 44 deletions src/main/java/org/codehaus/plexus/util/ReaderFactory.java
Expand Up @@ -27,8 +27,6 @@
import java.nio.charset.Charset;
import java.nio.file.Files;

import org.codehaus.plexus.util.xml.XmlStreamReader;

/**
* Utility to create Readers from streams, with explicit encoding choice: platform default, XML, or specified.
*
Expand Down Expand Up @@ -94,48 +92,6 @@ public class ReaderFactory
*/
public static final String FILE_ENCODING = System.getProperty( "file.encoding" );

/**
* Create a new Reader with XML encoding detection rules.
*
* @param in not null input stream.
* @return an XML reader instance for the input stream.
* @throws IOException if any.
* @see XmlStreamReader
*/
public static XmlStreamReader newXmlReader( InputStream in )
throws IOException
{
return new XmlStreamReader( in );
}

/**
* Create a new Reader with XML encoding detection rules.
*
* @param file not null file.
* @return an XML reader instance for the input file.
* @throws IOException if any.
* @see XmlStreamReader
*/
public static XmlStreamReader newXmlReader( File file )
throws IOException
{
return new XmlStreamReader( file );
}

/**
* Create a new Reader with XML encoding detection rules.
*
* @param url not null url.
* @return an XML reader instance for the input url.
* @throws IOException if any.
* @see XmlStreamReader
*/
public static XmlStreamReader newXmlReader( URL url )
throws IOException
{
return new XmlStreamReader( url );
}

/**
* Create a new Reader with default platform encoding.
*
Expand Down
30 changes: 0 additions & 30 deletions src/main/java/org/codehaus/plexus/util/WriterFactory.java
Expand Up @@ -25,8 +25,6 @@
import java.nio.charset.Charset;
import java.nio.file.Files;

import org.codehaus.plexus.util.xml.XmlStreamWriter;

/**
* Utility to create Writers, with explicit encoding choice: platform default, XML, or specified.
*
Expand Down Expand Up @@ -92,34 +90,6 @@ public class WriterFactory
*/
public static final String FILE_ENCODING = System.getProperty( "file.encoding" );

/**
* Create a new Writer with XML encoding detection rules.
*
* @param out not null output stream.
* @return an XML writer instance for the output stream.
* @throws IOException if any.
* @see XmlStreamWriter
*/
public static XmlStreamWriter newXmlWriter( OutputStream out )
throws IOException
{
return new XmlStreamWriter( out );
}

/**
* Create a new Writer with XML encoding detection rules.
*
* @param file not null file.
* @return an XML writer instance for the output file.
* @throws IOException if any.
* @see XmlStreamWriter
*/
public static XmlStreamWriter newXmlWriter( File file )
throws IOException
{
return new XmlStreamWriter( file );
}

/**
* Create a new Writer with default platform encoding.
*
Expand Down
44 changes: 0 additions & 44 deletions src/main/java/org/codehaus/plexus/util/xml/CompactXMLWriter.java

This file was deleted.

0 comments on commit 38ac342

Please sign in to comment.