Skip to content

Commit 393c6de

Browse files
committed
Revert "Release preparation"
This reverts commit eee0519.
1 parent eee0519 commit 393c6de

File tree

15 files changed

+30365
-0
lines changed

15 files changed

+30365
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
'on':
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
# sonarcloud:
11+
# name: SonarCloud Scan
12+
# runs-on: ubuntu-latest
13+
# steps:
14+
# - name: Git checkout
15+
# uses: actions/checkout@v2
16+
# - name: Use Java 11
17+
# uses: actions/setup-java@v1
18+
# with:
19+
# java-version: 11
20+
# - name: SonarCloud Scan
21+
# uses: jason-fox/sonarcloud-action@master
22+
# env:
23+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
# SONAR_CLOUD_LOGIN: ${{ secrets.SONAR_CLOUD_LOGIN }}
25+
26+
unit-test:
27+
name: Unit Tests
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Git checkout
31+
uses: actions/checkout@v2
32+
- name: Run DITA-OT Unit Test
33+
uses: jason-fox/dita-unit-test-action@master
34+
with:
35+
dita-ot-version: 3.6
36+
plugin: 'fox.jason.passthrough.doxygen'
37+
env:
38+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

pom.xml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>fox.jason</groupId>
5+
<artifactId>passthrough.doxygen</artifactId>
6+
<version>1.0</version>
7+
8+
<dependencies>
9+
<dependency>
10+
<groupId>org.apache.ant</groupId>
11+
<artifactId>ant</artifactId>
12+
<version>[1.10.9,)</version>
13+
</dependency>
14+
<dependency>
15+
<groupId>fox.jason</groupId>
16+
<artifactId>passthrough.parser</artifactId>
17+
<version>${passthrough-version}</version>
18+
<scope>system</scope>
19+
<systemPath>${project.basedir}/../fox.jason.passthrough/lib/passthrough.parser-${passthrough-version}.jar</systemPath>
20+
</dependency>
21+
</dependencies>
22+
23+
<properties>
24+
<passthrough-version>4.0</passthrough-version>
25+
<sonar.projectKey>fox.jason.passthrough.doxygen</sonar.projectKey>
26+
<sonar.organization>dita-ot-plugins</sonar.organization>
27+
<sonar.sources>src</sonar.sources>
28+
<sonar.java.binaries>target/classes/fox/jason/passthrough</sonar.java.binaries>
29+
<sonar.java.libraries>lib/ant-*.jar</sonar.java.libraries>
30+
<sonar.test.exclusions>test</sonar.test.exclusions>
31+
<sonar.cpd.exclusions>src/fox/jason/passthrough/**</sonar.cpd.exclusions>
32+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
33+
<sonar.flex.cobertura.reportPaths>coverage.xml</sonar.flex.cobertura.reportPaths>
34+
<sonar.exclusions>coverage.html,test-results.html,pom.xml,coverage.xml</sonar.exclusions>
35+
</properties>
36+
37+
<build>
38+
<sourceDirectory>src</sourceDirectory>
39+
<plugins>
40+
<plugin>
41+
<artifactId>maven-clean-plugin</artifactId>
42+
<version>3.1.0</version>
43+
<configuration>
44+
<filesets>
45+
<fileset>
46+
<directory>lib</directory>
47+
</fileset>
48+
</filesets>
49+
</configuration>
50+
</plugin>
51+
52+
<!-- Copy the runtime dependencies to the lib folder. -->
53+
<plugin>
54+
<artifactId>maven-dependency-plugin</artifactId>
55+
<version>2.8</version>
56+
<executions>
57+
<execution>
58+
<phase>generate-resources</phase>
59+
<goals>
60+
<goal>copy-dependencies</goal>
61+
</goals>
62+
<configuration>
63+
<outputDirectory>${basedir}/lib</outputDirectory>
64+
<includeScope>runtime</includeScope>
65+
</configuration>
66+
</execution>
67+
</executions>
68+
</plugin>
69+
70+
<plugin>
71+
<artifactId>maven-compiler-plugin</artifactId>
72+
<version>3.7.0</version>
73+
<configuration>
74+
<source>1.8</source>
75+
<target>1.8</target>
76+
</configuration>
77+
</plugin>
78+
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-jar-plugin</artifactId>
82+
<version>2.3.1</version>
83+
<configuration>
84+
<outputDirectory>${basedir}/lib</outputDirectory>
85+
</configuration>
86+
</plugin>
87+
88+
<plugin>
89+
<groupId>org.sonarsource.scanner.maven</groupId>
90+
<artifactId>sonar-maven-plugin</artifactId>
91+
<version>3.3.0.603</version>
92+
<executions>
93+
<execution>
94+
<phase>verify</phase>
95+
<goals>
96+
<goal>sonar</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
</plugins>
102+
</build>
103+
</project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package fox.jason.passthrough;
2+
3+
import java.io.File;
4+
import java.io.IOException;
5+
6+
public class DoxygenReader extends AntTaskFileReader {
7+
8+
public DoxygenReader() {
9+
}
10+
11+
private static final String ANT_FILE = "/../process_doxygen.xml";
12+
13+
@Override
14+
protected String runTarget(File inputFile, String title)
15+
throws IOException {
16+
return executeAntTask(
17+
calculateJarPath(DoxygenReader.class) + ANT_FILE,
18+
inputFile,
19+
title
20+
);
21+
}
22+
}

test/bootstrap.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
3+
<project name="unit-test.bootstrap">
4+
<!--
5+
Local definitions for dita.dir and test.root.dir are required to run
6+
individual tests locally.
7+
-->
8+
<dirname property="test.root.dir" file="${ant.file.unit-test.bootstrap}/.." />
9+
<property name="dita.dir" location="${test.root.dir}/../.."/>
10+
<!--
11+
Load the unit testing library to make the macros available to the unit-tests
12+
-->
13+
<typedef file="${dita.dir}/plugins/fox.jason.unit-test/resource/antlib.xml"/>
14+
</project>

test/cppdoc/build.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<!--
3+
This file is part of the DITA-OT Doxygen Plug-in project.
4+
See the accompanying LICENSE file for applicable licenses.
5+
-->
6+
<project basedir="." default="unit-test">
7+
<import file="../bootstrap.xml"/>
8+
<description>
9+
Expect that C++ comments converted to a Doxygen file is generated to DITA
10+
</description>
11+
<target name="unit-test">
12+
<property name="file" value="${basedir}/out/doxygen.xml"/>
13+
<exec-transtype transtype="dita"/>
14+
<xmltask expandEntityReferences="false" dest="${file}" outputter="simple" source="${file}">
15+
<xmlcatalog>
16+
<dtd publicId="-//OASIS//DTD DITA Topic//EN"
17+
location="../fake.dtd"/>
18+
</xmlcatalog>
19+
</xmltask>
20+
<compare-output suffix=".xml" result="${file}"/>
21+
</target>
22+
</project>
23+

test/cppdoc/document.ditamap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
3+
<bookmap>
4+
<appendices>
5+
<topicmeta>
6+
<navtitle>Appendices</navtitle>
7+
</topicmeta>
8+
<appendix format="dita" href="topic.dita">
9+
<topicref format="doxygen" type="topic" href="doxygen.xml"/>
10+
</appendix>
11+
</appendices>
12+
</bookmap>
13+
14+

0 commit comments

Comments
 (0)