[ http://jira.codehaus.org/browse/MEXEC-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jerome Lacoste closed MEXEC-33. ------------------------------- Assignee: Jerome Lacoste Resolution: Fixed I've fixed it the same way the exec:exec mojo works, i.e. using a classpathScope parameter. The code was refactored to use the same code. I fixed an error in which I was using the getArtifacts() method instead of getCompileArtifacts() method, which could have caused some issues. The code is ugly... The new functionality comes with a test project that unfortunately isn't automated yet. Blame lack of proper integration tests. svn commit -m "MEXEC-33 support classpathScope in exec:java mojo as well." Sending src/main/java/org/codehaus/mojo/exec/AbstractExecMojo.java Sending src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java Sending src/main/java/org/codehaus/mojo/exec/ExecMojo.java Sending src/test/java/org/codehaus/mojo/exec/ExecJavaMojoTest.java Sending src/test/projects/project13/pom.xml Adding src/test/projects/project14 Adding src/test/projects/project14/output.txt Adding src/test/projects/project14/pom.xml Adding src/test/projects/project14/src Adding src/test/projects/project14/src/test Adding src/test/projects/project14/src/test/java Adding src/test/projects/project14/src/test/java/org Adding src/test/projects/project14/src/test/java/org/codehaus Adding src/test/projects/project14/src/test/java/org/codehaus/mojo Adding src/test/projects/project14/src/test/java/org/codehaus/mojo/exec Adding src/test/projects/project14/src/test/java/org/codehaus/mojo/exec/test1 Adding src/test/projects/project14/src/test/java/org/codehaus/mojo/exec/test1/Test.java Transmitting file data ........ Committed revision 6914. > includeTestScopeDependenciesAndSources parameter > ------------------------------------------------ > > Key: MEXEC-33 > URL: http://jira.codehaus.org/browse/MEXEC-33 > Project: Maven 2.x Exec Plugin > Issue Type: New Feature > Components: java > Affects Versions: 1.1-beta-1 > Reporter: Geoffrey De Smet > Assignee: Jerome Lacoste > Priority: Minor > Fix For: 1.1-beta-2 > > > Including test scope dependencies and sources in the classpath of exec:java > would be very usefull (to me at least :): > I have a CreateTestDataIntoMainDatabase class which is located in my test > sources dir and reuses some stuff from my unit tests. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email