mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-20 20:40:44 +02:00
Change icons path location.
This commit is contained in:
parent
68fdf41bb7
commit
ba24e02d85
@ -34,6 +34,12 @@
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wisemapping</groupId>
|
||||
<artifactId>wise-editor</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wisemapping</groupId>
|
||||
<artifactId>mindplot</artifactId>
|
||||
|
@ -42,7 +42,7 @@ public class ExportTest {
|
||||
final ExportProperties properties = ExportProperties.create(format);
|
||||
final ExportProperties.ImageProperties imageProperties = (ExportProperties.ImageProperties) properties;
|
||||
imageProperties.setSize(ExportProperties.ImageProperties.Size.LARGE);
|
||||
String baseUrl = "file://"+svgFile.getParentFile().getAbsolutePath()+"/../../../main/webapp/icons";
|
||||
String baseUrl = "file://" + svgFile.getParentFile().getAbsolutePath() + "/../../../../../wise-editor/src/main/webapp/icons";
|
||||
properties.setBaseImagePath(baseUrl);
|
||||
|
||||
// Write content ...
|
||||
@ -78,8 +78,7 @@ public class ExportTest {
|
||||
|
||||
Assert.assertEquals(expContent.toString().trim(), expContent.toString().trim());
|
||||
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
OutputStream outputStream = new FileOutputStream(pngFile, false);
|
||||
ExporterFactory.export(imageProperties, null, outputStream, svgXml);
|
||||
outputStream.close();
|
||||
|
@ -29,7 +29,7 @@ public class IconsTest {
|
||||
final List<MindmapIcon> iconByFamily = MindmapIcons.getIconByFamily(family);
|
||||
for (MindmapIcon mindmapIcon : iconByFamily) {
|
||||
final String pngName = mindmapIcon.getId() + ".png";
|
||||
final File file = new File("src/main/webapp/icons/", pngName);
|
||||
final File file = new File("../wise-editor/src/main/webapp/icons/", pngName);
|
||||
Assert.assertTrue(file.exists(), "Could not be found:" + file.getAbsolutePath());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user