-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MINVOKER-258] Normalize line endings
This closes #36
- Loading branch information
1 parent
5bdddfe
commit 6f4dc0b
Showing
82 changed files
with
9,785 additions
and
9,785 deletions.
There are no files selected for viewing
156 changes: 78 additions & 78 deletions
156
src/it/MINVOKER-191/plugin/src/main/java/org/apache/maven/it/plugins/dummy/MyMojo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,78 @@ | ||
package org.apache.maven.it.plugins.dummy; | ||
|
||
/* | ||
* Copyright 2001-2005 The Apache Software Foundation. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import org.apache.maven.plugin.AbstractMojo; | ||
import org.apache.maven.plugin.MojoExecutionException; | ||
|
||
import java.io.File; | ||
import java.io.FileWriter; | ||
import java.io.IOException; | ||
|
||
/** | ||
* @goal touch | ||
* @phase process-sources | ||
*/ | ||
public class MyMojo | ||
extends AbstractMojo | ||
{ | ||
/** | ||
* Location of the file. | ||
* @parameter expression="${project.build.directory}" | ||
* @required | ||
*/ | ||
private File outputDirectory; | ||
|
||
public void execute() | ||
throws MojoExecutionException | ||
{ | ||
File f = outputDirectory; | ||
|
||
if ( !f.exists() ) | ||
{ | ||
f.mkdirs(); | ||
} | ||
|
||
File touch = new File( f, "touch.txt" ); | ||
|
||
FileWriter w = null; | ||
try | ||
{ | ||
w = new FileWriter( touch ); | ||
|
||
w.write( "touch.txt" ); | ||
} | ||
catch ( IOException e ) | ||
{ | ||
throw new MojoExecutionException( "Error creating file " + touch, e ); | ||
} | ||
finally | ||
{ | ||
if ( w != null ) | ||
{ | ||
try | ||
{ | ||
w.close(); | ||
} | ||
catch ( IOException e ) | ||
{ | ||
// ignore | ||
} | ||
} | ||
} | ||
} | ||
} | ||
package org.apache.maven.it.plugins.dummy; | ||
|
||
/* | ||
* Copyright 2001-2005 The Apache Software Foundation. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import org.apache.maven.plugin.AbstractMojo; | ||
import org.apache.maven.plugin.MojoExecutionException; | ||
|
||
import java.io.File; | ||
import java.io.FileWriter; | ||
import java.io.IOException; | ||
|
||
/** | ||
* @goal touch | ||
* @phase process-sources | ||
*/ | ||
public class MyMojo | ||
extends AbstractMojo | ||
{ | ||
/** | ||
* Location of the file. | ||
* @parameter expression="${project.build.directory}" | ||
* @required | ||
*/ | ||
private File outputDirectory; | ||
|
||
public void execute() | ||
throws MojoExecutionException | ||
{ | ||
File f = outputDirectory; | ||
|
||
if ( !f.exists() ) | ||
{ | ||
f.mkdirs(); | ||
} | ||
|
||
File touch = new File( f, "touch.txt" ); | ||
|
||
FileWriter w = null; | ||
try | ||
{ | ||
w = new FileWriter( touch ); | ||
|
||
w.write( "touch.txt" ); | ||
} | ||
catch ( IOException e ) | ||
{ | ||
throw new MojoExecutionException( "Error creating file " + touch, e ); | ||
} | ||
finally | ||
{ | ||
if ( w != null ) | ||
{ | ||
try | ||
{ | ||
w.close(); | ||
} | ||
catch ( IOException e ) | ||
{ | ||
// ignore | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,79 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.apache.maven.plugins.invoker</groupId> | ||
<artifactId>MINVOKER-191-parent</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<description> | ||
Test of reported issue MINVOKER-191: install plugins try to install all reactors projects | ||
even non dependendant projects which cause build using multi thread builds | ||
</description> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<modules> | ||
<module>module-a</module> | ||
<module>plugin</module> | ||
<module>module-b</module> | ||
</modules> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.5.1</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-plugin-plugin</artifactId> | ||
<version>2.9</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>2.6</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-invoker-plugin</artifactId> | ||
<version>@project.version@</version> | ||
<configuration> | ||
<writeJunitReport>true</writeJunitReport> | ||
<properties> | ||
<!-- e.g. ensure that Java7 picks up TLSv1.2 when connecting with Central --> | ||
<https.protocols>${https.protocols}</https.protocols> | ||
</properties> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
</project> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.apache.maven.plugins.invoker</groupId> | ||
<artifactId>MINVOKER-191-parent</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<description> | ||
Test of reported issue MINVOKER-191: install plugins try to install all reactors projects | ||
even non dependendant projects which cause build using multi thread builds | ||
</description> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<modules> | ||
<module>module-a</module> | ||
<module>plugin</module> | ||
<module>module-b</module> | ||
</modules> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.5.1</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-plugin-plugin</artifactId> | ||
<version>2.9</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>2.6</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-invoker-plugin</artifactId> | ||
<version>@project.version@</version> | ||
<configuration> | ||
<writeJunitReport>true</writeJunitReport> | ||
<properties> | ||
<!-- e.g. ensure that Java7 picks up TLSv1.2 when connecting with Central --> | ||
<https.protocols>${https.protocols}</https.protocols> | ||
</properties> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
</project> |
Oops, something went wrong.