| Issue 207: | Plugin try to test files in .svn directory | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Maven 2 on cygwin and cmd on winxp.
What steps will reproduce the problem?
1. Create new project.
2. Import it to svn.
3. Checkout it.
4. call: mvn clean gwt-maven:compile site-deploy
When plugin start tests then fail with output:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running pl.koziolweb.wfm.AStandardNonGwtTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] [gwt-maven:test {execution: default}]
[INFO] source web.xml present -
z:\elixir\web-file-manager\wfm\src\main\webapp\WEB-INF\web.xml - using it
with embedded Tomcat
[INFO] establishing classpath list (buildClaspathList - scope = TEST)
[INFO] google.webtoolkit.home (gwtHome) set, using it for GWT dependencies
- C:\
gwt
[INFO] establishing classpath list (buildClaspathList - scope = TEST)
[INFO] google.webtoolkit.home (gwtHome) set, using it for GWT dependencies
- C:\
gwt
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] error attempting to run test -
gwtTest-pl.koziolweb.wfm..svn.text-base.AS
tandardNonGwtTest.java.cmd - error attempting to run test -
gwtTest-pl.koziolweb
.wfm..svn.text-base.AStandardNonGwtTest.java.cmd - Class not found
"pl/koziolweb
/wfm//svn/text-base/AStandardNonGwtTest/java"
I use last version of plugin.
|
|
,
May 25, 2009
Additional info I just test this bug(?) on Ubuntu 9.04 PL and I probably know why this script fail. On linux script use ls command that ignore hidden files/directories like .svn. On Windows dot prefix is not a hidden. Script doesn't ignore .svn because on windows this directory is not hidden. So now I have workaround: - I add skipTest to gwt-maven configuration in windows profile. - If I need to run tests I do it from IDE (Eclipse) because it not fail in this way. - On Linux I work as normal human ;) |
|
,
Jun 02, 2009
Thanks for the report. We will try to fix this for 2.0 final. |
|
,
Aug 04, 2009
I also worked around it by having Maven copy the sources to another folder, stripping the svn folders before it ran the gwt tests.
<build>
...
<testSourceDirectory>${basedir}/target/test-src</testSourceDirectory>
...
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/test-src</outputDirectory>
<resources>
<resource>
<directory>test</directory>
<excludes><exclude>**/.svn/**</exclude></excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
|
|
|
|