#1735 closed defect (fixed)
[patch] Build process: Ant does not find svn executable
Reported by: | stephankn | Owned by: | stoecker |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | unspecified | Version: | latest |
Keywords: | Cc: |
Description
in change 1079 a svn call was added to build script.
Here (Windows with Eclipse) it can not be found
[exec] Execute failed: java.io.IOException: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified
without trying, I think putting svn on the path will resolve this. Will do that later. But my typical Eclipse setup does not contain that binary because it is not needed. subversive with polarion connector handles SVN quite well.
svnant might be the thing you really wanted. It adds svn functionality. It uses either javahl or svn executable.
http://subclipse.tigris.org/svnant.html
I set priority to critical because the generated manifest is wrong.
Attachments (1)
Change History (6)
comment:1 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 17 years ago
I would consider that as an ant bug because the <exec> task running svn is marked as failifexecutionfails="false" (do not throw an error if executable does not exist).
Therefore everthing should be fine if the svn binary is not avaialable - but it isn't.
It looks like this flag isn't effective in the current ant versions (bug in ant?).
comment:3 by , 16 years ago
No, this is no problem with ant. A jar is created, but version information is missing.
comment:4 by , 16 years ago
Summary: | Build process: Ant does not find svn executable → [patch] Build process: Ant does not find svn executable |
---|
I created a patch to fix this. It is needed to put svnant libs into the lib directory.
Download svnant: http://subclipse.tigris.org/files/documents/906/43359/svnant-1.2.1.zip
Put the following libs into josm lib directory:
svnant.jar
svnClientAdapter.jar
svnjavahl.jar
svnkit.jar
This ant task tries using svn in the following order: javahl, svnkit, svn(.exe) in path
by , 16 years ago
Attachment: | josm-1735-svnant.patch added |
---|
patch to fix build process by using svnant
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Release r1141 fixes wrong manifest.
SVN may fail. This is not critical.
Patches welcome. This is the same mechanism as used for all the plugins.