Skip to content

Commit

Permalink
EXM-45509 Generate only offline help files
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-cercelaru committed May 15, 2020
1 parent aa690fd commit 83f95cd
Show file tree
Hide file tree
Showing 2 changed files with 301 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@
<target name="build-all" depends="build-webhelp-public, build-pdf, build-eclipsehelp, build-javahelp, build-chm">
<echo>Build All</echo>
</target>

<target name="build-offline-help" depends="build-eclipsehelp, build-javahelp, build-chm">
<echo>Build Offline Help</echo>
</target>

<!--
==================================
Expand Down
297 changes: 297 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,303 @@
</plugins>
</build>
</profile>

<profile>
<id>offline</id>
<activation>
<property>
<name>build-offline-help</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- Executes the transformation. -->
<execution>
<id>build-offline-help</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<ant antfile="${project.basedir}/build.xml" target="build-offline-help" />
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>

<!-- Deploy the artifacts that enter the installation kits -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>deploy-editor-eclipse-help</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>editorEclipseHelp</artifactId>
<file>${project.build.directory}/output/eclipsehelp/editor-eclipse/editor-eclipse-help.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-editor-sa-help</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>editorHelp</artifactId>
<file>${project.build.directory}/output/javahelp/editor-sa/editor-sa-help.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-editor-sa-id</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>editorHelpID</artifactId>
<file>${project.build.directory}/output/htmlhelp/editor-sa/editor-sa-HelpID.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-author-eclipse-help</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>authorEclipseHelp</artifactId>
<file>${project.build.directory}/output/eclipsehelp/author-eclipse/author-eclipse-help.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-author-sa-help</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>authorHelp</artifactId>
<file>${project.build.directory}/output/javahelp/author-sa/author-sa-help.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-author-sa-id</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>authorHelpID</artifactId>
<file>${project.build.directory}/output/htmlhelp/author-sa/author-sa-HelpID.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-developer-eclipse-help</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>developerEclipseHelp</artifactId>
<file>${project.build.directory}/output/eclipsehelp/developer-eclipse/developer-eclipse-help.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-developer-sa-help</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>developerHelp</artifactId>
<file>${project.build.directory}/output/javahelp/developer-sa/developer-sa-help.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-developer-sa-id</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>developerHelpID</artifactId>
<file>${project.build.directory}/output/htmlhelp/developer-sa/developer-sa-HelpID.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<!-- Deploy CHM files to Maven Archiva Repository -->
<execution>
<id>deploy-editor-chm</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>editorCHM</artifactId>
<file>${project.build.directory}/output/htmlhelp/editor-sa/editor-sa.chm</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>chm</packaging>
</configuration>
</execution>
<execution>
<id>deploy-author-chm</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>authorCHM</artifactId>
<file>${project.build.directory}/output/htmlhelp/author-sa/author-sa.chm</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>chm</packaging>
</configuration>
</execution>
<execution>
<id>deploy-developer-chm</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>developerCHM</artifactId>
<file>${project.build.directory}/output/htmlhelp/developer-sa/developer-sa.chm</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>chm</packaging>
</configuration>
</execution>
<!-- Deploy helpID files to Maven Archiva Repository -->
<execution>
<id>deploy-editor-help-id</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>editorHelpID</artifactId>
<file>${project.build.directory}/output/htmlhelp/editor-sa/editor-sa-HelpID.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-author-help-id</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>authorHelpID</artifactId>
<file>${project.build.directory}/output/htmlhelp/author-sa/author-sa-HelpID.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>deploy-developer-help-id</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<artifactId>developerHelpID</artifactId>
<file>${project.build.directory}/output/htmlhelp/developer-sa/developer-sa-HelpID.jar</file>
<groupId>com.oxygenxml</groupId>
<version>${project.version}</version>
<repositoryId>syncro-snapshots</repositoryId>
<url>http://maven.sync.ro/archiva/repository/syncro-snapshots</url>
<packaging>jar</packaging>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

Expand Down

0 comments on commit 83f95cd

Please sign in to comment.