Modify

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#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)

josm-1735-svnant.patch (1.3 KB ) - added by stephankn 16 years ago.
patch to fix build process by using svnant

Download all attachments as: .zip

Change History (6)

comment:1 by stoecker, 17 years ago

Owner: changed from framm to stoecker
Status: newassigned

Patches welcome. This is the same mechanism as used for all the plugins.

comment:2 by anonymous, 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 stephankn, 16 years ago

No, this is no problem with ant. A jar is created, but version information is missing.

comment:4 by stephankn, 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 stephankn, 16 years ago

Attachment: josm-1735-svnant.patch added

patch to fix build process by using svnant

comment:5 by anonymous, 16 years ago

Resolution: fixed
Status: assignedclosed

Release r1141 fixes wrong manifest.

SVN may fail. This is not critical.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain stoecker.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.