Skip to content

Commit

Permalink
Java instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Sep 13, 2022
1 parent b17766f commit 8e72b7c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Rerwiting frontend files
== Rewriting frontend files

The frontend tool is in the `frontend folder`
The frontend tool is in the `frontend` folder

To test this tool, do the setup dance once

Expand All @@ -18,6 +18,17 @@ node convert.js in/grid-columns.js

This will convert `in/grid-columns.js` into a Lit element and place the output in `in/grid-columns.out.js`

== The Java version
== Rewriting Java files

Coming soon
The Java tool is in the `java` folder

To test this tool, do the setup dance once
```
cd java
mvn package
```

Then run it and give it a PolymerTemplate Java file
```
mvn exec:exec -Dfile=/my/project/src/main/java/my/package/MyTemplate.java
```
21 changes: 20 additions & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<version.roaster>2.26.0.Final</version.roaster>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.source>${java.version}</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.jupiter.version>5.9.0</junit.jupiter.version>
<junit.platform.version>1.8.1</junit.platform.version>
</properties>
Expand Down Expand Up @@ -63,7 +64,25 @@
<version>${version.roaster}</version>
<scope>runtime</scope>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>org.vaadin.artur.polymertolit.Transformer</argument>
<argument>${file}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 8e72b7c

Please sign in to comment.