Author: lcorneliussen Date: Wed Jun 12 11:51:56 2013 New Revision: 1492162 URL: http://svn.apache.org/r1492162 Log: NPANDAY-575: Copy pdb files into test assembly directory Submitted by: Victor Stefoglo
Modified: incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java Modified: incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java?rev=1492162&r1=1492161&r2=1492162&view=diff ============================================================================== --- incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java (original) +++ incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java Wed Jun 12 11:51:56 2013 @@ -204,15 +204,18 @@ public class TesterMojo super.innerExecute(); String testFileName = ""; + String pdbTestFileName = ""; if(integrationTest) { getLog().info("NPANDAY-1100-000.1: Artifact is an Integration Test"); testFileName = project.getBuild().getDirectory() + File.separator + project.getArtifactId() + ".dll"; + pdbTestFileName = project.getBuild().getDirectory() + File.separator + project.getArtifactId() + ".pdb"; } else { testFileName = project.getBuild().getDirectory() + File.separator + project.getArtifactId() + "-test.dll"; + pdbTestFileName = project.getBuild().getDirectory() + File.separator + project.getArtifactId() + "-test.pdb"; } if ( !( new File( testFileName ).exists() ) ) @@ -269,6 +272,11 @@ public class TesterMojo try { FileUtils.copyFileToDirectory( new File( testFileName ), new File( testAssemblyPath ) ); + File pdbTestFile = new File( pdbTestFileName ); + if ( pdbTestFile.exists() ) + { + FileUtils.copyFileToDirectory( pdbTestFile, new File( testAssemblyPath ) ); + } } catch ( IOException e ) {