-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Java Plugin to the Gradle build #46
Comments
I added a Gradle script for compilation and test execution. I compared the number of tests executed and both (Gradle and Ant) are consistent. However, only 75% of tests are passing on the Gradle build. @Test
public void testMethodArgs() {
File file = new File("build/tests/gov/nasa/jpf/jvm/MethodInfoTest$MyClass.class"); The build directory generated by Gradle has a different layout. |
I found similar entry lines in the standard output of other tests:
|
I made some marginal improvement by making the generated directory three similar to the ant-generated build directories. Now, 78% of tests pass. This means that only 3% depends on a compiled class file as a test resource (passing now, since the .class files exist on the expected place) I must work on this to have 100% of tests passing. I wonder if jar dependent tests shouldn't be considered integration tests and be executed only in a later stage of the build cycle. |
* Added settings.gradle file * Added support to Java gradle plugin (#46) * Added fork configuration (#46) * Updated classpath settings and generated directories (#46) * Temporarily ignoring failing tests (#46) * Created compile task and marked it as the default task (#46) * Updated travis configuration for Gradle
Let's try to get the paths fixed by eliminating hard-coded paths wherever possible. |
Alright, I'm closing this issue for now, since changes were merged. |
The Gradle Java plugin already has common build tasks for Java/JVM project such as generating jars, compiling classes, and so on. Also, it is configurable to support jpf project layout.
More info: https://docs.gradle.org/current/userguide/tutorial_java_projects.html
The text was updated successfully, but these errors were encountered: