How to load skins?

+1 vote
asked Jun 11, 2013 in Bug by anonymous

Hello,

First, thanks for this very efficient software.

The sides of text items (such as the condition of an "if" item in an activity diagram) are often cut in the resulting image.

I would therefore like to add some padding as described in the "How to make a skin?" page. I put both plantumlskins.jar and plantuml.jar (without changing the names) in the same directory.

I create a test.txt  file containing:

@startuml
skin demo.DemoSkin01
Alice -> Bob: Authentication Request
@enduml

 

A verbose execution returns:

(0.016 - 1 Mo) 1 Mo - Setting current dir: C:\Users\ng280aa\drive\local\utils\PlantUML
(0.016 - 1 Mo) 1 Mo - Reading file: test.txt
L = err=Cannot load demo.DemoSkin01
L = err=Cannot load net.sourceforge.plantuml.skin.demo.DemoSkin01
L = err=Cannot load demo.demoskin01.demo.DemoSkin01
L = err=Cannot load net.sourceforge.plantuml.skin.demo.demoskin01.demo.DemoSkin01
@startuml
skin demo.DemoSkin01
^^^^^^^^^^^^^^^^^^^^
 Cannot change skin

 

Is there a reason why the skin files cannot be loaded?

1 Answer

0 votes
answered Aug 24, 2013 by eli.mcgowan (140 points)

You can alter the plantuml.jar MANIFEST.MF to:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.4
Created-By: 1.6.0_33-b03 (Sun Microsystems Inc.)
Main-Class: net.sourceforge.plantuml.Run
Class-Path: plantumlskins.jar
 
...