Skip to content

Commit

Permalink
Merge pull request #749 from volodya-lombrozo/618_eo_printing
Browse files Browse the repository at this point in the history
Enable EO Printing in 'bytecode-to-eo' IT
  • Loading branch information
volodya-lombrozo authored Oct 9, 2024
2 parents 23807e5 + 774925d commit a21c963
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 30 deletions.
42 changes: 13 additions & 29 deletions src/it/bytecode-to-eo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,47 +67,31 @@ SOFTWARE.
</execution>
</executions>
</plugin>
<!--
@todo #610:30min Enable EO Printing in 'bytecode-to-eo' it.
The `print` goal is currently disabled because it doesn't
support Java 8. You can read more about it right here:
https://github.com/objectionary/eo/issues/3207
Once it is implemented, this comment should be removed and the goal
should be enabled. Don't forget to enable checks in `verify.groovy`
file related to `.eo` files. Now they are commented.
-->
<!-- <plugin>-->
<!-- <groupId>org.eolang</groupId>-->
<!-- <artifactId>eo-maven-plugin</artifactId>-->
<!-- <version>0.39.0</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>convert-xmir-to-eo</id>-->
<!-- <phase>process-classes</phase>-->
<!-- <goals>-->
<!-- <goal>print</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <printSourcesDir>${project.build.directory}/generated-sources/jeo-xmir</printSourcesDir>-->
<!-- <printOutputDir>${project.build.directory}/generated-sources/jeo-eo</printOutputDir>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<plugin>
<groupId>org.eolang</groupId>
<artifactId>eo-maven-plugin</artifactId>
<version>0.39.1</version>
<executions>
<execution>
<id>convert-xmir-to-eo</id>
<id>convert-xmir-to-phi</id>
<phase>process-classes</phase>
<goals>
<goal>xmir-to-phi</goal>
</goals>
<configuration>
<phiInputDir>${project.build.directory}/generated-sources/jeo-xmir</phiInputDir>
<phiOutputDir>${project.build.directory}/generated-sources/jeo-eo</phiOutputDir>
<phiOutputDir>${project.build.directory}/generated-sources/jeo-phi</phiOutputDir>
</configuration>
</execution>
<execution>
<id>convert-xmir-to-eo</id>
<phase>process-classes</phase>
<goals>
<goal>print</goal>
</goals>
<configuration>
<printSourcesDir>${project.build.directory}/generated-sources/jeo-xmir</printSourcesDir>
<printOutputDir>${project.build.directory}/generated-sources/jeo-eo</printOutputDir>
</configuration>
</execution>
</executions>
Expand Down
3 changes: 2 additions & 1 deletion src/it/bytecode-to-eo/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ assert log.contains("WithoutPackage.class' disassembled to ")
assert log.contains("BUILD SUCCESS")
//Check that we have generated XMIR object file.
assert new File(basedir, 'target/generated-sources/jeo-xmir/org/eolang/jeo/Application.xmir').exists()
//assert new File(basedir, 'target/generated-sources/jeo-eo/org/eolang/jeo/Application.eo').exists()
assert new File(basedir, 'target/generated-sources/jeo-eo/org/eolang/jeo/Application.eo').exists()
assert new File(basedir, 'target/generated-sources/jeo-phi/org/eolang/jeo/Application.phi').exists()
true

1 comment on commit a21c963

@0pdd
Copy link

@0pdd 0pdd commented on a21c963 Oct 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 610-17d90f0c disappeared from src/it/bytecode-to-eo/pom.xml), that's why I closed #618. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

Please sign in to comment.