Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 0 additions & 4 deletions java/bundles/org.eclipse.set.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1422,10 +1422,6 @@ http://www.eclipse.org/legal/epl-v20.html
id="org.apache.commons.commons-logging"
version="0.0.0"/>

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

<plugin
id="org.apache.commons.commons-collections4"
version="0.0.0"/>
Expand Down
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 @@ -227,12 +227,6 @@
</location>
<location includeDependencyDepth="none" includeDependencyScopes="compile" includeSource="true" label="Apache FOP" missingManifest="generate" type="Maven">
<dependencies>
<dependency>
<groupId>net.sf.offo</groupId>
<artifactId>fop-hyph</artifactId>
<version>2.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
Expand Down
Loading