Skip to content

Commit 55abbec

Browse files
authored
Adding extension project to support MathML syntax through j2html. (#223)
- Based on PR #220 by matthew-mccall.
1 parent 94c8239 commit 55abbec

File tree

6 files changed

+775
-0
lines changed

6 files changed

+775
-0
lines changed

j2html-ext-mathml/.gitignore

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Created by https://www.gitignore.io
2+
3+
### Intellij ###
4+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
5+
6+
*.iml
7+
8+
## Directory-based project format:
9+
.idea/
10+
# if you remove the above rule, at least ignore the following:
11+
12+
# User-specific stuff:
13+
# .idea/workspace.xml
14+
# .idea/tasks.xml
15+
# .idea/dictionaries
16+
17+
# Sensitive or high-churn files:
18+
# .idea/dataSources.ids
19+
# .idea/dataSources.xml
20+
# .idea/sqlDataSources.xml
21+
# .idea/dynamic.xml
22+
# .idea/uiDesigner.xml
23+
24+
# Gradle:
25+
# .idea/gradle.xml
26+
# .idea/libraries
27+
28+
# Mongo Explorer plugin:
29+
# .idea/mongoSettings.xml
30+
31+
## File-based project format:
32+
*.ipr
33+
*.iws
34+
35+
## Plugin-specific files:
36+
37+
# IntelliJ
38+
/out/
39+
40+
# mpeltonen/sbt-idea plugin
41+
.idea_modules/
42+
43+
# JIRA plugin
44+
atlassian-ide-plugin.xml
45+
46+
# Crashlytics plugin (for Android Studio and IntelliJ)
47+
com_crashlytics_export_strings.xml
48+
crashlytics.properties
49+
crashlytics-build.properties
50+
51+
52+
### Windows ###
53+
# Windows image file caches
54+
Thumbs.db
55+
ehthumbs.db
56+
57+
# Folder config file
58+
Desktop.ini
59+
60+
# Recycle Bin used on file shares
61+
$RECYCLE.BIN/
62+
63+
# Windows Installer files
64+
*.cab
65+
*.msi
66+
*.msm
67+
*.msp
68+
69+
# Windows shortcuts
70+
*.lnk
71+
72+
73+
### Java ###
74+
*.class
75+
76+
# Mobile Tools for Java (J2ME)
77+
.mtj.tmp/
78+
79+
# Package Files #
80+
*.jar
81+
*.war
82+
*.ear
83+
84+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
85+
hs_err_pid*
86+
87+
88+
### Maven ###
89+
target/
90+
pom.xml.tag
91+
pom.xml.releaseBackup
92+
pom.xml.versionsBackup
93+
pom.xml.next
94+
release.properties
95+
dependency-reduced-pom.xml
96+
97+
### Eclipse ###
98+
.classpath
99+
.project
100+
.settings/
101+
buildNumber.properties

j2html-ext-mathml/pom.xml

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>com.j2html</groupId>
8+
<artifactId>j2html-parent</artifactId>
9+
<version>1.6.1-SNAPSHOT</version>
10+
</parent>
11+
12+
<name>j2html-ext-mathml</name>
13+
<artifactId>j2html-ext-mathml</artifactId>
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>junit</groupId>
18+
<artifactId>junit</artifactId>
19+
<scope>test</scope>
20+
</dependency>
21+
22+
<dependency>
23+
<groupId>com.j2html</groupId>
24+
<artifactId>j2html</artifactId>
25+
<version>1.6.1-SNAPSHOT</version>
26+
</dependency>
27+
</dependencies>
28+
29+
<packaging>jar</packaging>
30+
31+
<build>
32+
<plugins>
33+
<plugin>
34+
<groupId>com.j2html</groupId>
35+
<artifactId>j2html-codegen-maven-plugin</artifactId>
36+
<version>1.6.1-SNAPSHOT</version>
37+
<executions>
38+
<execution>
39+
<goals>
40+
<goal>generate-source-files</goal>
41+
</goals>
42+
</execution>
43+
</executions>
44+
<configuration>
45+
<modelFile>${project.basedir}/src/main/models/mathml.model</modelFile>
46+
<attributePackage>com.j2html.mathml.attributes</attributePackage>
47+
<tagPackage>com.j2html.mathml.tags</tagPackage>
48+
</configuration>
49+
</plugin>
50+
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-compiler-plugin</artifactId>
54+
</plugin>
55+
56+
<plugin>
57+
<groupId>org.apache.maven.plugins</groupId>
58+
<artifactId>maven-release-plugin</artifactId>
59+
<executions>
60+
<execution>
61+
<id>default</id>
62+
<goals>
63+
<goal>perform</goal>
64+
</goals>
65+
<configuration>
66+
<pomFileName>pom.xml</pomFileName>
67+
</configuration>
68+
</execution>
69+
</executions>
70+
</plugin>
71+
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-enforcer-plugin</artifactId>
75+
</plugin>
76+
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-javadoc-plugin</artifactId>
80+
</plugin>
81+
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-jar-plugin</artifactId>
85+
<configuration>
86+
<archive>
87+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
88+
<manifest>
89+
<addClasspath>true</addClasspath>
90+
</manifest>
91+
<manifestEntries>
92+
<Automatic-Module-Name>com.j2html</Automatic-Module-Name>
93+
</manifestEntries>
94+
</archive>
95+
</configuration>
96+
</plugin>
97+
98+
<plugin>
99+
<groupId>org.apache.felix</groupId>
100+
<artifactId>maven-bundle-plugin</artifactId>
101+
<executions>
102+
<execution>
103+
<id>bundle-manifest</id>
104+
<phase>process-classes</phase>
105+
<goals>
106+
<goal>manifest</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
111+
112+
<!--plugin>
113+
<groupId>org.revapi</groupId>
114+
<artifactId>revapi-maven-plugin</artifactId>
115+
<configuration>
116+
<oldArtifacts>
117+
<artifact>com.j2html:j2html-ext-mathml:1.6.0</artifact>
118+
</oldArtifacts>
119+
<analysisConfiguration>
120+
<revapi.differences>
121+
<differences>
122+
123+
</differences>
124+
</revapi.differences>
125+
</analysisConfiguration>
126+
</configuration>
127+
</plugin-->
128+
</plugins>
129+
</build>
130+
</project>

0 commit comments

Comments
 (0)