Problem with Eclipse IDE

20 views
Skip to first unread message

mpol...@dc.exa.unrc.edu.ar

unread,
May 28, 2020, 2:22:44 PM5/28/20
to Randoop Developers
Hi, I have a problem for run the latest version of Randoop (4.2.3) from Eclipse IDE.
For run in Eclipse, I need insert the .jar into classpath configuration and it works.
But, it is tedious, since every time I make a change to the randoop code, I need to re-generate the randoop jar. To do this takes at least a minute 

Anyone know a solution for execute into Eclipse?

Regards.

Mariano

Michael Ernst

unread,
May 31, 2020, 5:52:26 PM5/31/20
to randoop-developers
Mariano-

I think you are saying that running "./gradlew assemble" takes too long and you wish it were faster.  Is that correct?
(That sounds unrelated to Eclipse, unless you are asking whether the Gradle buildfile could be replaced by Eclipse configuration.)

I have a 6-year-old computer and "./gradlew assemble" finishes in 50 seconds to build from scratch or in 30 seconds after changing one file.  Most of that time (over 20 seconds) is spent in the compileJava task.  I'm not enough of a Gradle wizard to understand whether this is the fault of Gradle (that is, Gradle does a bad job with Java incremental builds) or the fault of the buildfile (that is, the buildfile is poorly written).  If someone can weigh in on that, I would be grateful for help in speeding up the Gradle build.

Mike

--
You received this message because you are subscribed to the Google Groups "Randoop Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to randoop-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/randoop-developers/a65117f0-1829-46a0-9f5f-a5045b80746e%40googlegroups.com.

Mariano Politano

unread,
Jun 1, 2020, 8:07:08 AM6/1/20
to randoop-d...@googlegroups.com
Hi Michael, thanks for your reply.

I want to replace the Gradle build file by the Eclipse configuration. So, I could run Randoop from eclipse and wouldn't need to run "./gradlew assemble".

Regards.

Mariano

Michael Ernst

unread,
Jun 1, 2020, 11:16:35 AM6/1/20
to randoop-developers
That is a question about Eclipse.  You should read the Gradle documentation to understand the existing Gradle buildfile, and the Eclipse documentation to learn how to write Eclipse build configuration.  Then you merely need to translate from one to the other, and you are done.  Good luck!

Mike

Michael Ernst

unread,
Jun 2, 2020, 10:39:53 AM6/2/20
to randoop-developers
Gradle has a bug in that when an annotation processor is used, Gradle never does incremental compilation.  This means that every javac invocation compiles every file.  You can pass `-proc:none` to disable annotation processing (add it to extraJavacFlags.  This will not warn you about certain errors in the Randoop source code, but it will make compilation faster.

Mike
Reply all
Reply to author
Forward
0 new messages