You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by ap...@apache.org on 2011/01/17 11:13:29 UTC
svn commit: r1059875 - in /incubator/npanday/trunk: ./
dotnet/assemblies/NPanday.Model.Settings/
dotnet/assemblies/NPanday.ProjectImporter/Engine/
dotnet/assemblies/NPanday.VisualStudio.Addin/
plugins/partcover-maven-plugin/src/main/java/npanday/plugin...
Author: apadilla
Date: Mon Jan 17 11:13:28 2011
New Revision: 1059875
URL: http://svn.apache.org/viewvc?rev=1059875&view=rev
Log:
* removed xslt files for partcover-plugin (licenses issue)
* added sample config for test assemblies in dotnet module
* revised partcover converter to use the xslt file package in Partcover
* removed exclusion of xslt file in apache-rat-plugin configuration
Removed:
incubator/npanday/trunk/plugins/partcover-maven-plugin/src/main/resources/
Modified:
incubator/npanday/trunk/dotnet/assemblies/NPanday.Model.Settings/pom.xml
incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/pom.xml
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/pom.xml
incubator/npanday/trunk/plugins/partcover-maven-plugin/src/main/java/npanday/plugin/partcover/PartCoverConverterMojo.java
incubator/npanday/trunk/pom.xml
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.Model.Settings/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.Model.Settings/pom.xml?rev=1059875&r1=1059874&r2=1059875&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.Model.Settings/pom.xml (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.Model.Settings/pom.xml Mon Jan 17 11:13:28 2011
@@ -47,8 +47,12 @@ under the License.
<groupId>npanday.plugin</groupId>
<artifactId>partcover-maven-plugin</artifactId>
<configuration>
+ <!--<nUnit>C:\\Program Files\\NUnit 2.5.7\\bin\net-2.0\\nunit-console.exe</nUnit>-->
+ <!--<partCover>C:\\Program Files\PartCover\\PartCover .NET 4.0\\PartCover.exe</partCover>-->
<assemblyName>${project.build.directory}/test-assemblies/NPanday.Model.Settings-test.dll</assemblyName>
- </configuration>
+ <!--<msxsl>C:\\WINDOWS\\msxsl.exe</msxsl>-->
+ <!--<xslt>C:\\Program Files\\PartCover\\PartCover .NET 4.0\\xslt\\Report By Assembly.xslt"<xslt>-->
+ </configuration>
<executions>
<execution>
<goals>
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/pom.xml?rev=1059875&r1=1059874&r2=1059875&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/pom.xml (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/pom.xml Mon Jan 17 11:13:28 2011
@@ -101,8 +101,12 @@ under the License.
<groupId>npanday.plugin</groupId>
<artifactId>partcover-maven-plugin</artifactId>
<configuration>
+ <!--<nUnit>C:\\Program Files\\NUnit 2.5.7\\bin\net-2.0\\nunit-console.exe</nUnit>-->
+ <!--<partCover>C:\\Program Files\PartCover\\PartCover .NET 4.0\\PartCover.exe</partCover>-->
<assemblyName>${project.build.directory}/test-assemblies/NPanday.ProjectImporterEngine-test.dll</assemblyName>
- </configuration>
+ <!--<msxsl>C:\\WINDOWS\\msxsl.exe</msxsl>-->
+ <!--<xslt>C:\\Program Files\\PartCover\\PartCover .NET 4.0\\xslt\\Report By Assembly.xslt"<xslt>-->
+ </configuration>
<executions>
<execution>
<goals>
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/pom.xml?rev=1059875&r1=1059874&r2=1059875&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/pom.xml (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/pom.xml Mon Jan 17 11:13:28 2011
@@ -137,10 +137,11 @@ under the License.
<groupId>npanday.plugin</groupId>
<artifactId>partcover-maven-plugin</artifactId>
<configuration>
- <!--<nUnit>C:\Program Files\NUnit 2.5.7\bin\net-2.0\nunit-console.exe</nUnit>-->
- <!--<partCover>C:\Program Files\PartCover\PartCover .NET 4.0\PartCover.exe</partCover>-->
+ <!--<nUnit>C:\\Program Files\\NUnit 2.5.7\\bin\net-2.0\\nunit-console.exe</nUnit>-->
+ <!--<partCover>C:\\Program Files\PartCover\\PartCover .NET 4.0\\PartCover.exe</partCover>-->
<assemblyName>${project.build.directory}/test-assemblies/NPanday.VisualStudio.Addin-test.dll</assemblyName>
- <!--<msxsl>C:\WINDOWS\msxsl.exe</msxsl>-->
+ <!--<msxsl>C:\\WINDOWS\\msxsl.exe</msxsl>-->
+ <!--<xslt>C:\\Program Files\\PartCover\\PartCover .NET 4.0\\xslt\\Report By Assembly.xslt"<xslt>-->
</configuration>
<executions>
<execution>
Modified: incubator/npanday/trunk/plugins/partcover-maven-plugin/src/main/java/npanday/plugin/partcover/PartCoverConverterMojo.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/partcover-maven-plugin/src/main/java/npanday/plugin/partcover/PartCoverConverterMojo.java?rev=1059875&r1=1059874&r2=1059875&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/partcover-maven-plugin/src/main/java/npanday/plugin/partcover/PartCoverConverterMojo.java (original)
+++ incubator/npanday/trunk/plugins/partcover-maven-plugin/src/main/java/npanday/plugin/partcover/PartCoverConverterMojo.java Mon Jan 17 11:13:28 2011
@@ -49,33 +49,29 @@ public class PartCoverConverterMojo
/**
* The path where msxsl.exe file is located.
- * This executable converts the xml report to a more readable html report.
- * This should be added in the "C:/WINDOWS/msxsle.exe"
+ * This executable enables you to perform command line xsl transformations using the MS XSL processor
+ * This should be added in the "C:/WINDOWS/"
*
* @parameter expression="${msxsl}" default-value="C:\\WINDOWS\\msxsl.exe"
*/
private String msxsl;
-
+
+ /**
+ * The path where xslt file is located.
+ * This files converts the xml report to a more readable html report.
+ * @parameter expression="${xslt}" default-value="C:\\Program Files\\PartCover\\PartCover .NET 4.0\\xslt\\Report By Assembly.xslt"
+ * @required
+ */
+ private String xslt;
+
public void execute()
throws MojoExecutionException
{
try
{
- // copy resources
-
- copyFileToOutputDirectory( "/partcover-report-by-class.xslt", "partcover-report-by-class.xslt");
- copyFileToOutputDirectory( "/common-footer.xslt", "common-footer.xslt" );
- copyFileToOutputDirectory( "/common-header.xslt", "common-header.xslt" );
- copyFileToOutputDirectory( "/common-partcover-report.xslt", "common-partcover-report.xslt" );
- copyFileToOutputDirectory( "/partcover-report-by-assembly.xslt", "partcover-report-by-assembly.xslt" );
- copyFileToOutputDirectory( "/coverage-report.css", "coverage-report.css" );
-
- // convert xml result using xslt;
-
- String line = " \"" + msxsl + "\" \"" + outputDirectory + "/coverage.xml\" \"" + outputDirectory
- + "/common-partcover-report.xslt\" -o \"" + outputDirectory + "/coverage.html\"";
-
+ String line = " \"" + msxsl + "\" \"" + outputDirectory + "/coverage.xml\" \""
+ + xslt + "\" -o \"" + outputDirectory + "/coverage.html\"";
int exitValue = executeCommandLine( line );
Modified: incubator/npanday/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/pom.xml?rev=1059875&r1=1059874&r2=1059875&view=diff
==============================================================================
--- incubator/npanday/trunk/pom.xml (original)
+++ incubator/npanday/trunk/pom.xml Mon Jan 17 11:13:28 2011
@@ -480,7 +480,6 @@ under the License.
<exclude>**/**.resx</exclude>
<exclude>**/**.txt</exclude>
<exclude>**/**.css</exclude>
- <exclude>**/**.xslt</exclude>
<exclude>**/**.snk</exclude>
<exclude>**/**.sln</exclude>
<exclude>netplugins/**/target/**/*</exclude>