mirror of https://github.com/apache/maven.git
fixes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163506 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a40e474437
commit
d23845bbcb
|
@ -1,31 +1,23 @@
|
|||
<model>
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>maven</groupId>
|
||||
<artifactId>pom-pre-alpha-converter</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>maven</groupId>
|
||||
<artifactId>maven-model</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>maven</groupId>
|
||||
<artifactId>maven-model</artifactId>
|
||||
<version>4.0.0-pre-alpha1</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>plexus</groupId>
|
||||
<artifactId>plexus-utils</artifactId>
|
||||
<version>1.0-alpha-1</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<reports />
|
||||
</model>
|
||||
</project>
|
||||
|
|
|
@ -73,6 +73,7 @@ public class Main
|
|||
if ( reverse )
|
||||
{
|
||||
FileUtils.copyFile( backup, file );
|
||||
backup.delete();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -81,6 +82,11 @@ public class Main
|
|||
|
||||
try
|
||||
{
|
||||
if ( backup.exists() )
|
||||
{
|
||||
System.err.println( "skipping... backup exists" );
|
||||
}
|
||||
|
||||
FileReader fileReader = new FileReader( file );
|
||||
Model model = reader.read( fileReader );
|
||||
fileReader.close();
|
||||
|
|
Loading…
Reference in New Issue