You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Florian Holeczek <fl...@holeczek.de> on 2008/03/21 15:57:51 UTC

Bug in build.xml?

Hi developers,

I just wanted to run the dist target and got the following error:

> srczip:
>    [delete] Deleting directory C:\TEMP\Florian Holeczek\JSPWiki\svnsrc
>
> BUILD FAILED
> C:\eclipse_workspace\JSPWiki\build.xml:458: Execute failed:
> java.io.IOException: CreateProcess: svn export
> http://svn.apache.org/repos/asf/incubator/jspwiki/trunk
> C:\TEMP\/Florian Holeczek/JSPWiki/svnsrc error=2

Seems as if there's one slash/backslash too much somewhere.

Regards,
 Florian

Re: Bug in build.xml?

Posted by Florian Holeczek <fl...@holeczek.de>.
I've created JSPWIKI-219 on this and attached a patch for build.xml.

Regards,
 Florian


Re: Bug in build.xml?

Posted by Florian Holeczek <fl...@holeczek.de>.
> Works on OSX and Linux, so it's probably not the Ant file. Error 2
> on Windows is "no such program". So do you have the svn executable
> in your path?
> /Janne

Thanks, that was it, too, but there's another problem!

I didn't know that the win32 SVN client has to be installed, too.
Thought Subclipse was enough.
Hint for others who may be running into this problem, too: If Eclipse
crashes after the svn client installation, have a look at
http://subclipse.tigris.org/faq.html#win32-crash

After installing the svn client, I got the following error:
> srczip:
>    [delete] Deleting directory C:\TEMP\Florian Holeczek\JSPWiki\svnsrc
>      [exec] svn: Fehler des Client beim Einlesen der Parameter
>      [exec] Result: 1
>
> BUILD FAILED
> C:\eclipse_workspace\JSPWiki\build.xml:462: C:\TEMP\Florian
> Holeczek\JSPWiki\svnsrc not found.

Testing the svn command line call (svn export
http://svn.apache.org/repos/asf/incubator/jspwiki/trunk
C:\TEMP\/Florian Holeczek/JSPWiki/svnsrc), I found out that not even
the \/ is the problem, but the blank in the destination path, meaning
that the build.xml command will have to be modified so that the
destination path is enclosed by quotes.
("C:\TEMP\/Florian Holeczek/JSPWiki/svnsrc")

Regards,
 Florian

Re: Bug in build.xml?

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
>> C:\eclipse_workspace\JSPWiki\build.xml:458: Execute failed:
>> java.io.IOException: CreateProcess: svn export
>> http://svn.apache.org/repos/asf/incubator/jspwiki/trunk
>> C:\TEMP\/Florian Holeczek/JSPWiki/svnsrc error=2
>
> Seems as if there's one slash/backslash too much somewhere.

Works on OSX and Linux, so it's probably not the Ant file.   Error 2  
on Windows is "no such program".  So do you have the svn executable  
in your path?

/Janne