Discussion:
svnClientAdapter failed to build?
Shawn Jin
2010-09-17 15:09:17 UTC
Permalink
Hello,

I checked http://subclipse.tigris.org/svn/subclipse/trunk/svnClientAdapterRevision
4703 in Eclipse and tried to build the project, it firstly gave me
error like:
[javac]
/workspace_galilio/svnClientAdapter_latest/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java:323:
generics are not supported in -source 1.4
[javac] (use -source 5 or higher to enable generics)

I then changed targetJvm=1.4 to targetJvm=1.6 in build.properties to allow
the generics but then the following error message appears:

[javac]
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java:37:
package org.apache.subversion.javahl does not exist
[javac] import org.apache.subversion.javahl.ClientException;

It looks the org.apache.subversion.javahl package is missing. Could you
advise where I can find the library and what to do to get a successful build
of svnClientAdapter?

Thank you

Shawn

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661306

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Mark Phippard
2010-09-17 15:18:26 UTC
Permalink
This looks like a rookie mistake on my part. Sorry. I made a branch
of svnClientAdapter to work on SVN 1.7 support but I did not update
the usage of svn:externals in that branch so I have been committing my
changes to trunk.

Please just run:

$ svn up -r4658

This will put your working copy back where trunk is supposed to be. I
will work on merging my changes over to the branch they belong and
getting trunk back to where it was at 4658.

Mark
Post by Shawn Jin
Hello,
I checked http://subclipse.tigris.org/svn/subclipse/trunk/svnClientAdapter
Revision 4703 in Eclipse and tried to build the project, it firstly gave me
  [javac]
generics are not supported in -source 1.4
  [javac] (use -source 5 or higher to enable generics)
I then changed targetJvm=1.4 to targetJvm=1.6 in build.properties to allow
[javac]
package org.apache.subversion.javahl does not exist
[javac] import org.apache.subversion.javahl.ClientException;
It looks the org.apache.subversion.javahl package is missing. Could you
advise where I can find the library and what to do to get a successful build
of svnClientAdapter?
Thank you
Shawn
--
Thanks

Mark Phippard
http://markphip.blogspot.com/

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661310

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Shawn Jin
2010-09-17 15:25:06 UTC
Permalink
Mark,

Thanks for the prompt reply. However I am seeing other issues building
r4658... Do you have a patch for that?
compile:
[mkdir] Created dir:
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/build/classes/main
[javac] Compiling 48 source files to
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/build/classes/main
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Compiling 23 source files to
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/build/classes/main
[javac]
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/src/javahl/org/tigris/subversion/svnclientadapter/javahl/JhlClientAdapter.java:95:
warning: non-varargs call of varargs method with inexact argument type for
last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress
this warning
[javac] new String[] { fsType, target }));
[javac] ^
[javac] Note:
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/src/javahl/org/tigris/subversion/svnclientadapter/javahl/AbstractJhlClientAdapter.java
uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[javac] Compiling 3 source files to
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/build/classes/main
[javac] Compiling 27 source files to
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/build/classes/main
[javac]
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/src/commandline/org/tigris/subversion/svnclientadapter/commandline/CmdLineClientAdapter.java:69:
org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter is
not abstract and does not override abstract method
diffSummarize(java.io.File,org.tigris.subversion.svnclientadapter.SVNUrl,org.tigris.subversion.svnclientadapter.SVNRevision,boolean)
in org.tigris.subversion.svnclientadapter.ISVNClientAdapter
[javac] public class CmdLineClientAdapter extends AbstractClientAdapter {
[javac] ^
[javac] Note:
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/src/commandline/org/tigris/subversion/svnclientadapter/commandline/SvnCommandLine.java
uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
/scratch/xujin/workspace_galilio/svnClientAdapter_latest/build.xml:71:
Compile failed; see the compiler error output for details.

Shawn
Post by Mark Phippard
This looks like a rookie mistake on my part. Sorry. I made a branch
of svnClientAdapter to work on SVN 1.7 support but I did not update
the usage of svn:externals in that branch so I have been committing my
changes to trunk.
$ svn up -r4658
This will put your working copy back where trunk is supposed to be. I
will work on merging my changes over to the branch they belong and
getting trunk back to where it was at 4658.
Mark
Post by Shawn Jin
Hello,
I checked
http://subclipse.tigris.org/svn/subclipse/trunk/svnClientAdapter
Post by Shawn Jin
Revision 4703 in Eclipse and tried to build the project, it firstly gave
me
Post by Shawn Jin
[javac]
generics are not supported in -source 1.4
[javac] (use -source 5 or higher to enable generics)
I then changed targetJvm=1.4 to targetJvm=1.6 in build.properties to
allow
Post by Shawn Jin
[javac]
package org.apache.subversion.javahl does not exist
[javac] import org.apache.subversion.javahl.ClientException;
It looks the org.apache.subversion.javahl package is missing. Could you
advise where I can find the library and what to do to get a successful
build
Post by Shawn Jin
of svnClientAdapter?
Thank you
Shawn
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661310
To unsubscribe from this discussion, e-mail: [
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661313

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Mark Phippard
2010-09-17 15:34:17 UTC
Permalink
Current HEAD of trunk compiles for me in Eclipse.
Post by Shawn Jin
warning: non-varargs call of varargs method with inexact argument type for
last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress
this warning
[javac] new String[] { fsType, target }));
Do not know what this is. I do not get a problem here.
Post by Shawn Jin
org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter is
not abstract and does not override abstract method
We do not use the CmdLine adapter any more so it regularly gets errors
where it does not implement methods define in the interface. I just
committed stubs for the missing methods. No more compile errors for
me.
--
Thanks

Mark Phippard
http://markphip.blogspot.com/

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661323

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Shawn Jin
2010-09-17 15:52:26 UTC
Permalink
Mark,

The HEAD of trunk works now. Thank you!

Shawn
Post by Mark Phippard
Current HEAD of trunk compiles for me in Eclipse.
Post by Shawn Jin
warning: non-varargs call of varargs method with inexact argument type
for
Post by Shawn Jin
last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress
this warning
[javac] new String[] { fsType, target }));
Do not know what this is. I do not get a problem here.
Post by Shawn Jin
org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter
is
Post by Shawn Jin
not abstract and does not override abstract method
We do not use the CmdLine adapter any more so it regularly gets errors
where it does not implement methods define in the interface. I just
committed stubs for the missing methods. No more compile errors for
me.
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661323
To unsubscribe from this discussion, e-mail: [
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661329

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
jcompagner
2010-09-17 15:54:21 UTC
Permalink
cool ;) how is it with 1.7?
This looks like a rookie mistake on my part.  Sorry.  I made a branch
of svnClientAdapter to work on SVN 1.7 support but I did not update
the usage of svn:externals in that branch so I have been committing my
changes to trunk.
$ svn up -r4658
This will put your working copy back where trunk is supposed to be.  I
will work on merging my changes over to the branch they belong and
getting trunk back to where it was at 4658.
Mark
Post by Shawn Jin
Hello,
I checked http://subclipse.tigris.org/svn/subclipse/trunk/svnClientAdapter
Revision 4703 in Eclipse and tried to build the project, it firstly gave me
  [javac]
generics are not supported in -source 1.4
  [javac] (use -source 5 or higher to enable generics)
I then changed targetJvm=1.4 to targetJvm=1.6 in build.properties to allow
[javac]
package org.apache.subversion.javahl does not exist
[javac] import org.apache.subversion.javahl.ClientException;
It looks the org.apache.subversion.javahl package is missing. Could you
advise where I can find the library and what to do to get a successful build
of svnClientAdapter?
Thank you
Shawn
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661310
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661330

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Mark Phippard
2010-09-17 16:07:32 UTC
Permalink
Post by jcompagner
cool ;) how is it with 1.7?
Have only done a little so far. The JavaHL package namespace was
moved to org.apache and they took the rename as an opportunity to redo
a lot of the API and use Java 5 features etc. So much of the work was
just making code compile with the changes.

The big thing for 1.7 is the change to the WC to only have a single
.svn folder. I made some initial changes for that but there is more
that will need to be done for our app to work right.

The good news is that a lot of problems simply go away because of
this. For example, copy and pasting a folder works becaue there is no
.svn folder to be included.

The bad news is that we were able to watch for changes in those .svn
folders to know when we need to rebuild caches and trigger status
updates. So we have to figure out a new approach for doing this
better.
--
Thanks

Mark Phippard
http://markphip.blogspot.com/

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2661336

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Loading...