In fact, the error is on the ValidXML test...
I've just reproduced the error while compiling under Windows XP...
Apparently the split function function doesn't like the sourceDir
String archivedFilePath =
currentFile.getAbsolutePath().split(sourceDir.getAbsolutePath() + File.*
separator*)[1];[info]
I must leave now, I will take a look at this later if you don't have a quick
solution...
Using the existing package.xml descriptor at
[I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\validXml\src\main\resources\package.xml]
*
java.util.regex.PatternSyntaxException*: Unknown character property name {e}
near index 4
I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\validXml\target\classes\
^
at java.util.regex.Pattern.error(*Pattern.java:1713*)
at java.util.regex.Pattern.charPropertyNodeFor(*Pattern.java:2437*)
at java.util.regex.Pattern.family(*Pattern.java:2412*)
at java.util.regex.Pattern.sequence(*Pattern.java:1831*)
at java.util.regex.Pattern.expr(*Pattern.java:1752*)
at java.util.regex.Pattern.compile(*Pattern.java:1460*)
at java.util.regex.Pattern.<init>(*Pattern.java:1133*)
at java.util.regex.Pattern.compile(*Pattern.java:823*)
at java.lang.String.split(*String.java:2293*)
at java.lang.String.split(*String.java:2335*)
at com.xpn.xwiki.tool.xar.XarMojo.addFilesToArchive(*XarMojo.java:340*)
at com.xpn.xwiki.tool.xar.XarMojo.performArchive(*XarMojo.java:124*)
at com.xpn.xwiki.tool.xar.XarMojo.execute(*XarMojo.java:76*)
at com.xpn.xwiki.tool.xar.XarMojoTest.testValidXml(*XarMojoTest.java:136*)
at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
at sun.reflect.NativeMethodAccessorImpl.invoke(*
NativeMethodAccessorImpl.java:39*)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
DelegatingMethodAccessorImpl.java:25*)
at java.lang.reflect.Method.invoke(*Method.java:597*)
at junit.framework.TestCase.runTest(*TestCase.java:164*)
at junit.framework.TestCase.runBare(*TestCase.java:130*)
at junit.framework.TestResult$1.protect(*TestResult.java:106*)
at junit.framework.TestResult.runProtected(*TestResult.java:124*)
at junit.framework.TestResult.run(*TestResult.java:109*)
at junit.framework.TestCase.run(*TestCase.java:120*)
at junit.framework.TestSuite.runTest(*TestSuite.java:230*)
at junit.framework.TestSuite.run(*TestSuite.java:225*)
at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
at sun.reflect.NativeMethodAccessorImpl.invoke(*
NativeMethodAccessorImpl.java:39*)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
DelegatingMethodAccessorImpl.java:25*)
at java.lang.reflect.Method.invoke(*Method.java:597*)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(*
JUnitTestSet.java:213*)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(*
AbstractDirectoryTestSuite.java:140*)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(*
AbstractDirectoryTestSuite.java:127*)
at org.apache.maven.surefire.Surefire.run(*Surefire.java:177*)
at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
at sun.reflect.NativeMethodAccessorImpl.invoke(*
NativeMethodAccessorImpl.java:39*)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
DelegatingMethodAccessorImpl.java:25*)
at java.lang.reflect.Method.invoke(*Method.java:597*)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(*
SurefireBooter.java:338*)
at org.apache.maven.surefire.booter.SurefireBooter.main(*
SurefireBooter.java:997*)
[info] Generating package.xml descriptor at
[I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\noXml\target\classes\package.xml]
[INFO] Building zip:
I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\noXml\target\xwiki-enterprise-wiki-test.xar
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.797 sec
<<< FAILURE!
Results :
Failed tests:
testValidXml(com.xpn.xwiki.tool.xar.XarMojoTest)
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0
On Mon, Jan 5, 2009 at 6:44 AM, Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
smithmarkl wrote:
Howdy,
I've checked out the source code HEAD revision from:
http://svn.xwiki.org/svnroot/xwiki/platform/trunks
I've installed Maven, setup my .../.m2/settings.xml, and am running "mvn
-Pwindows install".
The build seems to proceed part way, then one of the tests fails:
Running com.xpn.xwiki.tool.xar.XarMojoTest
[info] Using the existing package.xml descriptor at
[C:\temp\xwiki\tools\xwiki-x
ar-plugin\target\test-classes\malformedXml\src\main\resources\package.xml]
[error] The existing package.xml is invalid.
java.lang.Exception: The supplied document contains no document list
at
com.xpn.xwiki.tool.xar.XarMojo.getDocumentNamesFromXML(XarMojo.java:2
72)
at
com.xpn.xwiki.tool.xar.XarMojo.addFilesToArchive(XarMojo.java:321)
at
com.xpn.xwiki.tool.xar.XarMojo.performArchive(XarMojo.java:124)
at
com.xpn.xwiki.tool.xar.XarMojo.execute(XarMojo.java:76)
Any ideas?
Are you sure this is the error stopping the build? This error is normal,
it is actually expected in one of the tests. Which project is failing?
Check the test reports at target\surefire-reports\ for that project.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs