[
https://issues.jboss.org/browse/SHRINKDESC-136?page=com.atlassian.jira.pl...
]
Ralf Battenfeld commented on SHRINKDESC-136:
--------------------------------------------
Super:-)
Test fails under windows - space in directory name
--------------------------------------------------
Key: SHRINKDESC-136
URL:
https://issues.jboss.org/browse/SHRINKDESC-136
Project: ShrinkWrap Descriptors
Issue Type: Bug
Components: test
Affects Versions: 2.0.0-alpha-4
Environment: win7 x64
Reporter: Michal Matloka
{noformat}
Tests in error:
deprecatedFromFile(org.jboss.shrinkwrap.descriptor.api.DescriptorImporterTestCase):
Specified file does not exist or is a directory:
I:\Dev\JBoss\shrinkwrap%20descriptors\impl-base\target\test-classes\test.xml
{noformat}
Problem lies in space in one directories name. Changing
{noformat}
new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath() +
"test.xml"));
{noformat}
to
{noformat}new
File(this.getClass().getProtectionDomain().getCodeSource().getLocation().toURI().getPath()
+ "test.xml"));
{noformat}
solves problems with this test.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira