Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions java/bundles/org.eclipse.set.feature.export/.classpath
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="hyph/"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ Import-Package: jakarta.annotation,
org.osgi.service.event,
org.slf4j;version="1.7.2"
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: hyph/,
.
Service-Component: OSGI-INF/org.eclipse.set.feature.export.descriptions.SiteplanModelExportDescriptionService.xml,
OSGI-INF/org.eclipse.set.feature.export.descriptions.TitleBoxPdfDescriptionService.xml,
OSGI-INF/org.eclipse.set.feature.export.exportservice.ExportServiceImpl.xml,
Expand Down
3 changes: 2 additions & 1 deletion java/bundles/org.eclipse.set.feature.export/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ bin.includes = META-INF/,\
.,\
OSGI-INF/,\
fop.e4xmi,\
plugin.xml
plugin.xml,\
hyph/
source.. = src/,\
xtend-gen/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.io.IOException;
import java.io.OutputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.Path;
import java.util.Map;

Expand All @@ -27,6 +28,7 @@
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.FopFactoryBuilder;
import org.apache.fop.apps.io.ResourceResolverFactory;
import org.apache.fop.configuration.ConfigurationException;
import org.apache.xmlgraphics.io.Resource;
import org.apache.xmlgraphics.io.ResourceResolver;
Expand Down Expand Up @@ -99,12 +101,18 @@ public OutputStream getOutputStream(final URI uri) throws IOException {
* a configuration exception occurred
* @throws SAXException
* a SAX exception occurred
* @throws URISyntaxException
*/
@Activate
public void activate()
throws IOException, SAXException, ConfigurationException {
public void activate() throws IOException, SAXException,
ConfigurationException, URISyntaxException {
final FopFactoryBuilder fopFactoryBuilder = new FopFactoryBuilder(
new File(".").toURI(), proxyResourceResolver); //$NON-NLS-1$
fopFactoryBuilder.setHyphenBaseResourceResolver(
ResourceResolverFactory.createDefaultInternalResourceResolver(
FopServiceImpl.class.getClassLoader()
.getResource("hyph") //$NON-NLS-1$
.toURI()));
fopFactory = fopFactoryBuilder.build();
fopFactory.getRendererFactory()
.addDocumentHandlerMaker(
Expand Down
5 changes: 0 additions & 5 deletions java/bundles/org.eclipse.set.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1450,9 +1450,4 @@ http://www.eclipse.org/legal/epl-v20.html
<plugin
id="org.apache.commons.commons-logging"
version="0.0.0"/>

<plugin
id="maven.net.sf.offo.artifact.fop-hyph"
version="0.0.0"/>

</feature>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<windowImages/>


<launcher name="set">
<win useIco="true">
<bmp/>
Expand Down Expand Up @@ -52,7 +53,6 @@

<configurations>
<plugin id="ch.qos.logback.classic" autoStart="true" startLevel="2" />
<plugin id="maven.net.sf.offo.artifact.fop-hyph" autoStart="true" startLevel="4" />
<plugin id="org.apache.aries.spifly.dynamic.bundle" autoStart="true" startLevel="2" />
<plugin id="org.apache.felix.scr" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,12 @@
<version>2.6</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>net.sf.offo</groupId>
<artifactId>fop-hyph</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
<instructions><![CDATA[
Bundle-Name: Bundle derived from maven artifact ${mvnGroupId}:${mvnArtifactId}:${mvnVersion}
version: ${version_cleanup;${mvnVersion}}
Bundle-SymbolicName: maven.${mvnGroupId}.artifact.${mvnArtifactId}
Bundle-Version: 2.6
Bundle-Version: ${version}
Import-Package: *;resolution:=optional
Export-Package: *;version="${version}";-noimport:=true
Require-Bundle: org.apache.batik.util
Expand Down
Loading