Details
Description
<testCases>true</testCases> <runTestCasesAsUnitTests>true</runTestCasesAsUnitTests>
The generated test-cases are not generated in the correct dir : the dir doesn't match the package of the class files. It seems package space is partially used
-
- axis-19-patch.txt
- 31/Mar/10 3:08 AM
- 2 kB
- David Pilato
-
Hide
- axistools-maven-plugin-1.3.CIDPATCH.jar
- 31/Mar/10 3:05 AM
- 46 kB
- David Pilato
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/maven/plugin.xml 38 kB
- org/codehaus/.../admin/AdminPlugin.class 0.9 kB
- org/codehaus/.../admin/AdminWrapper.class 3 kB
- org/codehaus/.../DefaultAdminPlugin.class 3 kB
- org/codehaus/.../axistools/AdminMojo.class 2 kB
- org/codehaus/.../AbstractAxisPlugin.class 3 kB
- org/codehaus/.../AxisPluginException.class 0.7 kB
- org/codehaus/mojo/.../axis/Mapping.class 1 kB
- org/codehaus/.../axistools/HelpMojo.class 15 kB
- org/.../DefaultJava2WSDLPlugin.class 8 kB
- org/codehaus/.../Java2WSDLPlugin.class 1 kB
- org/codehaus/.../Java2WSDLWrapper.class 0.8 kB
- org/codehaus/.../Java2WSDLMojo.class 4 kB
- org/codehaus/.../axistools/Mapping.class 0.3 kB
- org/.../DefaultWSDL2JavaPlugin.class 18 kB
- org/codehaus/.../WSDL2JavaPlugin.class 2 kB
- org/codehaus/.../WSDL2JavaWrapper.class 2 kB
- org/codehaus/.../WSDL2JavaMojo.class 5 kB
- META-INF/maven/.../pom.xml 7 kB
- META-INF/maven/.../pom.properties 0.1 kB
Activity
Hide
David Pilato
added a comment -
Thanks Dominique for the Patch.
I attached here the Patched JAR if it could be useful for someone.
Show
David Pilato
added a comment - Thanks Dominique for the Patch.
I attached here the Patched JAR if it could be useful for someone.
Show
David Pilato
added a comment - Here is also the Patch File
Hide
Dennis Lundberg
added a comment -
The problem is that the plugin doesn't take into account the package directory of test source files when they are copied. So your patch will not work for test source files that belong to a package.
Show
Dennis Lundberg
added a comment - The problem is that the plugin doesn't take into account the package directory of test source files when they are copied. So your patch will not work for test source files that belong to a package.
Hide
Dennis Lundberg
added a comment -
Fixed in r12405.
I will deploy a 1.4-SNAPSHOT within 24 hours. Please test that the new version solves the problem for you.
Show
Dennis Lundberg
added a comment - Fixed in r12405.
I will deploy a 1.4-SNAPSHOT within 24 hours. Please test that the new version solves the problem for you.
Show
Dennis Lundberg
added a comment - The 1.4-SNAPSHOT has now been deployed.
Please find patch here. You can find below the new method that handles correctly the destination dir of generated test cases, so that mvn eclipse:eclipse will work correctly
private void migrateTestSource()
throws AxisPluginException
{
String path = StringUtils.replace(packageSpace, '.', File.separatorChar);
File testSourceDirectoryIncludingPackageName = new File(testSourceDirectory, path);
if ( !testSourceDirectoryIncludingPackageName.exists() )
{ testSourceDirectoryIncludingPackageName.mkdirs(); }Set testSources = locateTestSources();
for ( Iterator iter = testSources.iterator(); iter.hasNext(); )
{
File source = (File) iter.next();
try
{ FileUtils.copyFileToDirectory( source, testSourceDirectoryIncludingPackageName ); FileUtils.fileDelete( source.getAbsolutePath() ); }catch ( IOException ioe )
{ throw new AxisPluginException( "error copying test sources", ioe ); }}
project.addTestCompileSourceRoot( testSourceDirectory.getPath() );
}